mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 04:20:49 +00:00
regerated and working on publishing
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Double;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetLibraryHubsRequestBuilder {
|
||||
|
||||
private Double sectionId;
|
||||
private Optional<Double> count = Optional.empty();
|
||||
private Optional<? extends QueryParamOnlyTransient> onlyTransient = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetLibraryHubs sdk;
|
||||
|
||||
public GetLibraryHubsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryHubs sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetLibraryHubsRequestBuilder sectionId(double sectionId) {
|
||||
Utils.checkNotNull(sectionId, "sectionId");
|
||||
this.sectionId = sectionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryHubsRequestBuilder count(double count) {
|
||||
Utils.checkNotNull(count, "count");
|
||||
this.count = Optional.of(count);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryHubsRequestBuilder count(java.util.Optional<java.lang.Double> count) {
|
||||
Utils.checkNotNull(count, "count");
|
||||
this.count = count;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryHubsRequestBuilder onlyTransient(dev.plexapi.sdk.models.operations.QueryParamOnlyTransient onlyTransient) {
|
||||
Utils.checkNotNull(onlyTransient, "onlyTransient");
|
||||
this.onlyTransient = Optional.of(onlyTransient);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryHubsRequestBuilder onlyTransient(java.util.Optional<? extends dev.plexapi.sdk.models.operations.QueryParamOnlyTransient> onlyTransient) {
|
||||
Utils.checkNotNull(onlyTransient, "onlyTransient");
|
||||
this.onlyTransient = onlyTransient;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryHubsResponse call() throws Exception {
|
||||
|
||||
return sdk.getLibraryHubs(
|
||||
sectionId,
|
||||
count,
|
||||
onlyTransient);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user