mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-08 04:20:54 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0
This commit is contained in:
@@ -4,16 +4,12 @@
|
||||
|
||||
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.util.Optional;
|
||||
|
||||
public class MarkPlayedRequestBuilder {
|
||||
|
||||
private Double key;
|
||||
private Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallMarkPlayed sdk;
|
||||
|
||||
public MarkPlayedRequestBuilder(SDKMethodInterfaces.MethodCallMarkPlayed sdk) {
|
||||
@@ -25,25 +21,10 @@ public class MarkPlayedRequestBuilder {
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MarkPlayedRequestBuilder retryConfig(RetryConfig retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = Optional.of(retryConfig);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MarkPlayedRequestBuilder retryConfig(Optional<RetryConfig> retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = retryConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MarkPlayedResponse call() throws Exception {
|
||||
Optional<Options> options = Optional.of(Options.builder()
|
||||
.retryConfig(retryConfig)
|
||||
.build());
|
||||
|
||||
return sdk.markPlayed(
|
||||
key,
|
||||
options);
|
||||
key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user