/* * 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 includeElements = Optional.empty(); private Optional 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 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) { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; return this; } public GetMetadataChildrenResponse call() throws Exception { Optional options = Optional.of(Options.builder() .retryConfig(retryConfig) .build()); return sdk.getMetadataChildren( ratingKey, includeElements, options); } }