mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0
This commit is contained in:
@@ -4,12 +4,16 @@
|
||||
|
||||
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.Long;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetMetaDataByRatingKeyRequestBuilder {
|
||||
|
||||
private Long ratingKey;
|
||||
private Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk;
|
||||
|
||||
public GetMetaDataByRatingKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk) {
|
||||
@@ -21,10 +25,25 @@ public class GetMetaDataByRatingKeyRequestBuilder {
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRequestBuilder retryConfig(RetryConfig retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = Optional.of(retryConfig);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRequestBuilder retryConfig(Optional<RetryConfig> retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = retryConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponse call() throws Exception {
|
||||
|
||||
Optional<Options> options = Optional.of(Options.builder()
|
||||
.retryConfig(retryConfig)
|
||||
.build());
|
||||
return sdk.getMetaDataByRatingKey(
|
||||
ratingKey);
|
||||
ratingKey,
|
||||
options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user