mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
65 lines
2.2 KiB
Java
65 lines
2.2 KiB
Java
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
package dev.plexapi.sdk.models.operations;
|
|
|
|
import dev.plexapi.sdk.utils.Options;
|
|
import dev.plexapi.sdk.utils.RetryConfig;
|
|
import dev.plexapi.sdk.utils.Utils;
|
|
import java.lang.Double;
|
|
import java.lang.String;
|
|
import java.util.Optional;
|
|
|
|
public class GetMetadataChildrenRequestBuilder {
|
|
|
|
private Double ratingKey;
|
|
private Optional<String> includeElements = Optional.empty();
|
|
private Optional<RetryConfig> retryConfig = Optional.empty();
|
|
private final SDKMethodInterfaces.MethodCallGetMetadataChildren sdk;
|
|
|
|
public GetMetadataChildrenRequestBuilder(SDKMethodInterfaces.MethodCallGetMetadataChildren sdk) {
|
|
this.sdk = sdk;
|
|
}
|
|
|
|
public GetMetadataChildrenRequestBuilder ratingKey(double ratingKey) {
|
|
Utils.checkNotNull(ratingKey, "ratingKey");
|
|
this.ratingKey = ratingKey;
|
|
return this;
|
|
}
|
|
|
|
public GetMetadataChildrenRequestBuilder includeElements(String includeElements) {
|
|
Utils.checkNotNull(includeElements, "includeElements");
|
|
this.includeElements = Optional.of(includeElements);
|
|
return this;
|
|
}
|
|
|
|
public GetMetadataChildrenRequestBuilder includeElements(Optional<String> includeElements) {
|
|
Utils.checkNotNull(includeElements, "includeElements");
|
|
this.includeElements = includeElements;
|
|
return this;
|
|
}
|
|
|
|
public GetMetadataChildrenRequestBuilder retryConfig(RetryConfig retryConfig) {
|
|
Utils.checkNotNull(retryConfig, "retryConfig");
|
|
this.retryConfig = Optional.of(retryConfig);
|
|
return this;
|
|
}
|
|
|
|
public GetMetadataChildrenRequestBuilder retryConfig(Optional<RetryConfig> retryConfig) {
|
|
Utils.checkNotNull(retryConfig, "retryConfig");
|
|
this.retryConfig = retryConfig;
|
|
return this;
|
|
}
|
|
|
|
public GetMetadataChildrenResponse call() throws Exception {
|
|
Optional<Options> options = Optional.of(Options.builder()
|
|
.retryConfig(retryConfig)
|
|
.build());
|
|
return sdk.getMetadataChildren(
|
|
ratingKey,
|
|
includeElements,
|
|
options);
|
|
}
|
|
}
|