mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-08 04:20:54 +00:00
regerated and working on publishing
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetResourcesStatisticsRequestBuilder {
|
||||
|
||||
private Optional<Long> timespan = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk;
|
||||
|
||||
public GetResourcesStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetResourcesStatisticsRequestBuilder timespan(long timespan) {
|
||||
Utils.checkNotNull(timespan, "timespan");
|
||||
this.timespan = Optional.of(timespan);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetResourcesStatisticsRequestBuilder timespan(java.util.Optional<java.lang.Long> timespan) {
|
||||
Utils.checkNotNull(timespan, "timespan");
|
||||
this.timespan = timespan;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetResourcesStatisticsResponse call() throws Exception {
|
||||
|
||||
return sdk.getResourcesStatistics(
|
||||
timespan);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user