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:
@@ -6,8 +6,6 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Options;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
import java.util.Optional;
|
||||
@@ -19,7 +17,6 @@ public class GetLibraryDetailsRequestBuilder {
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeDetails>>() {});
|
||||
private Integer sectionKey;
|
||||
private Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetLibraryDetails sdk;
|
||||
|
||||
public GetLibraryDetailsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryDetails sdk) {
|
||||
@@ -43,29 +40,14 @@ public class GetLibraryDetailsRequestBuilder {
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsRequestBuilder retryConfig(RetryConfig retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = Optional.of(retryConfig);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsRequestBuilder retryConfig(Optional<RetryConfig> retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = retryConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsResponse call() throws Exception {
|
||||
if (includeDetails == null) {
|
||||
includeDetails = _SINGLETON_VALUE_IncludeDetails.value();
|
||||
} Optional<Options> options = Optional.of(Options.builder()
|
||||
.retryConfig(retryConfig)
|
||||
.build());
|
||||
}
|
||||
return sdk.getLibraryDetails(
|
||||
includeDetails,
|
||||
sectionKey,
|
||||
options);
|
||||
sectionKey);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends IncludeDetails>> _SINGLETON_VALUE_IncludeDetails =
|
||||
|
||||
Reference in New Issue
Block a user