mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 12:37:45 +00:00
regerated and working on publishing
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.util.Optional;
|
||||
|
||||
public class ApplyUpdatesRequestBuilder {
|
||||
|
||||
private Optional<? extends Tonight> tonight = Optional.empty();
|
||||
private Optional<? extends Skip> skip = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallApplyUpdates sdk;
|
||||
|
||||
public ApplyUpdatesRequestBuilder(SDKMethodInterfaces.MethodCallApplyUpdates sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public ApplyUpdatesRequestBuilder tonight(dev.plexapi.sdk.models.operations.Tonight tonight) {
|
||||
Utils.checkNotNull(tonight, "tonight");
|
||||
this.tonight = Optional.of(tonight);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ApplyUpdatesRequestBuilder tonight(java.util.Optional<? extends dev.plexapi.sdk.models.operations.Tonight> tonight) {
|
||||
Utils.checkNotNull(tonight, "tonight");
|
||||
this.tonight = tonight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ApplyUpdatesRequestBuilder skip(dev.plexapi.sdk.models.operations.Skip skip) {
|
||||
Utils.checkNotNull(skip, "skip");
|
||||
this.skip = Optional.of(skip);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ApplyUpdatesRequestBuilder skip(java.util.Optional<? extends dev.plexapi.sdk.models.operations.Skip> skip) {
|
||||
Utils.checkNotNull(skip, "skip");
|
||||
this.skip = skip;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ApplyUpdatesResponse call() throws Exception {
|
||||
|
||||
return sdk.applyUpdates(
|
||||
tonight,
|
||||
skip);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user