mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.402.14
This commit is contained in:
@@ -24,7 +24,7 @@ import dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetTransientTokenRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetTransientTokenRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetTransientTokenResponse;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequest;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataUserPlexAccount;
|
||||
@@ -559,11 +559,13 @@ public class Authentication implements
|
||||
/**
|
||||
* Get User Sign In Data
|
||||
* Sign in user with username and password and return user data with Plex authentication token
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public PostUsersSignInDataResponse postUsersSignInDataDirect() throws Exception {
|
||||
return postUsersSignInData(Optional.empty(), Optional.empty());
|
||||
public PostUsersSignInDataResponse postUsersSignInData(
|
||||
PostUsersSignInDataRequest request) throws Exception {
|
||||
return postUsersSignInData(request, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -575,7 +577,7 @@ public class Authentication implements
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public PostUsersSignInDataResponse postUsersSignInData(
|
||||
Optional<? extends PostUsersSignInDataRequestBody> request,
|
||||
PostUsersSignInDataRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
@@ -589,10 +591,10 @@ public class Authentication implements
|
||||
Object _convertedRequest = Utils.convertToShape(
|
||||
request,
|
||||
JsonShape.DEFAULT,
|
||||
new TypeReference<Optional<? extends PostUsersSignInDataRequestBody>>() {});
|
||||
new TypeReference<PostUsersSignInDataRequest>() {});
|
||||
SerializedBody _serializedRequestBody = Utils.serializeRequestBody(
|
||||
_convertedRequest,
|
||||
"request",
|
||||
"requestBody",
|
||||
"form",
|
||||
false);
|
||||
_req.setBody(Optional.ofNullable(_serializedRequestBody));
|
||||
@@ -600,6 +602,11 @@ public class Authentication implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
PostUsersSignInDataRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
|
||||
@@ -18,6 +18,10 @@ import dev.plexapi.sdk.models.operations.GetLibraryHubsRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryHubsRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryHubsResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryHubsResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.OnlyTransient;
|
||||
import dev.plexapi.sdk.models.operations.QueryParamOnlyTransient;
|
||||
import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*;
|
||||
@@ -42,6 +46,7 @@ import java.util.Optional;
|
||||
*/
|
||||
public class Hubs implements
|
||||
MethodCallGetGlobalHubs,
|
||||
MethodCallGetRecentlyAdded,
|
||||
MethodCallGetLibraryHubs {
|
||||
|
||||
private final SDKConfiguration sdkConfiguration;
|
||||
@@ -224,6 +229,130 @@ public class Hubs implements
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetRecentlyAddedRequestBuilder getRecentlyAdded() {
|
||||
return new GetRecentlyAddedRequestBuilder(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetRecentlyAddedResponse getRecentlyAdded(
|
||||
GetRecentlyAddedRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/hubs/home/recentlyAdded");
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
_httpRes = _client.send(_r);
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
String _contentType = _httpRes
|
||||
.headers()
|
||||
.firstValue("Content-Type")
|
||||
.orElse("application/octet-stream");
|
||||
GetRecentlyAddedResponse.Builder _resBuilder =
|
||||
GetRecentlyAddedResponse
|
||||
.builder()
|
||||
.contentType(_contentType)
|
||||
.statusCode(_httpRes.statusCode())
|
||||
.rawResponse(_httpRes);
|
||||
|
||||
GetRecentlyAddedResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetRecentlyAddedResponseBody _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetRecentlyAddedResponseBody>() {});
|
||||
_res.withObject(Optional.ofNullable(_out));
|
||||
return _res;
|
||||
} else {
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"Unexpected content-type received: " + _contentType,
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"Unexpected status code received: " + _httpRes.statusCode(),
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get library specific hubs
|
||||
* This endpoint will return a list of library specific hubs
|
||||
|
||||
@@ -21,8 +21,8 @@ import dev.plexapi.sdk.models.errors.GetMetadataChildrenBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMetadataChildrenUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetRefreshLibraryMetadataBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetRefreshLibraryMetadataUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetSearchLibraryBadRequest;
|
||||
@@ -59,13 +59,14 @@ import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchLibraryQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchLibraryResponse;
|
||||
@@ -76,7 +77,6 @@ import dev.plexapi.sdk.models.operations.GetTopWatchedContentRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetTopWatchedContentResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetTopWatchedContentResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.IncludeDetails;
|
||||
import dev.plexapi.sdk.models.operations.QueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*;
|
||||
import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.HTTPRequest;
|
||||
@@ -87,7 +87,6 @@ import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Double;
|
||||
import java.lang.Exception;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
@@ -101,7 +100,7 @@ import java.util.Optional;
|
||||
*/
|
||||
public class Library implements
|
||||
MethodCallGetFileHash,
|
||||
MethodCallGetRecentlyAdded,
|
||||
MethodCallGetRecentlyAddedLibrary,
|
||||
MethodCallGetAllLibraries,
|
||||
MethodCallGetLibraryDetails,
|
||||
MethodCallDeleteLibrary,
|
||||
@@ -290,46 +289,20 @@ public class Library implements
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetRecentlyAddedRequestBuilder getRecentlyAdded() {
|
||||
return new GetRecentlyAddedRequestBuilder(this);
|
||||
public GetRecentlyAddedLibraryRequestBuilder getRecentlyAddedLibrary() {
|
||||
return new GetRecentlyAddedLibraryRequestBuilder(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetRecentlyAddedResponse getRecentlyAddedDirect() throws Exception {
|
||||
return getRecentlyAdded(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* @param xPlexContainerStart The index of the first item to return. If not specified, the first item will be returned.
|
||||
If the number of items exceeds the limit, the response will be paginated.
|
||||
By default this is 0
|
||||
|
||||
* @param xPlexContainerSize The number of items to return. If not specified, all items will be returned.
|
||||
If the number of items exceeds the limit, the response will be paginated.
|
||||
By default this is 50
|
||||
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetRecentlyAddedResponse getRecentlyAdded(
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) throws Exception {
|
||||
GetRecentlyAddedRequest request =
|
||||
GetRecentlyAddedRequest
|
||||
.builder()
|
||||
.xPlexContainerStart(xPlexContainerStart)
|
||||
.xPlexContainerSize(xPlexContainerSize)
|
||||
.build();
|
||||
|
||||
public GetRecentlyAddedLibraryResponse getRecentlyAddedLibrary(
|
||||
GetRecentlyAddedLibraryRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
@@ -342,7 +315,7 @@ public class Library implements
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedRequest.class,
|
||||
GetRecentlyAddedLibraryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
@@ -354,7 +327,7 @@ public class Library implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
"getRecentlyAdded",
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_req.build());
|
||||
@@ -365,7 +338,7 @@ public class Library implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"getRecentlyAdded",
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
Optional.of(_httpRes),
|
||||
@@ -374,7 +347,7 @@ public class Library implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
"getRecentlyAdded",
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_httpRes);
|
||||
@@ -383,7 +356,7 @@ public class Library implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"getRecentlyAdded",
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
Optional.empty(),
|
||||
@@ -393,20 +366,20 @@ public class Library implements
|
||||
.headers()
|
||||
.firstValue("Content-Type")
|
||||
.orElse("application/octet-stream");
|
||||
GetRecentlyAddedResponse.Builder _resBuilder =
|
||||
GetRecentlyAddedResponse
|
||||
GetRecentlyAddedLibraryResponse.Builder _resBuilder =
|
||||
GetRecentlyAddedLibraryResponse
|
||||
.builder()
|
||||
.contentType(_contentType)
|
||||
.statusCode(_httpRes.statusCode())
|
||||
.rawResponse(_httpRes);
|
||||
|
||||
GetRecentlyAddedResponse _res = _resBuilder.build();
|
||||
GetRecentlyAddedLibraryResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetRecentlyAddedResponseBody _out = Utils.mapper().readValue(
|
||||
GetRecentlyAddedLibraryResponseBody _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetRecentlyAddedResponseBody>() {});
|
||||
new TypeReference<GetRecentlyAddedLibraryResponseBody>() {});
|
||||
_res.withObject(Optional.ofNullable(_out));
|
||||
return _res;
|
||||
} else {
|
||||
@@ -419,9 +392,9 @@ public class Library implements
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetRecentlyAddedBadRequest _out = Utils.mapper().readValue(
|
||||
GetRecentlyAddedLibraryBadRequest _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetRecentlyAddedBadRequest>() {});
|
||||
new TypeReference<GetRecentlyAddedLibraryBadRequest>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
@@ -435,9 +408,9 @@ public class Library implements
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetRecentlyAddedUnauthorized _out = Utils.mapper().readValue(
|
||||
GetRecentlyAddedLibraryUnauthorized _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetRecentlyAddedUnauthorized>() {});
|
||||
new TypeReference<GetRecentlyAddedLibraryUnauthorized>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
@@ -1505,7 +1478,7 @@ public class Library implements
|
||||
*/
|
||||
public GetSearchLibraryResponse getSearchLibrary(
|
||||
int sectionKey,
|
||||
QueryParamType type) throws Exception {
|
||||
GetSearchLibraryQueryParamType type) throws Exception {
|
||||
GetSearchLibraryRequest request =
|
||||
GetSearchLibraryRequest
|
||||
.builder()
|
||||
|
||||
@@ -36,8 +36,8 @@ class SDKConfiguration {
|
||||
} };
|
||||
private static final String LANGUAGE = "java";
|
||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||
public static final String SDK_VERSION = "0.4.1";
|
||||
public static final String GEN_VERSION = "2.421.3";
|
||||
public static final String SDK_VERSION = "0.5.0";
|
||||
public static final String GEN_VERSION = "2.422.22";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
|
||||
@@ -19,9 +19,9 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetRecentlyAddedLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
public class GetRecentlyAddedLibraryBadRequest extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
@@ -35,7 +35,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedUnauthorized(
|
||||
public GetRecentlyAddedLibraryBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetRecentlyAddedLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
@@ -44,7 +44,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedUnauthorized() {
|
||||
public GetRecentlyAddedLibraryBadRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -65,13 +65,13 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedUnauthorized withErrors(List<GetRecentlyAddedLibraryErrors> errors) {
|
||||
public GetRecentlyAddedLibraryBadRequest withErrors(List<GetRecentlyAddedLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedUnauthorized withErrors(Optional<? extends List<GetRecentlyAddedLibraryErrors>> errors) {
|
||||
public GetRecentlyAddedLibraryBadRequest withErrors(Optional<? extends List<GetRecentlyAddedLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -80,7 +80,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetRecentlyAddedUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetRecentlyAddedLibraryBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -89,7 +89,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetRecentlyAddedUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetRecentlyAddedLibraryBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -103,7 +103,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedUnauthorized other = (GetRecentlyAddedUnauthorized) o;
|
||||
GetRecentlyAddedLibraryBadRequest other = (GetRecentlyAddedLibraryBadRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -118,7 +118,7 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedUnauthorized.class,
|
||||
return Utils.toString(GetRecentlyAddedLibraryBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
@@ -163,8 +163,8 @@ public class GetRecentlyAddedUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedUnauthorized build() {
|
||||
return new GetRecentlyAddedUnauthorized(
|
||||
public GetRecentlyAddedLibraryBadRequest build() {
|
||||
return new GetRecentlyAddedLibraryBadRequest(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedErrors {
|
||||
public class GetRecentlyAddedLibraryLibraryErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
@@ -33,7 +33,7 @@ public class GetRecentlyAddedErrors {
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedErrors(
|
||||
public GetRecentlyAddedLibraryLibraryErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
@@ -45,7 +45,7 @@ public class GetRecentlyAddedErrors {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors() {
|
||||
public GetRecentlyAddedLibraryLibraryErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -68,37 +68,37 @@ public class GetRecentlyAddedErrors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withCode(int code) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withCode(Optional<Integer> code) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withMessage(String message) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withMessage(Optional<String> message) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withStatus(int status) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors withStatus(Optional<Integer> status) {
|
||||
public GetRecentlyAddedLibraryLibraryErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
@@ -112,7 +112,7 @@ public class GetRecentlyAddedErrors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedErrors other = (GetRecentlyAddedErrors) o;
|
||||
GetRecentlyAddedLibraryLibraryErrors other = (GetRecentlyAddedLibraryLibraryErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
@@ -129,7 +129,7 @@ public class GetRecentlyAddedErrors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedErrors.class,
|
||||
return Utils.toString(GetRecentlyAddedLibraryLibraryErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
@@ -183,8 +183,8 @@ public class GetRecentlyAddedErrors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedErrors build() {
|
||||
return new GetRecentlyAddedErrors(
|
||||
public GetRecentlyAddedLibraryLibraryErrors build() {
|
||||
return new GetRecentlyAddedLibraryLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
@@ -19,13 +19,13 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetRecentlyAddedLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetRecentlyAddedErrors>> errors;
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
@@ -35,8 +35,8 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetRecentlyAddedErrors>> errors,
|
||||
public GetRecentlyAddedLibraryUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetRecentlyAddedLibraryLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -44,13 +44,13 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedBadRequest() {
|
||||
public GetRecentlyAddedLibraryUnauthorized() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetRecentlyAddedErrors>> errors(){
|
||||
return (Optional<List<GetRecentlyAddedErrors>>) errors;
|
||||
public Optional<List<GetRecentlyAddedLibraryLibraryErrors>> errors(){
|
||||
return (Optional<List<GetRecentlyAddedLibraryLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,13 +65,13 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedBadRequest withErrors(List<GetRecentlyAddedErrors> errors) {
|
||||
public GetRecentlyAddedLibraryUnauthorized withErrors(List<GetRecentlyAddedLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedBadRequest withErrors(Optional<? extends List<GetRecentlyAddedErrors>> errors) {
|
||||
public GetRecentlyAddedLibraryUnauthorized withErrors(Optional<? extends List<GetRecentlyAddedLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -80,7 +80,7 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetRecentlyAddedBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetRecentlyAddedLibraryUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -89,7 +89,7 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetRecentlyAddedBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetRecentlyAddedLibraryUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -103,7 +103,7 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedBadRequest other = (GetRecentlyAddedBadRequest) o;
|
||||
GetRecentlyAddedLibraryUnauthorized other = (GetRecentlyAddedLibraryUnauthorized) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -118,14 +118,14 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedBadRequest.class,
|
||||
return Utils.toString(GetRecentlyAddedLibraryUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedErrors>> errors = Optional.empty();
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@@ -133,13 +133,13 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetRecentlyAddedErrors> errors) {
|
||||
public Builder errors(List<GetRecentlyAddedLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetRecentlyAddedErrors>> errors) {
|
||||
public Builder errors(Optional<? extends List<GetRecentlyAddedLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -163,8 +163,8 @@ public class GetRecentlyAddedBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedBadRequest build() {
|
||||
return new GetRecentlyAddedBadRequest(
|
||||
public GetRecentlyAddedLibraryUnauthorized build() {
|
||||
return new GetRecentlyAddedLibraryUnauthorized(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -19,17 +19,14 @@ import java.util.Optional;
|
||||
|
||||
public class Field {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
private String title;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("subType")
|
||||
@@ -37,9 +34,9 @@ public class Field {
|
||||
|
||||
@JsonCreator
|
||||
public Field(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title,
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("subType") Optional<String> subType) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
@@ -51,22 +48,25 @@ public class Field {
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public Field() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Field(
|
||||
String key,
|
||||
String title,
|
||||
String type) {
|
||||
this(key, title, type, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -80,36 +80,18 @@ public class Field {
|
||||
}
|
||||
|
||||
public Field withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Field withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Field withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Field withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Field withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Field withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -163,11 +145,11 @@ public class Field {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
private String key;
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
private String title;
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
private String type;
|
||||
|
||||
private Optional<String> subType = Optional.empty();
|
||||
|
||||
@@ -176,36 +158,18 @@ public class Field {
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -7,51 +7,40 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class FieldType {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Operator")
|
||||
private Optional<? extends List<Operator>> operator;
|
||||
private List<Operator> operator;
|
||||
|
||||
@JsonCreator
|
||||
public FieldType(
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("Operator") Optional<? extends List<Operator>> operator) {
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("Operator") List<Operator> operator) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.type = type;
|
||||
this.operator = operator;
|
||||
}
|
||||
|
||||
public FieldType() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Operator>> operator() {
|
||||
return (Optional<List<Operator>>) operator;
|
||||
public List<Operator> operator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -59,24 +48,12 @@ public class FieldType {
|
||||
}
|
||||
|
||||
public FieldType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FieldType withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FieldType withOperator(List<Operator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = Optional.ofNullable(operator);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FieldType withOperator(Optional<? extends List<Operator>> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
@@ -112,33 +89,21 @@ public class FieldType {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
private String type;
|
||||
|
||||
private Optional<? extends List<Operator>> operator = Optional.empty();
|
||||
private List<Operator> operator;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(List<Operator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = Optional.ofNullable(operator);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(Optional<? extends List<Operator>> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
|
||||
@@ -83,8 +83,11 @@ public class GetAllLibrariesDirectory {
|
||||
@JsonProperty("directory")
|
||||
private boolean directory;
|
||||
|
||||
/**
|
||||
* Unix epoch datetime in seconds
|
||||
*/
|
||||
@JsonProperty("contentChangedAt")
|
||||
private int contentChangedAt;
|
||||
private long contentChangedAt;
|
||||
|
||||
@JsonProperty("hidden")
|
||||
private int hidden;
|
||||
@@ -112,7 +115,7 @@ public class GetAllLibrariesDirectory {
|
||||
@JsonProperty("scannedAt") long scannedAt,
|
||||
@JsonProperty("content") boolean content,
|
||||
@JsonProperty("directory") boolean directory,
|
||||
@JsonProperty("contentChangedAt") int contentChangedAt,
|
||||
@JsonProperty("contentChangedAt") long contentChangedAt,
|
||||
@JsonProperty("hidden") int hidden,
|
||||
@JsonProperty("Location") List<Location> location) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
@@ -258,8 +261,11 @@ public class GetAllLibrariesDirectory {
|
||||
return directory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unix epoch datetime in seconds
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int contentChangedAt() {
|
||||
public long contentChangedAt() {
|
||||
return contentChangedAt;
|
||||
}
|
||||
|
||||
@@ -394,7 +400,10 @@ public class GetAllLibrariesDirectory {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllLibrariesDirectory withContentChangedAt(int contentChangedAt) {
|
||||
/**
|
||||
* Unix epoch datetime in seconds
|
||||
*/
|
||||
public GetAllLibrariesDirectory withContentChangedAt(long contentChangedAt) {
|
||||
Utils.checkNotNull(contentChangedAt, "contentChangedAt");
|
||||
this.contentChangedAt = contentChangedAt;
|
||||
return this;
|
||||
@@ -535,7 +544,7 @@ public class GetAllLibrariesDirectory {
|
||||
|
||||
private Boolean directory;
|
||||
|
||||
private Integer contentChangedAt;
|
||||
private Long contentChangedAt;
|
||||
|
||||
private Integer hidden;
|
||||
|
||||
@@ -662,7 +671,10 @@ public class GetAllLibrariesDirectory {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder contentChangedAt(int contentChangedAt) {
|
||||
/**
|
||||
* Unix epoch datetime in seconds
|
||||
*/
|
||||
public Builder contentChangedAt(long contentChangedAt) {
|
||||
Utils.checkNotNull(contentChangedAt, "contentChangedAt");
|
||||
this.contentChangedAt = contentChangedAt;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryDetailsField {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("subType")
|
||||
private Optional<String> subType;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsField(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title,
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("subType") Optional<String> subType) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> subType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withSubType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField withSubType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryDetailsField other = (GetLibraryDetailsField) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.subType, other.subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryDetailsField.class,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type,
|
||||
"subType", subType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
|
||||
private Optional<String> subType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsField build() {
|
||||
return new GetLibraryDetailsField(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryDetailsFieldType {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Operator")
|
||||
private Optional<? extends List<GetLibraryDetailsOperator>> operator;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsFieldType(
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("Operator") Optional<? extends List<GetLibraryDetailsOperator>> operator) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.type = type;
|
||||
this.operator = operator;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryDetailsOperator>> operator() {
|
||||
return (Optional<List<GetLibraryDetailsOperator>>) operator;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType withOperator(List<GetLibraryDetailsOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = Optional.ofNullable(operator);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType withOperator(Optional<? extends List<GetLibraryDetailsOperator>> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryDetailsFieldType other = (GetLibraryDetailsFieldType) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.operator, other.operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryDetailsFieldType.class,
|
||||
"type", type,
|
||||
"operator", operator);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryDetailsOperator>> operator = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(List<GetLibraryDetailsOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = Optional.ofNullable(operator);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(Optional<? extends List<GetLibraryDetailsOperator>> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsFieldType build() {
|
||||
return new GetLibraryDetailsFieldType(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class GetLibraryDetailsMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<FieldType>> fieldType;
|
||||
private Optional<? extends List<GetLibraryDetailsFieldType>> fieldType;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsMediaContainer(
|
||||
@@ -99,7 +99,7 @@ public class GetLibraryDetailsMediaContainer {
|
||||
@JsonProperty("viewMode") Optional<Integer> viewMode,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetLibraryDetailsDirectory>> directory,
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryDetailsType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<FieldType>> fieldType) {
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(art, "art");
|
||||
@@ -210,8 +210,8 @@ public class GetLibraryDetailsMediaContainer {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<FieldType>> fieldType() {
|
||||
return (Optional<List<FieldType>>) fieldType;
|
||||
public Optional<List<GetLibraryDetailsFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibraryDetailsFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -386,13 +386,13 @@ public class GetLibraryDetailsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsMediaContainer withFieldType(List<FieldType> fieldType) {
|
||||
public GetLibraryDetailsMediaContainer withFieldType(List<GetLibraryDetailsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsMediaContainer withFieldType(Optional<? extends List<FieldType>> fieldType) {
|
||||
public GetLibraryDetailsMediaContainer withFieldType(Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
@@ -495,7 +495,7 @@ public class GetLibraryDetailsMediaContainer {
|
||||
|
||||
private Optional<? extends List<GetLibraryDetailsType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<FieldType>> fieldType = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryDetailsFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -669,13 +669,13 @@ public class GetLibraryDetailsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<FieldType> fieldType) {
|
||||
public Builder fieldType(List<GetLibraryDetailsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<FieldType>> fieldType) {
|
||||
public Builder fieldType(Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryDetailsOperator {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsOperator(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryDetailsOperator other = (GetLibraryDetailsOperator) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryDetailsOperator.class,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsOperator build() {
|
||||
return new GetLibraryDetailsOperator(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,319 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryDetailsSort {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("default")
|
||||
private Optional<String> default_;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<String> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
private Optional<String> descKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("firstCharacterKey")
|
||||
private Optional<String> firstCharacterKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsSort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("defaultDirection") Optional<String> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.default_ = default_;
|
||||
this.defaultDirection = defaultDirection;
|
||||
this.descKey = descKey;
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> default_() {
|
||||
return default_;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> defaultDirection() {
|
||||
return defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> descKey() {
|
||||
return descKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> firstCharacterKey() {
|
||||
return firstCharacterKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDefault(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDefault(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDefaultDirection(String defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDefaultDirection(Optional<String> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDescKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withDescKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withFirstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withFirstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryDetailsSort other = (GetLibraryDetailsSort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.defaultDirection, other.defaultDirection) &&
|
||||
Objects.deepEquals(this.descKey, other.descKey) &&
|
||||
Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
default_,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryDetailsSort.class,
|
||||
"default_", default_,
|
||||
"defaultDirection", defaultDirection,
|
||||
"descKey", descKey,
|
||||
"firstCharacterKey", firstCharacterKey,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> default_ = Optional.empty();
|
||||
|
||||
private Optional<String> defaultDirection = Optional.empty();
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
private Optional<String> firstCharacterKey = Optional.empty();
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder default_(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder default_(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder defaultDirection(String defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder defaultDirection(Optional<String> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsSort build() {
|
||||
return new GetLibraryDetailsSort(
|
||||
default_,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,11 +44,11 @@ public class GetLibraryDetailsType {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<Sort>> sort;
|
||||
private Optional<? extends List<GetLibraryDetailsSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<Field>> field;
|
||||
private Optional<? extends List<GetLibraryDetailsField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryDetailsType(
|
||||
@@ -57,8 +57,8 @@ public class GetLibraryDetailsType {
|
||||
@JsonProperty("title") Optional<String> title,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryDetailsFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<Sort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<Field>> field) {
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryDetailsSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryDetailsField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
@@ -107,14 +107,14 @@ public class GetLibraryDetailsType {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Sort>> sort() {
|
||||
return (Optional<List<Sort>>) sort;
|
||||
public Optional<List<GetLibraryDetailsSort>> sort() {
|
||||
return (Optional<List<GetLibraryDetailsSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Field>> field() {
|
||||
return (Optional<List<Field>>) field;
|
||||
public Optional<List<GetLibraryDetailsField>> field() {
|
||||
return (Optional<List<GetLibraryDetailsField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -181,25 +181,25 @@ public class GetLibraryDetailsType {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsType withSort(List<Sort> sort) {
|
||||
public GetLibraryDetailsType withSort(List<GetLibraryDetailsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsType withSort(Optional<? extends List<Sort>> sort) {
|
||||
public GetLibraryDetailsType withSort(Optional<? extends List<GetLibraryDetailsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsType withField(List<Field> field) {
|
||||
public GetLibraryDetailsType withField(List<GetLibraryDetailsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryDetailsType withField(Optional<? extends List<Field>> field) {
|
||||
public GetLibraryDetailsType withField(Optional<? extends List<GetLibraryDetailsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
@@ -260,9 +260,9 @@ public class GetLibraryDetailsType {
|
||||
|
||||
private Optional<? extends List<GetLibraryDetailsFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Sort>> sort = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryDetailsSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Field>> field = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryDetailsField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -328,25 +328,25 @@ public class GetLibraryDetailsType {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<Sort> sort) {
|
||||
public Builder sort(List<GetLibraryDetailsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<Sort>> sort) {
|
||||
public Builder sort(Optional<? extends List<GetLibraryDetailsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<Field> field) {
|
||||
public Builder field(List<GetLibraryDetailsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<Field>> field) {
|
||||
public Builder field(Optional<? extends List<GetLibraryDetailsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsActiveDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsActiveDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryItemsCollection {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsCollection(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetLibraryItemsCollection() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsCollection withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsCollection withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsCollection other = (GetLibraryItemsCollection) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsCollection.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsCollection build() {
|
||||
return new GetLibraryItemsCollection(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsDefaultDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsDefaultDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
False("0"),
|
||||
True("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsFlattenSeasons(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
public enum GetLibraryItemsHasThumbnail {
|
||||
False("0"),
|
||||
True("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsHasThumbnail(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public class GetLibraryItemsImage {
|
||||
private String alt;
|
||||
|
||||
@JsonProperty("type")
|
||||
private GetLibraryItemsLibraryResponseType type;
|
||||
private GetLibraryItemsLibraryResponse200Type type;
|
||||
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
@@ -28,7 +28,7 @@ public class GetLibraryItemsImage {
|
||||
@JsonCreator
|
||||
public GetLibraryItemsImage(
|
||||
@JsonProperty("alt") String alt,
|
||||
@JsonProperty("type") GetLibraryItemsLibraryResponseType type,
|
||||
@JsonProperty("type") GetLibraryItemsLibraryResponse200Type type,
|
||||
@JsonProperty("url") String url) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
Utils.checkNotNull(type, "type");
|
||||
@@ -44,7 +44,7 @@ public class GetLibraryItemsImage {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public GetLibraryItemsLibraryResponseType type() {
|
||||
public GetLibraryItemsLibraryResponse200Type type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class GetLibraryItemsImage {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsImage withType(GetLibraryItemsLibraryResponseType type) {
|
||||
public GetLibraryItemsImage withType(GetLibraryItemsLibraryResponse200Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetLibraryItemsImage {
|
||||
|
||||
private String alt;
|
||||
|
||||
private GetLibraryItemsLibraryResponseType type;
|
||||
private GetLibraryItemsLibraryResponse200Type type;
|
||||
|
||||
private String url;
|
||||
|
||||
@@ -124,7 +124,7 @@ public class GetLibraryItemsImage {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(GetLibraryItemsLibraryResponseType type) {
|
||||
public Builder type(GetLibraryItemsLibraryResponse200Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsLibraryActiveDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsLibraryActiveDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsLibraryDefaultDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsLibraryDefaultDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibraryField {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("subType")
|
||||
private Optional<String> subType;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryField(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("subType") Optional<String> subType) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField(
|
||||
String key,
|
||||
String title,
|
||||
String type) {
|
||||
this(key, title, type, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> subType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField withSubType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField withSubType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryField other = (GetLibraryItemsLibraryField) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.subType, other.subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryField.class,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type,
|
||||
"subType", subType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String type;
|
||||
|
||||
private Optional<String> subType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryField build() {
|
||||
return new GetLibraryItemsLibraryField(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibraryFieldType {
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("Operator")
|
||||
private List<GetLibraryItemsLibraryOperator> operator;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryFieldType(
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("Operator") List<GetLibraryItemsLibraryOperator> operator) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.type = type;
|
||||
this.operator = operator;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<GetLibraryItemsLibraryOperator> operator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFieldType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFieldType withOperator(List<GetLibraryItemsLibraryOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryFieldType other = (GetLibraryItemsLibraryFieldType) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.operator, other.operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryFieldType.class,
|
||||
"type", type,
|
||||
"operator", operator);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String type;
|
||||
|
||||
private List<GetLibraryItemsLibraryOperator> operator;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(List<GetLibraryItemsLibraryOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFieldType build() {
|
||||
return new GetLibraryItemsLibraryFieldType(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibraryFilter {
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
@JsonProperty("filterType")
|
||||
private String filterType;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryFilter(
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("filterType") String filterType,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.filter = filter;
|
||||
this.filterType = filterType;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filterType() {
|
||||
return filterType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter withFilterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryFilter other = (GetLibraryItemsLibraryFilter) o;
|
||||
return
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.filterType, other.filterType) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryFilter.class,
|
||||
"filter", filter,
|
||||
"filterType", filterType,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String filter;
|
||||
|
||||
private String filterType;
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryFilter build() {
|
||||
return new GetLibraryItemsLibraryFilter(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibraryOperator {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryOperator(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryOperator withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryOperator withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryOperator other = (GetLibraryItemsLibraryOperator) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryOperator.class,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryOperator build() {
|
||||
return new GetLibraryItemsLibraryOperator(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponse200Type {
|
||||
COVER_POSTER("coverPoster"),
|
||||
BACKGROUND("background"),
|
||||
SNAPSHOT("snapshot"),
|
||||
CLEAR_LOGO("clearLogo");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsLibraryResponse200Type(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -4,23 +4,316 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
BACKGROUND("background"),
|
||||
SNAPSHOT("snapshot"),
|
||||
CLEAR_LOGO("clearLogo");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
public class GetLibraryItemsLibraryResponseType {
|
||||
|
||||
private GetLibraryItemsLibraryResponseType(String value) {
|
||||
this.value = value;
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetLibraryItemsLibraryFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetLibraryItemsLibrarySort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetLibraryItemsLibraryField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryResponseType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryItemsLibraryFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryItemsLibrarySort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryItemsLibraryField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
public GetLibraryItemsLibraryResponseType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibraryFilter>> filter() {
|
||||
return (Optional<List<GetLibraryItemsLibraryFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibrarySort>> sort() {
|
||||
return (Optional<List<GetLibraryItemsLibrarySort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibraryField>> field() {
|
||||
return (Optional<List<GetLibraryItemsLibraryField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withFilter(List<GetLibraryItemsLibraryFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withFilter(Optional<? extends List<GetLibraryItemsLibraryFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withSort(List<GetLibraryItemsLibrarySort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withSort(Optional<? extends List<GetLibraryItemsLibrarySort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withField(List<GetLibraryItemsLibraryField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType withField(Optional<? extends List<GetLibraryItemsLibraryField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryResponseType other = (GetLibraryItemsLibraryResponseType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryResponseType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibraryFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibrarySort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibraryField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetLibraryItemsLibraryFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetLibraryItemsLibraryFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetLibraryItemsLibrarySort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetLibraryItemsLibrarySort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetLibraryItemsLibraryField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetLibraryItemsLibraryField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryResponseType build() {
|
||||
return new GetLibraryItemsLibraryResponseType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,450 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibrarySort {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("default")
|
||||
private Optional<String> default_;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("active")
|
||||
private Optional<Boolean> active;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends GetLibraryItemsLibraryActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<? extends GetLibraryItemsLibraryDefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
private Optional<String> descKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("firstCharacterKey")
|
||||
private Optional<String> firstCharacterKey;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibrarySort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends GetLibraryItemsLibraryActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends GetLibraryItemsLibraryDefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.default_ = default_;
|
||||
this.active = active;
|
||||
this.activeDirection = activeDirection;
|
||||
this.defaultDirection = defaultDirection;
|
||||
this.descKey = descKey;
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort(
|
||||
String key,
|
||||
String title) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), key, title);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> default_() {
|
||||
return default_;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsLibraryActiveDirection> activeDirection() {
|
||||
return (Optional<GetLibraryItemsLibraryActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsLibraryDefaultDirection> defaultDirection() {
|
||||
return (Optional<GetLibraryItemsLibraryDefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> descKey() {
|
||||
return descKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> firstCharacterKey() {
|
||||
return firstCharacterKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withDefault(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withDefault(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withActive(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsLibrarySort withActiveDirection(GetLibraryItemsLibraryActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsLibrarySort withActiveDirection(Optional<? extends GetLibraryItemsLibraryActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsLibrarySort withDefaultDirection(GetLibraryItemsLibraryDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsLibrarySort withDefaultDirection(Optional<? extends GetLibraryItemsLibraryDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withDescKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withDescKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withFirstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withFirstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibrarySort other = (GetLibraryItemsLibrarySort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.activeDirection, other.activeDirection) &&
|
||||
Objects.deepEquals(this.defaultDirection, other.defaultDirection) &&
|
||||
Objects.deepEquals(this.descKey, other.descKey) &&
|
||||
Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibrarySort.class,
|
||||
"default_", default_,
|
||||
"active", active,
|
||||
"activeDirection", activeDirection,
|
||||
"defaultDirection", defaultDirection,
|
||||
"descKey", descKey,
|
||||
"firstCharacterKey", firstCharacterKey,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> default_ = Optional.empty();
|
||||
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsLibraryActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends GetLibraryItemsLibraryDefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
private Optional<String> firstCharacterKey = Optional.empty();
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder default_(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder default_(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(GetLibraryItemsLibraryActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends GetLibraryItemsLibraryActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(GetLibraryItemsLibraryDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends GetLibraryItemsLibraryDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibrarySort build() {
|
||||
if (activeDirection == null) {
|
||||
activeDirection = _SINGLETON_VALUE_ActiveDirection.value();
|
||||
}
|
||||
if (defaultDirection == null) {
|
||||
defaultDirection = _SINGLETON_VALUE_DefaultDirection.value();
|
||||
} return new GetLibraryItemsLibrarySort(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsLibraryActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetLibraryItemsLibraryActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsLibraryDefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetLibraryItemsLibraryDefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,316 +4,27 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryType - The type of media content
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsLibraryType {
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode");
|
||||
|
||||
public class GetLibraryItemsLibraryType {
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetLibraryItemsField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryItemsFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryItemsSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
private GetLibraryItemsLibraryType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFilter>> filter() {
|
||||
return (Optional<List<GetLibraryItemsFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsSort>> sort() {
|
||||
return (Optional<List<GetLibraryItemsSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsField>> field() {
|
||||
return (Optional<List<GetLibraryItemsField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withFilter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withFilter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withSort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withSort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withField(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withField(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryType other = (GetLibraryItemsLibraryType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType build() {
|
||||
return new GetLibraryItemsLibraryType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,12 +10,15 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
@@ -70,6 +73,14 @@ public class GetLibraryItemsMedia {
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private Optional<Boolean> hasVoiceActivity;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<? extends GetLibraryItemsOptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonProperty("Part")
|
||||
private List<GetLibraryItemsPart> part;
|
||||
|
||||
@@ -90,6 +101,8 @@ public class GetLibraryItemsMedia {
|
||||
@JsonProperty("videoFrameRate") String videoFrameRate,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetLibraryItemsOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("Part") List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
@@ -106,6 +119,8 @@ public class GetLibraryItemsMedia {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.id = id;
|
||||
this.duration = duration;
|
||||
@@ -122,6 +137,8 @@ public class GetLibraryItemsMedia {
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
this.videoProfile = videoProfile;
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
@@ -140,7 +157,7 @@ public class GetLibraryItemsMedia {
|
||||
String videoFrameRate,
|
||||
String videoProfile,
|
||||
List<GetLibraryItemsPart> part) {
|
||||
this(id, duration, bitrate, width, height, aspectRatio, Optional.empty(), audioChannels, audioCodec, videoCodec, videoResolution, container, videoFrameRate, videoProfile, Optional.empty(), part);
|
||||
this(id, duration, bitrate, width, height, aspectRatio, Optional.empty(), audioChannels, audioCodec, videoCodec, videoResolution, container, videoFrameRate, videoProfile, Optional.empty(), Optional.empty(), Optional.empty(), part);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -218,6 +235,17 @@ public class GetLibraryItemsMedia {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsOptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<GetLibraryItemsOptimizedForStreaming>) optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<GetLibraryItemsPart> part() {
|
||||
return part;
|
||||
@@ -329,6 +357,30 @@ public class GetLibraryItemsMedia {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withOptimizedForStreaming(GetLibraryItemsOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withOptimizedForStreaming(Optional<? extends GetLibraryItemsOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withPart(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
@@ -360,6 +412,8 @@ public class GetLibraryItemsMedia {
|
||||
Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.hasVoiceActivity, other.hasVoiceActivity) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.part, other.part);
|
||||
}
|
||||
|
||||
@@ -381,6 +435,8 @@ public class GetLibraryItemsMedia {
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
part);
|
||||
}
|
||||
|
||||
@@ -402,6 +458,8 @@ public class GetLibraryItemsMedia {
|
||||
"videoFrameRate", videoFrameRate,
|
||||
"videoProfile", videoProfile,
|
||||
"hasVoiceActivity", hasVoiceActivity,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
@@ -437,6 +495,10 @@ public class GetLibraryItemsMedia {
|
||||
|
||||
private Optional<Boolean> hasVoiceActivity = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsOptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private List<GetLibraryItemsPart> part;
|
||||
|
||||
private Builder() {
|
||||
@@ -545,6 +607,30 @@ public class GetLibraryItemsMedia {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(GetLibraryItemsOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<? extends GetLibraryItemsOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
@@ -552,7 +638,9 @@ public class GetLibraryItemsMedia {
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia build() {
|
||||
return new GetLibraryItemsMedia(
|
||||
if (optimizedForStreaming == null) {
|
||||
optimizedForStreaming = _SINGLETON_VALUE_OptimizedForStreaming.value();
|
||||
} return new GetLibraryItemsMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
@@ -568,8 +656,16 @@ public class GetLibraryItemsMedia {
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
part);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsOptimizedForStreaming>> _SINGLETON_VALUE_OptimizedForStreaming =
|
||||
new LazySingletonValue<>(
|
||||
"optimizedForStreaming",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends GetLibraryItemsOptimizedForStreaming>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -20,9 +21,21 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
|
||||
public class GetLibraryItemsMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetLibraryItemsType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType;
|
||||
|
||||
@JsonProperty("size")
|
||||
private int size;
|
||||
|
||||
@@ -49,7 +62,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
private String identifier;
|
||||
|
||||
@JsonProperty("librarySectionID")
|
||||
private LibrarySectionID librarySectionID;
|
||||
private long librarySectionID;
|
||||
|
||||
@JsonProperty("librarySectionTitle")
|
||||
private String librarySectionTitle;
|
||||
@@ -92,10 +105,12 @@ public class GetLibraryItemsMediaContainer {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Meta")
|
||||
private Optional<? extends Meta> meta;
|
||||
private Optional<? extends GetLibraryItemsMeta> meta;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMediaContainer(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryItemsFieldType>> fieldType,
|
||||
@JsonProperty("size") int size,
|
||||
@JsonProperty("totalSize") int totalSize,
|
||||
@JsonProperty("offset") int offset,
|
||||
@@ -104,7 +119,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonProperty("nocache") Optional<Boolean> nocache,
|
||||
@JsonProperty("art") String art,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("librarySectionID") LibrarySectionID librarySectionID,
|
||||
@JsonProperty("librarySectionID") long librarySectionID,
|
||||
@JsonProperty("librarySectionTitle") String librarySectionTitle,
|
||||
@JsonProperty("librarySectionUUID") String librarySectionUUID,
|
||||
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||
@@ -116,7 +131,9 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonProperty("viewMode") Optional<Integer> viewMode,
|
||||
@JsonProperty("mixedParents") Optional<Boolean> mixedParents,
|
||||
@JsonProperty("Metadata") List<GetLibraryItemsMetadata> metadata,
|
||||
@JsonProperty("Meta") Optional<? extends Meta> meta) {
|
||||
@JsonProperty("Meta") Optional<? extends GetLibraryItemsMeta> meta) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
@@ -138,6 +155,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.type = type;
|
||||
this.fieldType = fieldType;
|
||||
this.size = size;
|
||||
this.totalSize = totalSize;
|
||||
this.offset = offset;
|
||||
@@ -169,7 +188,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
boolean allowSync,
|
||||
String art,
|
||||
String identifier,
|
||||
LibrarySectionID librarySectionID,
|
||||
long librarySectionID,
|
||||
String librarySectionTitle,
|
||||
String librarySectionUUID,
|
||||
String mediaTagPrefix,
|
||||
@@ -179,7 +198,19 @@ public class GetLibraryItemsMediaContainer {
|
||||
String title2,
|
||||
String viewGroup,
|
||||
List<GetLibraryItemsMetadata> metadata) {
|
||||
this(size, totalSize, offset, content, allowSync, Optional.empty(), art, identifier, librarySectionID, librarySectionTitle, librarySectionUUID, mediaTagPrefix, mediaTagVersion, thumb, title1, title2, viewGroup, Optional.empty(), Optional.empty(), metadata, Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), size, totalSize, offset, content, allowSync, Optional.empty(), art, identifier, librarySectionID, librarySectionTitle, librarySectionUUID, mediaTagPrefix, mediaTagVersion, thumb, title1, title2, viewGroup, Optional.empty(), Optional.empty(), metadata, Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsType>> type() {
|
||||
return (Optional<List<GetLibraryItemsType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibraryItemsFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -223,7 +254,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public LibrarySectionID librarySectionID() {
|
||||
public long librarySectionID() {
|
||||
return librarySectionID;
|
||||
}
|
||||
|
||||
@@ -288,14 +319,38 @@ public class GetLibraryItemsMediaContainer {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<Meta> meta() {
|
||||
return (Optional<Meta>) meta;
|
||||
public Optional<GetLibraryItemsMeta> meta() {
|
||||
return (Optional<GetLibraryItemsMeta>) meta;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withType(List<GetLibraryItemsType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withType(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withFieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withFieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
@@ -350,7 +405,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withLibrarySectionID(LibrarySectionID librarySectionID) {
|
||||
public GetLibraryItemsMediaContainer withLibrarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
@@ -438,7 +493,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMediaContainer withMeta(Meta meta) {
|
||||
public GetLibraryItemsMediaContainer withMeta(GetLibraryItemsMeta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
@@ -448,7 +503,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMediaContainer withMeta(Optional<? extends Meta> meta) {
|
||||
public GetLibraryItemsMediaContainer withMeta(Optional<? extends GetLibraryItemsMeta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
@@ -464,6 +519,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
}
|
||||
GetLibraryItemsMediaContainer other = (GetLibraryItemsMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.fieldType, other.fieldType) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||
Objects.deepEquals(this.offset, other.offset) &&
|
||||
@@ -490,6 +547,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
fieldType,
|
||||
size,
|
||||
totalSize,
|
||||
offset,
|
||||
@@ -516,6 +575,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMediaContainer.class,
|
||||
"type", type,
|
||||
"fieldType", fieldType,
|
||||
"size", size,
|
||||
"totalSize", totalSize,
|
||||
"offset", offset,
|
||||
@@ -541,6 +602,10 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Integer size;
|
||||
|
||||
private Integer totalSize;
|
||||
@@ -557,7 +622,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
private String identifier;
|
||||
|
||||
private LibrarySectionID librarySectionID;
|
||||
private Long librarySectionID;
|
||||
|
||||
private String librarySectionTitle;
|
||||
|
||||
@@ -581,12 +646,36 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
private List<GetLibraryItemsMetadata> metadata;
|
||||
|
||||
private Optional<? extends Meta> meta = Optional.empty();
|
||||
private Optional<? extends GetLibraryItemsMeta> meta = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetLibraryItemsType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
@@ -641,7 +730,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionID(LibrarySectionID librarySectionID) {
|
||||
public Builder librarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
@@ -729,7 +818,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder meta(Meta meta) {
|
||||
public Builder meta(GetLibraryItemsMeta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
@@ -739,7 +828,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder meta(Optional<? extends Meta> meta) {
|
||||
public Builder meta(Optional<? extends GetLibraryItemsMeta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
@@ -747,6 +836,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
public GetLibraryItemsMediaContainer build() {
|
||||
return new GetLibraryItemsMediaContainer(
|
||||
type,
|
||||
fieldType,
|
||||
size,
|
||||
totalSize,
|
||||
offset,
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsMediaGuid {
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMediaGuid(
|
||||
@JsonProperty("id") String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMediaGuid withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsMediaGuid other = (GetLibraryItemsMediaGuid) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMediaGuid.class,
|
||||
"id", id);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String id;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaGuid build() {
|
||||
return new GetLibraryItemsMediaGuid(
|
||||
id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsMeta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
|
||||
public class GetLibraryItemsMeta {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetLibraryItemsLibraryResponseType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<GetLibraryItemsLibraryFieldType>> fieldType;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMeta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsLibraryResponseType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryItemsLibraryFieldType>> fieldType) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.type = type;
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibraryResponseType>> type() {
|
||||
return (Optional<List<GetLibraryItemsLibraryResponseType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibraryFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibraryItemsLibraryFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta withType(List<GetLibraryItemsLibraryResponseType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta withType(Optional<? extends List<GetLibraryItemsLibraryResponseType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta withFieldType(List<GetLibraryItemsLibraryFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta withFieldType(Optional<? extends List<GetLibraryItemsLibraryFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsMeta other = (GetLibraryItemsMeta) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.fieldType, other.fieldType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
fieldType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMeta.class,
|
||||
"type", type,
|
||||
"fieldType", fieldType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibraryResponseType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibraryFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetLibraryItemsLibraryResponseType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsLibraryResponseType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<GetLibraryItemsLibraryFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<GetLibraryItemsLibraryFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMeta build() {
|
||||
return new GetLibraryItemsMeta(
|
||||
type,
|
||||
fieldType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Float;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsMetaDataRating {
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
@JsonProperty("image")
|
||||
private String image;
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
@JsonProperty("value")
|
||||
private float value;
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMetaDataRating(
|
||||
@JsonProperty("image") String image,
|
||||
@JsonProperty("value") float value,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(value, "value");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.image = image;
|
||||
this.value = value;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String image() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public float value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
public GetLibraryItemsMetaDataRating withImage(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
public GetLibraryItemsMetaDataRating withValue(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
public GetLibraryItemsMetaDataRating withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsMetaDataRating other = (GetLibraryItemsMetaDataRating) o;
|
||||
return
|
||||
Objects.deepEquals(this.image, other.image) &&
|
||||
Objects.deepEquals(this.value, other.value) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
image,
|
||||
value,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMetaDataRating.class,
|
||||
"image", image,
|
||||
"value", value,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String image;
|
||||
|
||||
private Float value;
|
||||
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
public Builder image(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
public Builder value(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetaDataRating build() {
|
||||
return new GetLibraryItemsMetaDataRating(
|
||||
image,
|
||||
value,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,12 +50,24 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("skipChildren")
|
||||
private Optional<Boolean> skipChildren;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionID")
|
||||
private Optional<Long> librarySectionID;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionTitle")
|
||||
private Optional<String> librarySectionTitle;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionKey")
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
*
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private GetLibraryItemsType type;
|
||||
private GetLibraryItemsLibraryType type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
@@ -93,7 +105,7 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flattenSeasons")
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
@@ -106,7 +118,7 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("showOrdering")
|
||||
private Optional<? extends ShowOrdering> showOrdering;
|
||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -177,6 +189,10 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("grandparentThumb")
|
||||
private Optional<String> grandparentThumb;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentSlug")
|
||||
private Optional<String> parentSlug;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("grandparentSlug")
|
||||
private Optional<String> grandparentSlug;
|
||||
@@ -215,7 +231,7 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Collection")
|
||||
private Optional<? extends List<Collection>> collection;
|
||||
private Optional<? extends List<GetLibraryItemsCollection>> collection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Role")
|
||||
@@ -227,11 +243,15 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<MediaGuid>> mediaGuid;
|
||||
private Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("UltraBlurColors")
|
||||
private Optional<? extends UltraBlurColors> ultraBlurColors;
|
||||
private Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Rating")
|
||||
private Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Image")
|
||||
@@ -336,7 +356,10 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("guid") String guid,
|
||||
@JsonProperty("studio") Optional<String> studio,
|
||||
@JsonProperty("skipChildren") Optional<Boolean> skipChildren,
|
||||
@JsonProperty("type") GetLibraryItemsType type,
|
||||
@JsonProperty("librarySectionID") Optional<Long> librarySectionID,
|
||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
||||
@JsonProperty("type") GetLibraryItemsLibraryType type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("slug") Optional<String> slug,
|
||||
@JsonProperty("contentRating") Optional<String> contentRating,
|
||||
@@ -346,8 +369,8 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("year") Optional<Integer> year,
|
||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||
@JsonProperty("tagline") Optional<String> tagline,
|
||||
@JsonProperty("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
|
||||
@JsonProperty("flattenSeasons") Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("showOrdering") Optional<? extends GetLibraryItemsShowOrdering> showOrdering,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("art") Optional<String> art,
|
||||
@JsonProperty("banner") Optional<String> banner,
|
||||
@@ -364,6 +387,7 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("grandparentKey") Optional<String> grandparentKey,
|
||||
@JsonProperty("grandparentTitle") Optional<String> grandparentTitle,
|
||||
@JsonProperty("grandparentThumb") Optional<String> grandparentThumb,
|
||||
@JsonProperty("parentSlug") Optional<String> parentSlug,
|
||||
@JsonProperty("grandparentSlug") Optional<String> grandparentSlug,
|
||||
@JsonProperty("grandparentArt") Optional<String> grandparentArt,
|
||||
@JsonProperty("grandparentTheme") Optional<String> grandparentTheme,
|
||||
@@ -372,10 +396,11 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("Country") Optional<? extends List<GetLibraryItemsCountry>> country,
|
||||
@JsonProperty("Director") Optional<? extends List<GetLibraryItemsDirector>> director,
|
||||
@JsonProperty("Writer") Optional<? extends List<GetLibraryItemsWriter>> writer,
|
||||
@JsonProperty("Collection") Optional<? extends List<Collection>> collection,
|
||||
@JsonProperty("Collection") Optional<? extends List<GetLibraryItemsCollection>> collection,
|
||||
@JsonProperty("Role") Optional<? extends List<GetLibraryItemsRole>> role,
|
||||
@JsonProperty("Guid") Optional<? extends List<MediaGuid>> mediaGuid,
|
||||
@JsonProperty("UltraBlurColors") Optional<? extends UltraBlurColors> ultraBlurColors,
|
||||
@JsonProperty("Guid") Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid,
|
||||
@JsonProperty("UltraBlurColors") Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors,
|
||||
@JsonProperty("Rating") Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating,
|
||||
@JsonProperty("Image") Optional<? extends List<GetLibraryItemsImage>> image,
|
||||
@JsonProperty("titleSort") Optional<String> titleSort,
|
||||
@JsonProperty("viewCount") Optional<Integer> viewCount,
|
||||
@@ -404,6 +429,9 @@ public class GetLibraryItemsMetadata {
|
||||
Utils.checkNotNull(guid, "guid");
|
||||
Utils.checkNotNull(studio, "studio");
|
||||
Utils.checkNotNull(skipChildren, "skipChildren");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(slug, "slug");
|
||||
@@ -432,6 +460,7 @@ public class GetLibraryItemsMetadata {
|
||||
Utils.checkNotNull(grandparentKey, "grandparentKey");
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
Utils.checkNotNull(grandparentThumb, "grandparentThumb");
|
||||
Utils.checkNotNull(parentSlug, "parentSlug");
|
||||
Utils.checkNotNull(grandparentSlug, "grandparentSlug");
|
||||
Utils.checkNotNull(grandparentArt, "grandparentArt");
|
||||
Utils.checkNotNull(grandparentTheme, "grandparentTheme");
|
||||
@@ -444,6 +473,7 @@ public class GetLibraryItemsMetadata {
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(titleSort, "titleSort");
|
||||
Utils.checkNotNull(viewCount, "viewCount");
|
||||
@@ -472,6 +502,9 @@ public class GetLibraryItemsMetadata {
|
||||
this.guid = guid;
|
||||
this.studio = studio;
|
||||
this.skipChildren = skipChildren;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.slug = slug;
|
||||
@@ -500,6 +533,7 @@ public class GetLibraryItemsMetadata {
|
||||
this.grandparentKey = grandparentKey;
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
this.grandparentThumb = grandparentThumb;
|
||||
this.parentSlug = parentSlug;
|
||||
this.grandparentSlug = grandparentSlug;
|
||||
this.grandparentArt = grandparentArt;
|
||||
this.grandparentTheme = grandparentTheme;
|
||||
@@ -512,6 +546,7 @@ public class GetLibraryItemsMetadata {
|
||||
this.role = role;
|
||||
this.mediaGuid = mediaGuid;
|
||||
this.ultraBlurColors = ultraBlurColors;
|
||||
this.metaDataRating = metaDataRating;
|
||||
this.image = image;
|
||||
this.titleSort = titleSort;
|
||||
this.viewCount = viewCount;
|
||||
@@ -541,11 +576,11 @@ public class GetLibraryItemsMetadata {
|
||||
String ratingKey,
|
||||
String key,
|
||||
String guid,
|
||||
GetLibraryItemsType type,
|
||||
GetLibraryItemsLibraryType type,
|
||||
String title,
|
||||
String summary,
|
||||
long addedAt) {
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -578,12 +613,27 @@ public class GetLibraryItemsMetadata {
|
||||
return skipChildren;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Long> librarySectionID() {
|
||||
return librarySectionID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> librarySectionTitle() {
|
||||
return librarySectionTitle;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> librarySectionKey() {
|
||||
return librarySectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public GetLibraryItemsType type() {
|
||||
public GetLibraryItemsLibraryType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -634,8 +684,8 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<FlattenSeasons> flattenSeasons() {
|
||||
return (Optional<FlattenSeasons>) flattenSeasons;
|
||||
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
|
||||
return (Optional<GetLibraryItemsFlattenSeasons>) flattenSeasons;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -649,8 +699,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<ShowOrdering> showOrdering() {
|
||||
return (Optional<ShowOrdering>) showOrdering;
|
||||
public Optional<GetLibraryItemsShowOrdering> showOrdering() {
|
||||
return (Optional<GetLibraryItemsShowOrdering>) showOrdering;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -739,6 +789,11 @@ public class GetLibraryItemsMetadata {
|
||||
return grandparentThumb;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> parentSlug() {
|
||||
return parentSlug;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> grandparentSlug() {
|
||||
return grandparentSlug;
|
||||
@@ -790,8 +845,8 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Collection>> collection() {
|
||||
return (Optional<List<Collection>>) collection;
|
||||
public Optional<List<GetLibraryItemsCollection>> collection() {
|
||||
return (Optional<List<GetLibraryItemsCollection>>) collection;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -806,14 +861,20 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<MediaGuid>> mediaGuid() {
|
||||
return (Optional<List<MediaGuid>>) mediaGuid;
|
||||
public Optional<List<GetLibraryItemsMediaGuid>> mediaGuid() {
|
||||
return (Optional<List<GetLibraryItemsMediaGuid>>) mediaGuid;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<UltraBlurColors> ultraBlurColors() {
|
||||
return (Optional<UltraBlurColors>) ultraBlurColors;
|
||||
public Optional<GetLibraryItemsUltraBlurColors> ultraBlurColors() {
|
||||
return (Optional<GetLibraryItemsUltraBlurColors>) ultraBlurColors;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsMetaDataRating>> metaDataRating() {
|
||||
return (Optional<List<GetLibraryItemsMetaDataRating>>) metaDataRating;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -987,11 +1048,47 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = Optional.ofNullable(librarySectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionID(Optional<Long> librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionTitle(Optional<String> librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionKey(String librarySectionKey) {
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
this.librarySectionKey = Optional.ofNullable(librarySectionKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withLibrarySectionKey(Optional<String> librarySectionKey) {
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withType(GetLibraryItemsType type) {
|
||||
public GetLibraryItemsMetadata withType(GetLibraryItemsLibraryType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -1093,13 +1190,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(FlattenSeasons flattenSeasons) {
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
@@ -1114,7 +1211,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = Optional.ofNullable(showOrdering);
|
||||
return this;
|
||||
@@ -1129,7 +1226,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = showOrdering;
|
||||
return this;
|
||||
@@ -1330,6 +1427,18 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withParentSlug(String parentSlug) {
|
||||
Utils.checkNotNull(parentSlug, "parentSlug");
|
||||
this.parentSlug = Optional.ofNullable(parentSlug);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withParentSlug(Optional<String> parentSlug) {
|
||||
Utils.checkNotNull(parentSlug, "parentSlug");
|
||||
this.parentSlug = parentSlug;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withGrandparentSlug(String grandparentSlug) {
|
||||
Utils.checkNotNull(grandparentSlug, "grandparentSlug");
|
||||
this.grandparentSlug = Optional.ofNullable(grandparentSlug);
|
||||
@@ -1434,13 +1543,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withCollection(List<Collection> collection) {
|
||||
public GetLibraryItemsMetadata withCollection(List<GetLibraryItemsCollection> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = Optional.ofNullable(collection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withCollection(Optional<? extends List<Collection>> collection) {
|
||||
public GetLibraryItemsMetadata withCollection(Optional<? extends List<GetLibraryItemsCollection>> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = collection;
|
||||
return this;
|
||||
@@ -1462,7 +1571,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withMediaGuid(List<MediaGuid> mediaGuid) {
|
||||
public GetLibraryItemsMetadata withMediaGuid(List<GetLibraryItemsMediaGuid> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = Optional.ofNullable(mediaGuid);
|
||||
return this;
|
||||
@@ -1472,24 +1581,36 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withMediaGuid(Optional<? extends List<MediaGuid>> mediaGuid) {
|
||||
public GetLibraryItemsMetadata withMediaGuid(Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = mediaGuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withUltraBlurColors(UltraBlurColors ultraBlurColors) {
|
||||
public GetLibraryItemsMetadata withUltraBlurColors(GetLibraryItemsUltraBlurColors ultraBlurColors) {
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
this.ultraBlurColors = Optional.ofNullable(ultraBlurColors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withUltraBlurColors(Optional<? extends UltraBlurColors> ultraBlurColors) {
|
||||
public GetLibraryItemsMetadata withUltraBlurColors(Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors) {
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
this.ultraBlurColors = ultraBlurColors;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withMetaDataRating(List<GetLibraryItemsMetaDataRating> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = Optional.ofNullable(metaDataRating);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withMetaDataRating(Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = metaDataRating;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withImage(List<GetLibraryItemsImage> image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = Optional.ofNullable(image);
|
||||
@@ -1789,6 +1910,9 @@ public class GetLibraryItemsMetadata {
|
||||
Objects.deepEquals(this.guid, other.guid) &&
|
||||
Objects.deepEquals(this.studio, other.studio) &&
|
||||
Objects.deepEquals(this.skipChildren, other.skipChildren) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.slug, other.slug) &&
|
||||
@@ -1817,6 +1941,7 @@ public class GetLibraryItemsMetadata {
|
||||
Objects.deepEquals(this.grandparentKey, other.grandparentKey) &&
|
||||
Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) &&
|
||||
Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) &&
|
||||
Objects.deepEquals(this.parentSlug, other.parentSlug) &&
|
||||
Objects.deepEquals(this.grandparentSlug, other.grandparentSlug) &&
|
||||
Objects.deepEquals(this.grandparentArt, other.grandparentArt) &&
|
||||
Objects.deepEquals(this.grandparentTheme, other.grandparentTheme) &&
|
||||
@@ -1829,6 +1954,7 @@ public class GetLibraryItemsMetadata {
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.mediaGuid, other.mediaGuid) &&
|
||||
Objects.deepEquals(this.ultraBlurColors, other.ultraBlurColors) &&
|
||||
Objects.deepEquals(this.metaDataRating, other.metaDataRating) &&
|
||||
Objects.deepEquals(this.image, other.image) &&
|
||||
Objects.deepEquals(this.titleSort, other.titleSort) &&
|
||||
Objects.deepEquals(this.viewCount, other.viewCount) &&
|
||||
@@ -1862,6 +1988,9 @@ public class GetLibraryItemsMetadata {
|
||||
guid,
|
||||
studio,
|
||||
skipChildren,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionKey,
|
||||
type,
|
||||
title,
|
||||
slug,
|
||||
@@ -1890,6 +2019,7 @@ public class GetLibraryItemsMetadata {
|
||||
grandparentKey,
|
||||
grandparentTitle,
|
||||
grandparentThumb,
|
||||
parentSlug,
|
||||
grandparentSlug,
|
||||
grandparentArt,
|
||||
grandparentTheme,
|
||||
@@ -1902,6 +2032,7 @@ public class GetLibraryItemsMetadata {
|
||||
role,
|
||||
mediaGuid,
|
||||
ultraBlurColors,
|
||||
metaDataRating,
|
||||
image,
|
||||
titleSort,
|
||||
viewCount,
|
||||
@@ -1935,6 +2066,9 @@ public class GetLibraryItemsMetadata {
|
||||
"guid", guid,
|
||||
"studio", studio,
|
||||
"skipChildren", skipChildren,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionKey", librarySectionKey,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"slug", slug,
|
||||
@@ -1963,6 +2097,7 @@ public class GetLibraryItemsMetadata {
|
||||
"grandparentKey", grandparentKey,
|
||||
"grandparentTitle", grandparentTitle,
|
||||
"grandparentThumb", grandparentThumb,
|
||||
"parentSlug", parentSlug,
|
||||
"grandparentSlug", grandparentSlug,
|
||||
"grandparentArt", grandparentArt,
|
||||
"grandparentTheme", grandparentTheme,
|
||||
@@ -1975,6 +2110,7 @@ public class GetLibraryItemsMetadata {
|
||||
"role", role,
|
||||
"mediaGuid", mediaGuid,
|
||||
"ultraBlurColors", ultraBlurColors,
|
||||
"metaDataRating", metaDataRating,
|
||||
"image", image,
|
||||
"titleSort", titleSort,
|
||||
"viewCount", viewCount,
|
||||
@@ -2012,7 +2148,13 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<Boolean> skipChildren = Optional.empty();
|
||||
|
||||
private GetLibraryItemsType type;
|
||||
private Optional<Long> librarySectionID = Optional.empty();
|
||||
|
||||
private Optional<String> librarySectionTitle = Optional.empty();
|
||||
|
||||
private Optional<String> librarySectionKey = Optional.empty();
|
||||
|
||||
private GetLibraryItemsLibraryType type;
|
||||
|
||||
private String title;
|
||||
|
||||
@@ -2032,9 +2174,9 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<String> tagline = Optional.empty();
|
||||
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
|
||||
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
|
||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -2068,6 +2210,8 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<String> grandparentThumb = Optional.empty();
|
||||
|
||||
private Optional<String> parentSlug = Optional.empty();
|
||||
|
||||
private Optional<String> grandparentSlug = Optional.empty();
|
||||
|
||||
private Optional<String> grandparentArt = Optional.empty();
|
||||
@@ -2084,13 +2228,15 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsWriter>> writer = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Collection>> collection = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryItemsCollection>> collection = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsRole>> role = Optional.empty();
|
||||
|
||||
private Optional<? extends List<MediaGuid>> mediaGuid = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid = Optional.empty();
|
||||
|
||||
private Optional<? extends UltraBlurColors> ultraBlurColors = Optional.empty();
|
||||
private Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsImage>> image = Optional.empty();
|
||||
|
||||
@@ -2189,11 +2335,47 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = Optional.ofNullable(librarySectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionID(Optional<Long> librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionTitle(Optional<String> librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionKey(String librarySectionKey) {
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
this.librarySectionKey = Optional.ofNullable(librarySectionKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionKey(Optional<String> librarySectionKey) {
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
*
|
||||
*/
|
||||
public Builder type(GetLibraryItemsType type) {
|
||||
public Builder type(GetLibraryItemsLibraryType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -2295,13 +2477,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder flattenSeasons(FlattenSeasons flattenSeasons) {
|
||||
public Builder flattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder flattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||
public Builder flattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
@@ -2316,7 +2498,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = Optional.ofNullable(showOrdering);
|
||||
return this;
|
||||
@@ -2331,7 +2513,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = showOrdering;
|
||||
return this;
|
||||
@@ -2532,6 +2714,18 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder parentSlug(String parentSlug) {
|
||||
Utils.checkNotNull(parentSlug, "parentSlug");
|
||||
this.parentSlug = Optional.ofNullable(parentSlug);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder parentSlug(Optional<String> parentSlug) {
|
||||
Utils.checkNotNull(parentSlug, "parentSlug");
|
||||
this.parentSlug = parentSlug;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder grandparentSlug(String grandparentSlug) {
|
||||
Utils.checkNotNull(grandparentSlug, "grandparentSlug");
|
||||
this.grandparentSlug = Optional.ofNullable(grandparentSlug);
|
||||
@@ -2636,13 +2830,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder collection(List<Collection> collection) {
|
||||
public Builder collection(List<GetLibraryItemsCollection> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = Optional.ofNullable(collection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder collection(Optional<? extends List<Collection>> collection) {
|
||||
public Builder collection(Optional<? extends List<GetLibraryItemsCollection>> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = collection;
|
||||
return this;
|
||||
@@ -2664,7 +2858,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder mediaGuid(List<MediaGuid> mediaGuid) {
|
||||
public Builder mediaGuid(List<GetLibraryItemsMediaGuid> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = Optional.ofNullable(mediaGuid);
|
||||
return this;
|
||||
@@ -2674,24 +2868,36 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder mediaGuid(Optional<? extends List<MediaGuid>> mediaGuid) {
|
||||
public Builder mediaGuid(Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = mediaGuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder ultraBlurColors(UltraBlurColors ultraBlurColors) {
|
||||
public Builder ultraBlurColors(GetLibraryItemsUltraBlurColors ultraBlurColors) {
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
this.ultraBlurColors = Optional.ofNullable(ultraBlurColors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder ultraBlurColors(Optional<? extends UltraBlurColors> ultraBlurColors) {
|
||||
public Builder ultraBlurColors(Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors) {
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
this.ultraBlurColors = ultraBlurColors;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metaDataRating(List<GetLibraryItemsMetaDataRating> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = Optional.ofNullable(metaDataRating);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metaDataRating(Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = metaDataRating;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder image(List<GetLibraryItemsImage> image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = Optional.ofNullable(image);
|
||||
@@ -2985,6 +3191,9 @@ public class GetLibraryItemsMetadata {
|
||||
guid,
|
||||
studio,
|
||||
skipChildren,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionKey,
|
||||
type,
|
||||
title,
|
||||
slug,
|
||||
@@ -3013,6 +3222,7 @@ public class GetLibraryItemsMetadata {
|
||||
grandparentKey,
|
||||
grandparentTitle,
|
||||
grandparentThumb,
|
||||
parentSlug,
|
||||
grandparentSlug,
|
||||
grandparentArt,
|
||||
grandparentTheme,
|
||||
@@ -3025,6 +3235,7 @@ public class GetLibraryItemsMetadata {
|
||||
role,
|
||||
mediaGuid,
|
||||
ultraBlurColors,
|
||||
metaDataRating,
|
||||
image,
|
||||
titleSort,
|
||||
viewCount,
|
||||
@@ -3050,11 +3261,11 @@ public class GetLibraryItemsMetadata {
|
||||
parentTheme);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends FlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
||||
new LazySingletonValue<>(
|
||||
"flattenSeasons",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends FlattenSeasons>>() {});
|
||||
new TypeReference<Optional<? extends GetLibraryItemsFlattenSeasons>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum GetLibraryItemsOptimizedForStreaming {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetLibraryItemsOptimizedForStreaming(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -50,6 +52,14 @@ public class GetLibraryItemsPart {
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<Boolean> optimizedForStreaming;
|
||||
|
||||
@JsonProperty("videoProfile")
|
||||
private String videoProfile;
|
||||
|
||||
@@ -59,7 +69,11 @@ public class GetLibraryItemsPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
private Optional<? extends GetLibraryItemsHasThumbnail> hasThumbnail;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<GetLibraryItemsStream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsPart(
|
||||
@@ -70,9 +84,12 @@ public class GetLibraryItemsPart {
|
||||
@JsonProperty("size") long size,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Boolean> optimizedForStreaming,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("indexes") Optional<String> indexes,
|
||||
@JsonProperty("hasThumbnail") Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
@JsonProperty("hasThumbnail") Optional<? extends GetLibraryItemsHasThumbnail> hasThumbnail,
|
||||
@JsonProperty("Stream") Optional<? extends List<GetLibraryItemsStream>> stream) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
@@ -80,9 +97,12 @@ public class GetLibraryItemsPart {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
@@ -90,9 +110,12 @@ public class GetLibraryItemsPart {
|
||||
this.size = size;
|
||||
this.container = container;
|
||||
this.audioProfile = audioProfile;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.videoProfile = videoProfile;
|
||||
this.indexes = indexes;
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart(
|
||||
@@ -103,7 +126,7 @@ public class GetLibraryItemsPart {
|
||||
long size,
|
||||
String container,
|
||||
String videoProfile) {
|
||||
this(id, key, duration, file, size, container, Optional.empty(), videoProfile, Optional.empty(), Optional.empty());
|
||||
this(id, key, duration, file, size, container, Optional.empty(), Optional.empty(), Optional.empty(), videoProfile, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -145,6 +168,16 @@ public class GetLibraryItemsPart {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
@@ -157,8 +190,14 @@ public class GetLibraryItemsPart {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<HasThumbnail> hasThumbnail() {
|
||||
return (Optional<HasThumbnail>) hasThumbnail;
|
||||
public Optional<GetLibraryItemsHasThumbnail> hasThumbnail() {
|
||||
return (Optional<GetLibraryItemsHasThumbnail>) hasThumbnail;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsStream>> stream() {
|
||||
return (Optional<List<GetLibraryItemsStream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -217,6 +256,30 @@ public class GetLibraryItemsPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withOptimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withOptimizedForStreaming(Optional<Boolean> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
@@ -235,17 +298,29 @@ public class GetLibraryItemsPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHasThumbnail(HasThumbnail hasThumbnail) {
|
||||
public GetLibraryItemsPart withHasThumbnail(GetLibraryItemsHasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
public GetLibraryItemsPart withHasThumbnail(Optional<? extends GetLibraryItemsHasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withStream(List<GetLibraryItemsStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withStream(Optional<? extends List<GetLibraryItemsStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -264,9 +339,12 @@ public class GetLibraryItemsPart {
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.indexes, other.indexes) &&
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail);
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) &&
|
||||
Objects.deepEquals(this.stream, other.stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -279,9 +357,12 @@ public class GetLibraryItemsPart {
|
||||
size,
|
||||
container,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
optimizedForStreaming,
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail);
|
||||
hasThumbnail,
|
||||
stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -294,9 +375,12 @@ public class GetLibraryItemsPart {
|
||||
"size", size,
|
||||
"container", container,
|
||||
"audioProfile", audioProfile,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"videoProfile", videoProfile,
|
||||
"indexes", indexes,
|
||||
"hasThumbnail", hasThumbnail);
|
||||
"hasThumbnail", hasThumbnail,
|
||||
"stream", stream);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
@@ -315,11 +399,17 @@ public class GetLibraryItemsPart {
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<Boolean> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private String videoProfile;
|
||||
|
||||
private Optional<String> indexes = Optional.empty();
|
||||
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
private Optional<? extends GetLibraryItemsHasThumbnail> hasThumbnail;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsStream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -377,6 +467,30 @@ public class GetLibraryItemsPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<Boolean> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
@@ -395,17 +509,29 @@ public class GetLibraryItemsPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(HasThumbnail hasThumbnail) {
|
||||
public Builder hasThumbnail(GetLibraryItemsHasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
public Builder hasThumbnail(Optional<? extends GetLibraryItemsHasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(List<GetLibraryItemsStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(Optional<? extends List<GetLibraryItemsStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart build() {
|
||||
if (hasThumbnail == null) {
|
||||
@@ -418,16 +544,19 @@ public class GetLibraryItemsPart {
|
||||
size,
|
||||
container,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
optimizedForStreaming,
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail);
|
||||
hasThumbnail,
|
||||
stream);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends HasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsHasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
new LazySingletonValue<>(
|
||||
"hasThumbnail",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends HasThumbnail>>() {});
|
||||
new TypeReference<Optional<? extends GetLibraryItemsHasThumbnail>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsQueryParamIncludeMeta {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetLibraryItemsQueryParamIncludeMeta(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsQueryParamType {
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
|
||||
private GetLibraryItemsQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -42,13 +42,6 @@ public class GetLibraryItemsRequest {
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids")
|
||||
private Optional<? extends IncludeGuids> includeGuids;
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")
|
||||
private Optional<? extends IncludeMeta> includeMeta;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
@@ -59,7 +52,14 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private Optional<? extends Type> type;
|
||||
private Optional<? extends GetLibraryItemsQueryParamType> type;
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")
|
||||
private Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta;
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
@@ -84,22 +84,22 @@ public class GetLibraryItemsRequest {
|
||||
int sectionKey,
|
||||
Tag tag,
|
||||
Optional<? extends IncludeGuids> includeGuids,
|
||||
Optional<? extends IncludeMeta> includeMeta,
|
||||
Optional<? extends Type> type,
|
||||
Optional<? extends GetLibraryItemsQueryParamType> type,
|
||||
Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta,
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.sectionKey = sectionKey;
|
||||
this.tag = tag;
|
||||
this.includeGuids = includeGuids;
|
||||
this.includeMeta = includeMeta;
|
||||
this.type = type;
|
||||
this.includeMeta = includeMeta;
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
}
|
||||
@@ -138,16 +138,6 @@ public class GetLibraryItemsRequest {
|
||||
return (Optional<IncludeGuids>) includeGuids;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<IncludeMeta> includeMeta() {
|
||||
return (Optional<IncludeMeta>) includeMeta;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
@@ -159,8 +149,18 @@ public class GetLibraryItemsRequest {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<Type> type() {
|
||||
return (Optional<Type>) type;
|
||||
public Optional<GetLibraryItemsQueryParamType> type() {
|
||||
return (Optional<GetLibraryItemsQueryParamType>) type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsQueryParamIncludeMeta> includeMeta() {
|
||||
return (Optional<GetLibraryItemsQueryParamIncludeMeta>) includeMeta;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -229,26 +229,6 @@ public class GetLibraryItemsRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withIncludeMeta(IncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withIncludeMeta(Optional<? extends IncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
@@ -258,7 +238,7 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withType(Type type) {
|
||||
public GetLibraryItemsRequest withType(GetLibraryItemsQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
@@ -273,12 +253,32 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withType(Optional<? extends Type> type) {
|
||||
public GetLibraryItemsRequest withType(Optional<? extends GetLibraryItemsQueryParamType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withIncludeMeta(GetLibraryItemsQueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withIncludeMeta(Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
@@ -340,8 +340,8 @@ public class GetLibraryItemsRequest {
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.includeGuids, other.includeGuids) &&
|
||||
Objects.deepEquals(this.includeMeta, other.includeMeta) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.includeMeta, other.includeMeta) &&
|
||||
Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) &&
|
||||
Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize);
|
||||
}
|
||||
@@ -352,8 +352,8 @@ public class GetLibraryItemsRequest {
|
||||
sectionKey,
|
||||
tag,
|
||||
includeGuids,
|
||||
includeMeta,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
@@ -364,8 +364,8 @@ public class GetLibraryItemsRequest {
|
||||
"sectionKey", sectionKey,
|
||||
"tag", tag,
|
||||
"includeGuids", includeGuids,
|
||||
"includeMeta", includeMeta,
|
||||
"type", type,
|
||||
"includeMeta", includeMeta,
|
||||
"xPlexContainerStart", xPlexContainerStart,
|
||||
"xPlexContainerSize", xPlexContainerSize);
|
||||
}
|
||||
@@ -378,9 +378,9 @@ public class GetLibraryItemsRequest {
|
||||
|
||||
private Optional<? extends IncludeGuids> includeGuids;
|
||||
|
||||
private Optional<? extends IncludeMeta> includeMeta;
|
||||
private Optional<? extends GetLibraryItemsQueryParamType> type = Optional.empty();
|
||||
|
||||
private Optional<? extends Type> type = Optional.empty();
|
||||
private Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta;
|
||||
|
||||
private Optional<Integer> xPlexContainerStart;
|
||||
|
||||
@@ -430,26 +430,6 @@ public class GetLibraryItemsRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(IncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(Optional<? extends IncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
@@ -459,7 +439,7 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(Type type) {
|
||||
public Builder type(GetLibraryItemsQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
@@ -474,12 +454,32 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(Optional<? extends Type> type) {
|
||||
public Builder type(Optional<? extends GetLibraryItemsQueryParamType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(GetLibraryItemsQueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
@@ -544,8 +544,8 @@ public class GetLibraryItemsRequest {
|
||||
sectionKey,
|
||||
tag,
|
||||
includeGuids,
|
||||
includeMeta,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
@@ -556,11 +556,11 @@ public class GetLibraryItemsRequest {
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeGuids>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends IncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsQueryParamIncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
new LazySingletonValue<>(
|
||||
"includeMeta",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeMeta>>() {});
|
||||
new TypeReference<Optional<? extends GetLibraryItemsQueryParamIncludeMeta>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerStart =
|
||||
new LazySingletonValue<>(
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -19,41 +20,233 @@ import java.util.Optional;
|
||||
|
||||
public class GetLibraryItemsRole {
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Long> id;
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsRole(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("id") Optional<Long> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("role") Optional<String> role) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.thumb = thumb;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public GetLibraryItemsRole() {
|
||||
this(Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public GetLibraryItemsRole withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public GetLibraryItemsRole withId(Optional<Long> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public GetLibraryItemsRole withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public GetLibraryItemsRole withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public GetLibraryItemsRole withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public GetLibraryItemsRole withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public GetLibraryItemsRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public GetLibraryItemsRole withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public GetLibraryItemsRole withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public GetLibraryItemsRole withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public GetLibraryItemsRole withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public GetLibraryItemsRole withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -65,44 +258,170 @@ public class GetLibraryItemsRole {
|
||||
}
|
||||
GetLibraryItemsRole other = (GetLibraryItemsRole) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
thumb,
|
||||
tag,
|
||||
tagKey,
|
||||
role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsRole.class,
|
||||
"tag", tag);
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"thumb", thumb,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private Optional<Long> id = Optional.empty();
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Builder id(Optional<Long> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsRole build() {
|
||||
return new GetLibraryItemsRole(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
thumb,
|
||||
tag,
|
||||
tagKey,
|
||||
role);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsShowOrdering(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public class GetLibraryItemsSort {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
private Optional<? extends GetLibraryItemsActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -45,7 +45,7 @@ public class GetLibraryItemsSort {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
private Optional<? extends GetLibraryItemsDefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
@@ -65,8 +65,8 @@ public class GetLibraryItemsSort {
|
||||
public GetLibraryItemsSort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends ActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends DefaultDirection> defaultDirection,
|
||||
@JsonProperty("activeDirection") Optional<? extends GetLibraryItemsActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends GetLibraryItemsDefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") String key,
|
||||
@@ -111,8 +111,8 @@ public class GetLibraryItemsSort {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<ActiveDirection> activeDirection() {
|
||||
return (Optional<ActiveDirection>) activeDirection;
|
||||
public Optional<GetLibraryItemsActiveDirection> activeDirection() {
|
||||
return (Optional<GetLibraryItemsActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,8 +121,8 @@ public class GetLibraryItemsSort {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<DefaultDirection> defaultDirection() {
|
||||
return (Optional<DefaultDirection>) defaultDirection;
|
||||
public Optional<GetLibraryItemsDefaultDirection> defaultDirection() {
|
||||
return (Optional<GetLibraryItemsDefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -177,7 +177,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withActiveDirection(ActiveDirection activeDirection) {
|
||||
public GetLibraryItemsSort withActiveDirection(GetLibraryItemsActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
@@ -187,7 +187,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withActiveDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
public GetLibraryItemsSort withActiveDirection(Optional<? extends GetLibraryItemsActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
@@ -197,7 +197,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withDefaultDirection(DefaultDirection defaultDirection) {
|
||||
public GetLibraryItemsSort withDefaultDirection(GetLibraryItemsDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
@@ -207,7 +207,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withDefaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
public GetLibraryItemsSort withDefaultDirection(Optional<? extends GetLibraryItemsDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -301,9 +301,9 @@ public class GetLibraryItemsSort {
|
||||
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
private Optional<? extends GetLibraryItemsActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
private Optional<? extends GetLibraryItemsDefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
@@ -345,7 +345,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(ActiveDirection activeDirection) {
|
||||
public Builder activeDirection(GetLibraryItemsActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
@@ -355,7 +355,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
public Builder activeDirection(Optional<? extends GetLibraryItemsActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
@@ -365,7 +365,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(DefaultDirection defaultDirection) {
|
||||
public Builder defaultDirection(GetLibraryItemsDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
@@ -375,7 +375,7 @@ public class GetLibraryItemsSort {
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
public Builder defaultDirection(Optional<? extends GetLibraryItemsDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -434,17 +434,17 @@ public class GetLibraryItemsSort {
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends ActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends ActiveDirection>>() {});
|
||||
new TypeReference<Optional<? extends GetLibraryItemsActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends DefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsDefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends DefaultDirection>>() {});
|
||||
new TypeReference<Optional<? extends GetLibraryItemsDefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,27 +4,316 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsType - The type of media content
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsType {
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
public class GetLibraryItemsType {
|
||||
|
||||
private GetLibraryItemsType(String value) {
|
||||
this.value = value;
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetLibraryItemsField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryItemsFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryItemsSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
public GetLibraryItemsType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFilter>> filter() {
|
||||
return (Optional<List<GetLibraryItemsFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsSort>> sort() {
|
||||
return (Optional<List<GetLibraryItemsSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsField>> field() {
|
||||
return (Optional<List<GetLibraryItemsField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withFilter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withFilter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withSort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withSort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withField(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withField(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsType other = (GetLibraryItemsType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType build() {
|
||||
return new GetLibraryItemsType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsUltraBlurColors {
|
||||
|
||||
@JsonProperty("topLeft")
|
||||
private String topLeft;
|
||||
|
||||
@JsonProperty("topRight")
|
||||
private String topRight;
|
||||
|
||||
@JsonProperty("bottomRight")
|
||||
private String bottomRight;
|
||||
|
||||
@JsonProperty("bottomLeft")
|
||||
private String bottomLeft;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsUltraBlurColors(
|
||||
@JsonProperty("topLeft") String topLeft,
|
||||
@JsonProperty("topRight") String topRight,
|
||||
@JsonProperty("bottomRight") String bottomRight,
|
||||
@JsonProperty("bottomLeft") String bottomLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.topLeft = topLeft;
|
||||
this.topRight = topRight;
|
||||
this.bottomRight = bottomRight;
|
||||
this.bottomLeft = bottomLeft;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String topLeft() {
|
||||
return topLeft;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String topRight() {
|
||||
return topRight;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String bottomRight() {
|
||||
return bottomRight;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String bottomLeft() {
|
||||
return bottomLeft;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsUltraBlurColors withTopLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsUltraBlurColors withTopRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsUltraBlurColors withBottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsUltraBlurColors withBottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsUltraBlurColors other = (GetLibraryItemsUltraBlurColors) o;
|
||||
return
|
||||
Objects.deepEquals(this.topLeft, other.topLeft) &&
|
||||
Objects.deepEquals(this.topRight, other.topRight) &&
|
||||
Objects.deepEquals(this.bottomRight, other.bottomRight) &&
|
||||
Objects.deepEquals(this.bottomLeft, other.bottomLeft);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
bottomLeft);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsUltraBlurColors.class,
|
||||
"topLeft", topLeft,
|
||||
"topRight", topRight,
|
||||
"bottomRight", bottomRight,
|
||||
"bottomLeft", bottomLeft);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String topLeft;
|
||||
|
||||
private String topRight;
|
||||
|
||||
private String bottomRight;
|
||||
|
||||
private String bottomLeft;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder topLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder topRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsUltraBlurColors build() {
|
||||
return new GetLibraryItemsUltraBlurColors(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
bottomLeft);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public class GetMetaDataByRatingKeyPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<Stream>> stream;
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyStream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyPart(
|
||||
@@ -79,7 +79,7 @@ public class GetMetaDataByRatingKeyPart {
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Boolean> optimizedForStreaming,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Stream") Optional<? extends List<Stream>> stream) {
|
||||
@JsonProperty("Stream") Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
@@ -160,8 +160,8 @@ public class GetMetaDataByRatingKeyPart {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Stream>> stream() {
|
||||
return (Optional<List<Stream>>) stream;
|
||||
public Optional<List<GetMetaDataByRatingKeyStream>> stream() {
|
||||
return (Optional<List<GetMetaDataByRatingKeyStream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -288,13 +288,13 @@ public class GetMetaDataByRatingKeyPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withStream(List<Stream> stream) {
|
||||
public GetMetaDataByRatingKeyPart withStream(List<GetMetaDataByRatingKeyStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withStream(Optional<? extends List<Stream>> stream) {
|
||||
public GetMetaDataByRatingKeyPart withStream(Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
@@ -377,7 +377,7 @@ public class GetMetaDataByRatingKeyPart {
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Stream>> stream = Optional.empty();
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyStream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -503,13 +503,13 @@ public class GetMetaDataByRatingKeyPart {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(List<Stream> stream) {
|
||||
public Builder stream(List<GetMetaDataByRatingKeyStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(Optional<? extends List<Stream>> stream) {
|
||||
public Builder stream(Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -29,6 +29,15 @@ public class GetPinRequest {
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=strong")
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
|
||||
private Optional<String> clientName;
|
||||
|
||||
@@ -44,16 +53,19 @@ public class GetPinRequest {
|
||||
@JsonCreator
|
||||
public GetPinRequest(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceName,
|
||||
Optional<String> clientVersion,
|
||||
Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(strong, "strong");
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.strong = strong;
|
||||
this.clientID = clientID;
|
||||
this.clientName = clientName;
|
||||
this.deviceName = deviceName;
|
||||
this.clientVersion = clientVersion;
|
||||
@@ -61,7 +73,7 @@ public class GetPinRequest {
|
||||
}
|
||||
|
||||
public GetPinRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,6 +87,17 @@ public class GetPinRequest {
|
||||
return strong;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientName() {
|
||||
return clientName;
|
||||
@@ -123,6 +146,30 @@ public class GetPinRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetPinRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withClientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
@@ -182,6 +229,7 @@ public class GetPinRequest {
|
||||
GetPinRequest other = (GetPinRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.strong, other.strong) &&
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.clientName, other.clientName) &&
|
||||
Objects.deepEquals(this.deviceName, other.deviceName) &&
|
||||
Objects.deepEquals(this.clientVersion, other.clientVersion) &&
|
||||
@@ -192,6 +240,7 @@ public class GetPinRequest {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
strong,
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
@@ -202,6 +251,7 @@ public class GetPinRequest {
|
||||
public String toString() {
|
||||
return Utils.toString(GetPinRequest.class,
|
||||
"strong", strong,
|
||||
"clientID", clientID,
|
||||
"clientName", clientName,
|
||||
"deviceName", deviceName,
|
||||
"clientVersion", clientVersion,
|
||||
@@ -212,6 +262,8 @@ public class GetPinRequest {
|
||||
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
private Optional<String> deviceName = Optional.empty();
|
||||
@@ -248,6 +300,30 @@ public class GetPinRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
@@ -301,6 +377,7 @@ public class GetPinRequest {
|
||||
strong = _SINGLETON_VALUE_Strong.value();
|
||||
} return new GetPinRequest(
|
||||
strong,
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetRecentlyAddedActiveDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetRecentlyAddedActiveDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum GetRecentlyAddedDefaultDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetRecentlyAddedDefaultDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedField {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("subType")
|
||||
private Optional<String> subType;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedField(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("subType") Optional<String> subType) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField(
|
||||
String key,
|
||||
String title,
|
||||
String type) {
|
||||
this(key, title, type, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> subType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField withSubType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField withSubType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedField other = (GetRecentlyAddedField) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.subType, other.subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedField.class,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type,
|
||||
"subType", subType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String type;
|
||||
|
||||
private Optional<String> subType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder subType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedField build() {
|
||||
return new GetRecentlyAddedField(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
subType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetRecentlyAddedFieldType {
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("Operator")
|
||||
private List<GetRecentlyAddedOperator> operator;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedFieldType(
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("Operator") List<GetRecentlyAddedOperator> operator) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.type = type;
|
||||
this.operator = operator;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<GetRecentlyAddedOperator> operator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFieldType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFieldType withOperator(List<GetRecentlyAddedOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedFieldType other = (GetRecentlyAddedFieldType) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.operator, other.operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedFieldType.class,
|
||||
"type", type,
|
||||
"operator", operator);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String type;
|
||||
|
||||
private List<GetRecentlyAddedOperator> operator;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(List<GetRecentlyAddedOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFieldType build() {
|
||||
return new GetRecentlyAddedFieldType(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetRecentlyAddedFilter {
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
@JsonProperty("filterType")
|
||||
private String filterType;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedFilter(
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("filterType") String filterType,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.filter = filter;
|
||||
this.filterType = filterType;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filterType() {
|
||||
return filterType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter withFilterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedFilter other = (GetRecentlyAddedFilter) o;
|
||||
return
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.filterType, other.filterType) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedFilter.class,
|
||||
"filter", filter,
|
||||
"filterType", filterType,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String filter;
|
||||
|
||||
private String filterType;
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedFilter build() {
|
||||
return new GetRecentlyAddedFilter(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
public enum GetRecentlyAddedHubsResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
BACKGROUND("background"),
|
||||
SNAPSHOT("snapshot"),
|
||||
CLEAR_LOGO("clearLogo");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetRecentlyAddedHubsResponseType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedHubsType - The type of media content
|
||||
*
|
||||
*/
|
||||
public enum GetRecentlyAddedHubsType {
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetRecentlyAddedHubsType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetRecentlyAddedImage {
|
||||
|
||||
@JsonProperty("alt")
|
||||
private String alt;
|
||||
|
||||
@JsonProperty("type")
|
||||
private GetRecentlyAddedHubsResponseType type;
|
||||
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedImage(
|
||||
@JsonProperty("alt") String alt,
|
||||
@JsonProperty("type") GetRecentlyAddedHubsResponseType type,
|
||||
@JsonProperty("url") String url) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.alt = alt;
|
||||
this.type = type;
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String alt() {
|
||||
return alt;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public GetRecentlyAddedHubsResponseType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String url() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedImage withAlt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedImage withType(GetRecentlyAddedHubsResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedImage withUrl(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedImage other = (GetRecentlyAddedImage) o;
|
||||
return
|
||||
Objects.deepEquals(this.alt, other.alt) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.url, other.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedImage.class,
|
||||
"alt", alt,
|
||||
"type", type,
|
||||
"url", url);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String alt;
|
||||
|
||||
private GetRecentlyAddedHubsResponseType type;
|
||||
|
||||
private String url;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder alt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(GetRecentlyAddedHubsResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder url(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedImage build() {
|
||||
return new GetRecentlyAddedImage(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryCountry {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryCountry(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryCountry() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryCountry withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryCountry withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryCountry other = (GetRecentlyAddedLibraryCountry) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryCountry.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryCountry build() {
|
||||
return new GetRecentlyAddedLibraryCountry(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryDirector {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryDirector(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryDirector() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryDirector withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryDirector withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryDirector other = (GetRecentlyAddedLibraryDirector) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryDirector.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryDirector build() {
|
||||
return new GetRecentlyAddedLibraryDirector(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryFilter {
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
@JsonProperty("filterType")
|
||||
private String filterType;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryFilter(
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("filterType") String filterType,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.filter = filter;
|
||||
this.filterType = filterType;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filterType() {
|
||||
return filterType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter withFilterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryFilter other = (GetRecentlyAddedLibraryFilter) o;
|
||||
return
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.filterType, other.filterType) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryFilter.class,
|
||||
"filter", filter,
|
||||
"filterType", filterType,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String filter;
|
||||
|
||||
private String filterType;
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryFilter build() {
|
||||
return new GetRecentlyAddedLibraryFilter(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
title,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryGenre {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryGenre(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryGenre() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryGenre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryGenre withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryGenre other = (GetRecentlyAddedLibraryGenre) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryGenre.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryGenre build() {
|
||||
return new GetRecentlyAddedLibraryGenre(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,744 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryMedia {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("bitrate")
|
||||
private Optional<Double> bitrate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("width")
|
||||
private Optional<Double> width;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("height")
|
||||
private Optional<Double> height;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("aspectRatio")
|
||||
private Optional<Double> aspectRatio;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioChannels")
|
||||
private Optional<Double> audioChannels;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioCodec")
|
||||
private Optional<String> audioCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoCodec")
|
||||
private Optional<String> videoCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoResolution")
|
||||
private Optional<Double> videoResolution;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoFrameRate")
|
||||
private Optional<String> videoFrameRate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<Double> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryMedia(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("bitrate") Optional<Double> bitrate,
|
||||
@JsonProperty("width") Optional<Double> width,
|
||||
@JsonProperty("height") Optional<Double> height,
|
||||
@JsonProperty("aspectRatio") Optional<Double> aspectRatio,
|
||||
@JsonProperty("audioChannels") Optional<Double> audioChannels,
|
||||
@JsonProperty("audioCodec") Optional<String> audioCodec,
|
||||
@JsonProperty("videoCodec") Optional<String> videoCodec,
|
||||
@JsonProperty("videoResolution") Optional<Double> videoResolution,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Double> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Part") Optional<? extends List<GetRecentlyAddedLibraryPart>> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(height, "height");
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.id = id;
|
||||
this.duration = duration;
|
||||
this.bitrate = bitrate;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.aspectRatio = aspectRatio;
|
||||
this.audioChannels = audioChannels;
|
||||
this.audioCodec = audioCodec;
|
||||
this.videoCodec = videoCodec;
|
||||
this.videoResolution = videoResolution;
|
||||
this.container = container;
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.videoProfile = videoProfile;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedLibraryPart>> part() {
|
||||
return (Optional<List<GetRecentlyAddedLibraryPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withId(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withDuration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withBitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withBitrate(Optional<Double> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withWidth(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withWidth(Optional<Double> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withHeight(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withHeight(Optional<Double> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAudioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAudioChannels(Optional<Double> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoResolution(double videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoResolution(Optional<Double> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withOptimizedForStreaming(double optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withOptimizedForStreaming(Optional<Double> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withPart(List<GetRecentlyAddedLibraryPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia withPart(Optional<? extends List<GetRecentlyAddedLibraryPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryMedia other = (GetRecentlyAddedLibraryMedia) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.duration, other.duration) &&
|
||||
Objects.deepEquals(this.bitrate, other.bitrate) &&
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.height, other.height) &&
|
||||
Objects.deepEquals(this.aspectRatio, other.aspectRatio) &&
|
||||
Objects.deepEquals(this.audioChannels, other.audioChannels) &&
|
||||
Objects.deepEquals(this.audioCodec, other.audioCodec) &&
|
||||
Objects.deepEquals(this.videoCodec, other.videoCodec) &&
|
||||
Objects.deepEquals(this.videoResolution, other.videoResolution) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.part, other.part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryMedia.class,
|
||||
"id", id,
|
||||
"duration", duration,
|
||||
"bitrate", bitrate,
|
||||
"width", width,
|
||||
"height", height,
|
||||
"aspectRatio", aspectRatio,
|
||||
"audioChannels", audioChannels,
|
||||
"audioCodec", audioCodec,
|
||||
"videoCodec", videoCodec,
|
||||
"videoResolution", videoResolution,
|
||||
"container", container,
|
||||
"videoFrameRate", videoFrameRate,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"videoProfile", videoProfile,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
|
||||
private Optional<Double> bitrate = Optional.empty();
|
||||
|
||||
private Optional<Double> width = Optional.empty();
|
||||
|
||||
private Optional<Double> height = Optional.empty();
|
||||
|
||||
private Optional<Double> aspectRatio = Optional.empty();
|
||||
|
||||
private Optional<Double> audioChannels = Optional.empty();
|
||||
|
||||
private Optional<String> audioCodec = Optional.empty();
|
||||
|
||||
private Optional<String> videoCodec = Optional.empty();
|
||||
|
||||
private Optional<Double> videoResolution = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<String> videoFrameRate = Optional.empty();
|
||||
|
||||
private Optional<Double> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(Optional<Double> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(Optional<Double> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(Optional<Double> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(Optional<Double> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(double videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(Optional<Double> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(double optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<Double> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<GetRecentlyAddedLibraryPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(Optional<? extends List<GetRecentlyAddedLibraryPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMedia build() {
|
||||
return new GetRecentlyAddedLibraryMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,456 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedLibraryMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
|
||||
public class GetRecentlyAddedLibraryMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<FieldType>> fieldType;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("identifier")
|
||||
private Optional<String> identifier;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private Optional<String> mediaTagPrefix;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private Optional<Double> mediaTagVersion;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mixedParents")
|
||||
private Optional<Boolean> mixedParents;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryMetadata>> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryMediaContainer(
|
||||
@JsonProperty("Type") Optional<? extends List<GetRecentlyAddedLibraryType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<FieldType>> fieldType,
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") Optional<Double> mediaTagVersion,
|
||||
@JsonProperty("mixedParents") Optional<Boolean> mixedParents,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetRecentlyAddedLibraryMetadata>> metadata) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.type = type;
|
||||
this.fieldType = fieldType;
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.identifier = identifier;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.mixedParents = mixedParents;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedLibraryType>> type() {
|
||||
return (Optional<List<GetRecentlyAddedLibraryType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<FieldType>> fieldType() {
|
||||
return (Optional<List<FieldType>>) fieldType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> mixedParents() {
|
||||
return mixedParents;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedLibraryMetadata>> metadata() {
|
||||
return (Optional<List<GetRecentlyAddedLibraryMetadata>>) metadata;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withType(List<GetRecentlyAddedLibraryType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withType(Optional<? extends List<GetRecentlyAddedLibraryType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withFieldType(List<FieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withFieldType(Optional<? extends List<FieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withSize(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withIdentifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMetadata(List<GetRecentlyAddedLibraryMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer withMetadata(Optional<? extends List<GetRecentlyAddedLibraryMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryMediaContainer other = (GetRecentlyAddedLibraryMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.fieldType, other.fieldType) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.mixedParents, other.mixedParents) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
fieldType,
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryMediaContainer.class,
|
||||
"type", type,
|
||||
"fieldType", fieldType,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"identifier", identifier,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"mixedParents", mixedParents,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<FieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
|
||||
private Optional<String> mediaTagPrefix = Optional.empty();
|
||||
|
||||
private Optional<Double> mediaTagVersion = Optional.empty();
|
||||
|
||||
private Optional<Boolean> mixedParents = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryMetadata>> metadata = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetRecentlyAddedLibraryType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetRecentlyAddedLibraryType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<FieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<FieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(List<GetRecentlyAddedLibraryMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(Optional<? extends List<GetRecentlyAddedLibraryMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryMediaContainer build() {
|
||||
return new GetRecentlyAddedLibraryMediaContainer(
|
||||
type,
|
||||
fieldType,
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
metadata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,489 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("file")
|
||||
private Optional<String> file;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<Double> hasThumbnail;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<Boolean> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryPart(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("file") Optional<String> file,
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("hasThumbnail") Optional<Double> hasThumbnail,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Boolean> optimizedForStreaming,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.container = container;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.videoProfile = videoProfile;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> hasThumbnail() {
|
||||
return hasThumbnail;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withId(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withDuration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withFile(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withSize(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withHasThumbnail(double hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withHasThumbnail(Optional<Double> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withOptimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withOptimizedForStreaming(Optional<Boolean> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryPart other = (GetRecentlyAddedLibraryPart) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.duration, other.duration) &&
|
||||
Objects.deepEquals(this.file, other.file) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
has64bitOffsets,
|
||||
hasThumbnail,
|
||||
optimizedForStreaming,
|
||||
videoProfile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryPart.class,
|
||||
"id", id,
|
||||
"key", key,
|
||||
"duration", duration,
|
||||
"file", file,
|
||||
"size", size,
|
||||
"container", container,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"hasThumbnail", hasThumbnail,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"videoProfile", videoProfile);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
|
||||
private Optional<String> file = Optional.empty();
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<Double> hasThumbnail = Optional.empty();
|
||||
|
||||
private Optional<Boolean> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder has64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(double hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<Double> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<Boolean> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryPart build() {
|
||||
return new GetRecentlyAddedLibraryPart(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
has64bitOffsets,
|
||||
hasThumbnail,
|
||||
optimizedForStreaming,
|
||||
videoProfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,525 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryRequest {
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=contentDirectoryID")
|
||||
private Optional<Long> contentDirectoryID;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=pinnedContentDirectoryID")
|
||||
private Optional<? extends List<Long>> pinnedContentDirectoryID;
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionID")
|
||||
private Optional<Long> sectionID;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private QueryParamType type;
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")
|
||||
private Optional<? extends QueryParamIncludeMeta> includeMeta;
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Start")
|
||||
private Optional<Integer> xPlexContainerStart;
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size")
|
||||
private Optional<Integer> xPlexContainerSize;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryRequest(
|
||||
Optional<Long> contentDirectoryID,
|
||||
Optional<? extends List<Long>> pinnedContentDirectoryID,
|
||||
Optional<Long> sectionID,
|
||||
QueryParamType type,
|
||||
Optional<? extends QueryParamIncludeMeta> includeMeta,
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
this.sectionID = sectionID;
|
||||
this.type = type;
|
||||
this.includeMeta = includeMeta;
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest(
|
||||
QueryParamType type) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), type, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Long> contentDirectoryID() {
|
||||
return contentDirectoryID;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Long>> pinnedContentDirectoryID() {
|
||||
return (Optional<List<Long>>) pinnedContentDirectoryID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> sectionID() {
|
||||
return sectionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public QueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<QueryParamIncludeMeta> includeMeta() {
|
||||
return (Optional<QueryParamIncludeMeta>) includeMeta;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> xPlexContainerStart() {
|
||||
return xPlexContainerStart;
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> xPlexContainerSize() {
|
||||
return xPlexContainerSize;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest withContentDirectoryID(long contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = Optional.ofNullable(contentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest withContentDirectoryID(Optional<Long> contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest withPinnedContentDirectoryID(List<Long> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = Optional.ofNullable(pinnedContentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest withPinnedContentDirectoryID(Optional<? extends List<Long>> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withSectionID(long sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = Optional.ofNullable(sectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withSectionID(Optional<Long> sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = sectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withType(QueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withIncludeMeta(QueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withIncludeMeta(Optional<? extends QueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withXPlexContainerStart(int xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withXPlexContainerStart(Optional<Integer> xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withXPlexContainerSize(int xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedLibraryRequest withXPlexContainerSize(Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryRequest other = (GetRecentlyAddedLibraryRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.contentDirectoryID, other.contentDirectoryID) &&
|
||||
Objects.deepEquals(this.pinnedContentDirectoryID, other.pinnedContentDirectoryID) &&
|
||||
Objects.deepEquals(this.sectionID, other.sectionID) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.includeMeta, other.includeMeta) &&
|
||||
Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) &&
|
||||
Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
contentDirectoryID,
|
||||
pinnedContentDirectoryID,
|
||||
sectionID,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryRequest.class,
|
||||
"contentDirectoryID", contentDirectoryID,
|
||||
"pinnedContentDirectoryID", pinnedContentDirectoryID,
|
||||
"sectionID", sectionID,
|
||||
"type", type,
|
||||
"includeMeta", includeMeta,
|
||||
"xPlexContainerStart", xPlexContainerStart,
|
||||
"xPlexContainerSize", xPlexContainerSize);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Long> contentDirectoryID = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Long>> pinnedContentDirectoryID = Optional.empty();
|
||||
|
||||
private Optional<Long> sectionID = Optional.empty();
|
||||
|
||||
private QueryParamType type;
|
||||
|
||||
private Optional<? extends QueryParamIncludeMeta> includeMeta;
|
||||
|
||||
private Optional<Integer> xPlexContainerStart;
|
||||
|
||||
private Optional<Integer> xPlexContainerSize;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder contentDirectoryID(long contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = Optional.ofNullable(contentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder contentDirectoryID(Optional<Long> contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder pinnedContentDirectoryID(List<Long> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = Optional.ofNullable(pinnedContentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder pinnedContentDirectoryID(Optional<? extends List<Long>> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public Builder sectionID(long sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = Optional.ofNullable(sectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public Builder sectionID(Optional<Long> sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = sectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(QueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(QueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(Optional<? extends QueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
public Builder xPlexContainerStart(int xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*
|
||||
*/
|
||||
public Builder xPlexContainerStart(Optional<Integer> xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
public Builder xPlexContainerSize(int xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of items to return. If not specified, all items will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*
|
||||
*/
|
||||
public Builder xPlexContainerSize(Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequest build() {
|
||||
if (includeMeta == null) {
|
||||
includeMeta = _SINGLETON_VALUE_IncludeMeta.value();
|
||||
}
|
||||
if (xPlexContainerStart == null) {
|
||||
xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value();
|
||||
}
|
||||
if (xPlexContainerSize == null) {
|
||||
xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value();
|
||||
} return new GetRecentlyAddedLibraryRequest(
|
||||
contentDirectoryID,
|
||||
pinnedContentDirectoryID,
|
||||
sectionID,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends QueryParamIncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
new LazySingletonValue<>(
|
||||
"includeMeta",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends QueryParamIncludeMeta>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerStart =
|
||||
new LazySingletonValue<>(
|
||||
"X-Plex-Container-Start",
|
||||
"0",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerSize =
|
||||
new LazySingletonValue<>(
|
||||
"X-Plex-Container-Size",
|
||||
"50",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
|
||||
public class GetRecentlyAddedLibraryRequestBuilder {
|
||||
|
||||
private GetRecentlyAddedLibraryRequest request;
|
||||
private final SDKMethodInterfaces.MethodCallGetRecentlyAddedLibrary sdk;
|
||||
|
||||
public GetRecentlyAddedLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAddedLibrary sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRequestBuilder request(GetRecentlyAddedLibraryRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponse call() throws Exception {
|
||||
|
||||
return sdk.getRecentlyAddedLibrary(
|
||||
request);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import dev.plexapi.sdk.utils.Response;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryResponse implements Response {
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
private String contentType;
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
private int statusCode;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
private HttpResponse<InputStream> rawResponse;
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
private Optional<? extends GetRecentlyAddedLibraryResponseBody> object;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse,
|
||||
Optional<? extends GetRecentlyAddedLibraryResponseBody> object) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.contentType = contentType;
|
||||
this.statusCode = statusCode;
|
||||
this.rawResponse = rawResponse;
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse) {
|
||||
this(contentType, statusCode, rawResponse, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String contentType() {
|
||||
return contentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int statusCode() {
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@JsonIgnore
|
||||
public HttpResponse<InputStream> rawResponse() {
|
||||
return rawResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetRecentlyAddedLibraryResponseBody> object() {
|
||||
return (Optional<GetRecentlyAddedLibraryResponseBody>) object;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public GetRecentlyAddedLibraryResponse withContentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public GetRecentlyAddedLibraryResponse withStatusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetRecentlyAddedLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
public GetRecentlyAddedLibraryResponse withObject(GetRecentlyAddedLibraryResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
public GetRecentlyAddedLibraryResponse withObject(Optional<? extends GetRecentlyAddedLibraryResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryResponse other = (GetRecentlyAddedLibraryResponse) o;
|
||||
return
|
||||
Objects.deepEquals(this.contentType, other.contentType) &&
|
||||
Objects.deepEquals(this.statusCode, other.statusCode) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse) &&
|
||||
Objects.deepEquals(this.object, other.object);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
object);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryResponse.class,
|
||||
"contentType", contentType,
|
||||
"statusCode", statusCode,
|
||||
"rawResponse", rawResponse,
|
||||
"object", object);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String contentType;
|
||||
|
||||
private Integer statusCode;
|
||||
|
||||
private HttpResponse<InputStream> rawResponse;
|
||||
|
||||
private Optional<? extends GetRecentlyAddedLibraryResponseBody> object = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public Builder contentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public Builder statusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
public Builder object(GetRecentlyAddedLibraryResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
*/
|
||||
public Builder object(Optional<? extends GetRecentlyAddedLibraryResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponse build() {
|
||||
return new GetRecentlyAddedLibraryResponse(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedLibraryResponseBody - The recently added content
|
||||
*/
|
||||
|
||||
public class GetRecentlyAddedLibraryResponseBody {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("MediaContainer")
|
||||
private Optional<? extends GetRecentlyAddedLibraryMediaContainer> mediaContainer;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetRecentlyAddedLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponseBody() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetRecentlyAddedLibraryMediaContainer> mediaContainer() {
|
||||
return (Optional<GetRecentlyAddedLibraryMediaContainer>) mediaContainer;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponseBody withMediaContainer(GetRecentlyAddedLibraryMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponseBody withMediaContainer(Optional<? extends GetRecentlyAddedLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryResponseBody other = (GetRecentlyAddedLibraryResponseBody) o;
|
||||
return
|
||||
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryResponseBody.class,
|
||||
"mediaContainer", mediaContainer);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends GetRecentlyAddedLibraryMediaContainer> mediaContainer = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder mediaContainer(GetRecentlyAddedLibraryMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaContainer(Optional<? extends GetRecentlyAddedLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryResponseBody build() {
|
||||
return new GetRecentlyAddedLibraryResponseBody(
|
||||
mediaContainer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryRole {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryRole(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRole() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRole withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryRole other = (GetRecentlyAddedLibraryRole) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryRole.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryRole build() {
|
||||
return new GetRecentlyAddedLibraryRole(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,319 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryType {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<Sort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<Field>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetRecentlyAddedLibraryFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<Sort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<Field>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedLibraryFilter>> filter() {
|
||||
return (Optional<List<GetRecentlyAddedLibraryFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Sort>> sort() {
|
||||
return (Optional<List<Sort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Field>> field() {
|
||||
return (Optional<List<Field>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withFilter(List<GetRecentlyAddedLibraryFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withFilter(Optional<? extends List<GetRecentlyAddedLibraryFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withSort(List<Sort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withSort(Optional<? extends List<Sort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withField(List<Field> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType withField(Optional<? extends List<Field>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryType other = (GetRecentlyAddedLibraryType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedLibraryFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Sort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Field>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetRecentlyAddedLibraryFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetRecentlyAddedLibraryFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<Sort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<Sort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<Field> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<Field>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryType build() {
|
||||
return new GetRecentlyAddedLibraryType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedLibraryWriter {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedLibraryWriter(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryWriter() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryWriter withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryWriter withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedLibraryWriter other = (GetRecentlyAddedLibraryWriter) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedLibraryWriter.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedLibraryWriter build() {
|
||||
return new GetRecentlyAddedLibraryWriter(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -23,29 +24,32 @@ import java.util.Optional;
|
||||
|
||||
public class GetRecentlyAddedMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
private double size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
@JsonProperty("offset")
|
||||
private Optional<Integer> offset;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("totalSize")
|
||||
private Optional<Integer> totalSize;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("identifier")
|
||||
private Optional<String> identifier;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private Optional<String> mediaTagPrefix;
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private Optional<Double> mediaTagVersion;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mixedParents")
|
||||
private Optional<Boolean> mixedParents;
|
||||
@JsonProperty("Meta")
|
||||
private Optional<? extends Meta> meta;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
@@ -53,41 +57,47 @@ public class GetRecentlyAddedMediaContainer {
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedMediaContainer(
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("size") double size,
|
||||
@JsonProperty("offset") Optional<Integer> offset,
|
||||
@JsonProperty("totalSize") Optional<Integer> totalSize,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") Optional<Double> mediaTagVersion,
|
||||
@JsonProperty("mixedParents") Optional<Boolean> mixedParents,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("Meta") Optional<? extends Meta> meta,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetRecentlyAddedMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.offset = offset;
|
||||
this.totalSize = totalSize;
|
||||
this.identifier = identifier;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.mixedParents = mixedParents;
|
||||
this.allowSync = allowSync;
|
||||
this.meta = meta;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetRecentlyAddedMediaContainer(
|
||||
double size) {
|
||||
this(size, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
public double size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
return allowSync;
|
||||
public Optional<Integer> offset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> totalSize() {
|
||||
return totalSize;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -96,18 +106,18 @@ public class GetRecentlyAddedMediaContainer {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
public Optional<Boolean> allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<Double> mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> mixedParents() {
|
||||
return mixedParents;
|
||||
public Optional<Meta> meta() {
|
||||
return (Optional<Meta>) meta;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -121,26 +131,32 @@ public class GetRecentlyAddedMediaContainer {
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withSize(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
public GetRecentlyAddedMediaContainer withOffset(int offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = Optional.ofNullable(offset);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
public GetRecentlyAddedMediaContainer withOffset(Optional<Integer> offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withTotalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = Optional.ofNullable(totalSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withTotalSize(Optional<Integer> totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -156,39 +172,35 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withMeta(Meta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withMixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withMeta(Optional<? extends Meta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -215,11 +227,11 @@ public class GetRecentlyAddedMediaContainer {
|
||||
GetRecentlyAddedMediaContainer other = (GetRecentlyAddedMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.offset, other.offset) &&
|
||||
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.mixedParents, other.mixedParents) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.meta, other.meta) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
|
||||
@@ -227,11 +239,11 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
allowSync,
|
||||
offset,
|
||||
totalSize,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
allowSync,
|
||||
meta,
|
||||
metadata);
|
||||
}
|
||||
|
||||
@@ -239,27 +251,27 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedMediaContainer.class,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"offset", offset,
|
||||
"totalSize", totalSize,
|
||||
"identifier", identifier,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"mixedParents", mixedParents,
|
||||
"allowSync", allowSync,
|
||||
"meta", meta,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
private Double size;
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
private Optional<Integer> offset = Optional.empty();
|
||||
|
||||
private Optional<Integer> totalSize = Optional.empty();
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
|
||||
private Optional<String> mediaTagPrefix = Optional.empty();
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
|
||||
private Optional<Double> mediaTagVersion = Optional.empty();
|
||||
|
||||
private Optional<Boolean> mixedParents = Optional.empty();
|
||||
private Optional<? extends Meta> meta = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedMetadata>> metadata = Optional.empty();
|
||||
|
||||
@@ -268,26 +280,32 @@ public class GetRecentlyAddedMediaContainer {
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
public Builder offset(int offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = Optional.ofNullable(offset);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
public Builder offset(Optional<Integer> offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder totalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = Optional.ofNullable(totalSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder totalSize(Optional<Integer> totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -303,39 +321,35 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder meta(Meta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder meta(Optional<? extends Meta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -354,11 +368,11 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public GetRecentlyAddedMediaContainer build() {
|
||||
return new GetRecentlyAddedMediaContainer(
|
||||
size,
|
||||
allowSync,
|
||||
offset,
|
||||
totalSize,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
allowSync,
|
||||
meta,
|
||||
metadata);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetRecentlyAddedOperator {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedOperator(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedOperator withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedOperator withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedOperator other = (GetRecentlyAddedOperator) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedOperator.class,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedOperator build() {
|
||||
return new GetRecentlyAddedOperator(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,14 +12,53 @@ import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedRequest {
|
||||
|
||||
/**
|
||||
* The content directory ID.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=contentDirectoryID")
|
||||
private long contentDirectoryID;
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=pinnedContentDirectoryID")
|
||||
private Optional<String> pinnedContentDirectoryID;
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionID")
|
||||
private Optional<Long> sectionID;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private Type type;
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")
|
||||
private Optional<? extends IncludeMeta> includeMeta;
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
@@ -40,16 +79,81 @@ public class GetRecentlyAddedRequest {
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedRequest(
|
||||
long contentDirectoryID,
|
||||
Optional<String> pinnedContentDirectoryID,
|
||||
Optional<Long> sectionID,
|
||||
Type type,
|
||||
Optional<? extends IncludeMeta> includeMeta,
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
this.sectionID = sectionID;
|
||||
this.type = type;
|
||||
this.includeMeta = includeMeta;
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
public GetRecentlyAddedRequest(
|
||||
long contentDirectoryID,
|
||||
Type type) {
|
||||
this(contentDirectoryID, Optional.empty(), Optional.empty(), type, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The content directory ID.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long contentDirectoryID() {
|
||||
return contentDirectoryID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> pinnedContentDirectoryID() {
|
||||
return pinnedContentDirectoryID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> sectionID() {
|
||||
return sectionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Type type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<IncludeMeta> includeMeta() {
|
||||
return (Optional<IncludeMeta>) includeMeta;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,6 +182,86 @@ public class GetRecentlyAddedRequest {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The content directory ID.
|
||||
*/
|
||||
public GetRecentlyAddedRequest withContentDirectoryID(long contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
public GetRecentlyAddedRequest withPinnedContentDirectoryID(String pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = Optional.ofNullable(pinnedContentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
public GetRecentlyAddedRequest withPinnedContentDirectoryID(Optional<String> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public GetRecentlyAddedRequest withSectionID(long sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = Optional.ofNullable(sectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public GetRecentlyAddedRequest withSectionID(Optional<Long> sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = sectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedRequest withType(Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedRequest withIncludeMeta(IncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedRequest withIncludeMeta(Optional<? extends IncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
@@ -136,6 +320,11 @@ public class GetRecentlyAddedRequest {
|
||||
}
|
||||
GetRecentlyAddedRequest other = (GetRecentlyAddedRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.contentDirectoryID, other.contentDirectoryID) &&
|
||||
Objects.deepEquals(this.pinnedContentDirectoryID, other.pinnedContentDirectoryID) &&
|
||||
Objects.deepEquals(this.sectionID, other.sectionID) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.includeMeta, other.includeMeta) &&
|
||||
Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) &&
|
||||
Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize);
|
||||
}
|
||||
@@ -143,6 +332,11 @@ public class GetRecentlyAddedRequest {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
contentDirectoryID,
|
||||
pinnedContentDirectoryID,
|
||||
sectionID,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
@@ -150,12 +344,27 @@ public class GetRecentlyAddedRequest {
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedRequest.class,
|
||||
"contentDirectoryID", contentDirectoryID,
|
||||
"pinnedContentDirectoryID", pinnedContentDirectoryID,
|
||||
"sectionID", sectionID,
|
||||
"type", type,
|
||||
"includeMeta", includeMeta,
|
||||
"xPlexContainerStart", xPlexContainerStart,
|
||||
"xPlexContainerSize", xPlexContainerSize);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long contentDirectoryID;
|
||||
|
||||
private Optional<String> pinnedContentDirectoryID = Optional.empty();
|
||||
|
||||
private Optional<Long> sectionID = Optional.empty();
|
||||
|
||||
private Type type;
|
||||
|
||||
private Optional<? extends IncludeMeta> includeMeta;
|
||||
|
||||
private Optional<Integer> xPlexContainerStart;
|
||||
|
||||
private Optional<Integer> xPlexContainerSize;
|
||||
@@ -164,6 +373,86 @@ public class GetRecentlyAddedRequest {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The content directory ID.
|
||||
*/
|
||||
public Builder contentDirectoryID(long contentDirectoryID) {
|
||||
Utils.checkNotNull(contentDirectoryID, "contentDirectoryID");
|
||||
this.contentDirectoryID = contentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
public Builder pinnedContentDirectoryID(String pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = Optional.ofNullable(pinnedContentDirectoryID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated list of pinned content directory IDs.
|
||||
*/
|
||||
public Builder pinnedContentDirectoryID(Optional<String> pinnedContentDirectoryID) {
|
||||
Utils.checkNotNull(pinnedContentDirectoryID, "pinnedContentDirectoryID");
|
||||
this.pinnedContentDirectoryID = pinnedContentDirectoryID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public Builder sectionID(long sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = Optional.ofNullable(sectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The library section ID for filtering content.
|
||||
*/
|
||||
public Builder sectionID(Optional<Long> sectionID) {
|
||||
Utils.checkNotNull(sectionID, "sectionID");
|
||||
this.sectionID = sectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(IncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public Builder includeMeta(Optional<? extends IncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
@@ -213,16 +502,30 @@ public class GetRecentlyAddedRequest {
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequest build() {
|
||||
if (includeMeta == null) {
|
||||
includeMeta = _SINGLETON_VALUE_IncludeMeta.value();
|
||||
}
|
||||
if (xPlexContainerStart == null) {
|
||||
xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value();
|
||||
}
|
||||
if (xPlexContainerSize == null) {
|
||||
xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value();
|
||||
} return new GetRecentlyAddedRequest(
|
||||
contentDirectoryID,
|
||||
pinnedContentDirectoryID,
|
||||
sectionID,
|
||||
type,
|
||||
includeMeta,
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends IncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
new LazySingletonValue<>(
|
||||
"includeMeta",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeMeta>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerStart =
|
||||
new LazySingletonValue<>(
|
||||
"X-Plex-Container-Start",
|
||||
|
||||
@@ -4,73 +4,26 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetRecentlyAddedRequestBuilder {
|
||||
|
||||
private Optional<Integer> xPlexContainerStart = Utils.readDefaultOrConstValue(
|
||||
"xPlexContainerStart",
|
||||
"0",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
private Optional<Integer> xPlexContainerSize = Utils.readDefaultOrConstValue(
|
||||
"xPlexContainerSize",
|
||||
"50",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
private GetRecentlyAddedRequest request;
|
||||
private final SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk;
|
||||
|
||||
public GetRecentlyAddedRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequestBuilder xPlexContainerStart(int xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = Optional.of(xPlexContainerStart);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequestBuilder xPlexContainerStart(Optional<Integer> xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequestBuilder xPlexContainerSize(int xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = Optional.of(xPlexContainerSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedRequestBuilder xPlexContainerSize(Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
public GetRecentlyAddedRequestBuilder request(GetRecentlyAddedRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedResponse call() throws Exception {
|
||||
if (xPlexContainerStart == null) {
|
||||
xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value();
|
||||
}
|
||||
if (xPlexContainerSize == null) {
|
||||
xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value();
|
||||
}
|
||||
|
||||
return sdk.getRecentlyAdded(
|
||||
xPlexContainerStart,
|
||||
xPlexContainerSize);
|
||||
request);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerStart =
|
||||
new LazySingletonValue<>(
|
||||
"xPlexContainerStart",
|
||||
"0",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<Integer>> _SINGLETON_VALUE_XPlexContainerSize =
|
||||
new LazySingletonValue<>(
|
||||
"xPlexContainerSize",
|
||||
"50",
|
||||
new TypeReference<Optional<Integer>>() {});
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
private HttpResponse<InputStream> rawResponse;
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
private Optional<? extends GetRecentlyAddedResponseBody> object;
|
||||
|
||||
@@ -89,7 +89,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
@@ -129,7 +129,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
public GetRecentlyAddedResponse withObject(GetRecentlyAddedResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
@@ -138,7 +138,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
public GetRecentlyAddedResponse withObject(Optional<? extends GetRecentlyAddedResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
@@ -222,7 +222,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
public Builder object(GetRecentlyAddedResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
@@ -231,7 +231,7 @@ public class GetRecentlyAddedResponse implements Response {
|
||||
}
|
||||
|
||||
/**
|
||||
* The recently added content
|
||||
* A successful response with recently added content.
|
||||
*/
|
||||
public Builder object(Optional<? extends GetRecentlyAddedResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedResponseBody - The recently added content
|
||||
* GetRecentlyAddedResponseBody - A successful response with recently added content.
|
||||
*/
|
||||
|
||||
public class GetRecentlyAddedResponseBody {
|
||||
|
||||
@@ -0,0 +1,450 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedSort {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("default")
|
||||
private Optional<String> default_;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("active")
|
||||
private Optional<Boolean> active;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends GetRecentlyAddedActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<? extends GetRecentlyAddedDefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
private Optional<String> descKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("firstCharacterKey")
|
||||
private Optional<String> firstCharacterKey;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedSort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends GetRecentlyAddedActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends GetRecentlyAddedDefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.default_ = default_;
|
||||
this.active = active;
|
||||
this.activeDirection = activeDirection;
|
||||
this.defaultDirection = defaultDirection;
|
||||
this.descKey = descKey;
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort(
|
||||
String key,
|
||||
String title) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), key, title);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> default_() {
|
||||
return default_;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetRecentlyAddedActiveDirection> activeDirection() {
|
||||
return (Optional<GetRecentlyAddedActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetRecentlyAddedDefaultDirection> defaultDirection() {
|
||||
return (Optional<GetRecentlyAddedDefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> descKey() {
|
||||
return descKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> firstCharacterKey() {
|
||||
return firstCharacterKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withDefault(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withDefault(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withActive(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedSort withActiveDirection(GetRecentlyAddedActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedSort withActiveDirection(Optional<? extends GetRecentlyAddedActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedSort withDefaultDirection(GetRecentlyAddedDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedSort withDefaultDirection(Optional<? extends GetRecentlyAddedDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withDescKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withDescKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withFirstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withFirstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedSort other = (GetRecentlyAddedSort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.activeDirection, other.activeDirection) &&
|
||||
Objects.deepEquals(this.defaultDirection, other.defaultDirection) &&
|
||||
Objects.deepEquals(this.descKey, other.descKey) &&
|
||||
Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedSort.class,
|
||||
"default_", default_,
|
||||
"active", active,
|
||||
"activeDirection", activeDirection,
|
||||
"defaultDirection", defaultDirection,
|
||||
"descKey", descKey,
|
||||
"firstCharacterKey", firstCharacterKey,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> default_ = Optional.empty();
|
||||
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends GetRecentlyAddedActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends GetRecentlyAddedDefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
private Optional<String> firstCharacterKey = Optional.empty();
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder default_(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder default_(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(GetRecentlyAddedActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends GetRecentlyAddedActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(GetRecentlyAddedDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends GetRecentlyAddedDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder descKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder firstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedSort build() {
|
||||
if (activeDirection == null) {
|
||||
activeDirection = _SINGLETON_VALUE_ActiveDirection.value();
|
||||
}
|
||||
if (defaultDirection == null) {
|
||||
defaultDirection = _SINGLETON_VALUE_DefaultDirection.value();
|
||||
} return new GetRecentlyAddedSort(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetRecentlyAddedActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetRecentlyAddedActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetRecentlyAddedDefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetRecentlyAddedDefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,319 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetRecentlyAddedType {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetRecentlyAddedFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetRecentlyAddedSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetRecentlyAddedField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetRecentlyAddedFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetRecentlyAddedSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetRecentlyAddedField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedFilter>> filter() {
|
||||
return (Optional<List<GetRecentlyAddedFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedSort>> sort() {
|
||||
return (Optional<List<GetRecentlyAddedSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedField>> field() {
|
||||
return (Optional<List<GetRecentlyAddedField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withFilter(List<GetRecentlyAddedFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withFilter(Optional<? extends List<GetRecentlyAddedFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withSort(List<GetRecentlyAddedSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withSort(Optional<? extends List<GetRecentlyAddedSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withField(List<GetRecentlyAddedField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType withField(Optional<? extends List<GetRecentlyAddedField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetRecentlyAddedType other = (GetRecentlyAddedType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetRecentlyAddedField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetRecentlyAddedFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetRecentlyAddedFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetRecentlyAddedSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetRecentlyAddedSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetRecentlyAddedField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetRecentlyAddedField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedType build() {
|
||||
return new GetRecentlyAddedType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* GetSearchLibraryQueryParamType - The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public enum GetSearchLibraryQueryParamType {
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
|
||||
private GetSearchLibraryQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -35,12 +35,12 @@ public class GetSearchLibraryRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private QueryParamType type;
|
||||
private GetSearchLibraryQueryParamType type;
|
||||
|
||||
@JsonCreator
|
||||
public GetSearchLibraryRequest(
|
||||
int sectionKey,
|
||||
QueryParamType type) {
|
||||
GetSearchLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.sectionKey = sectionKey;
|
||||
@@ -67,7 +67,7 @@ public class GetSearchLibraryRequest {
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public QueryParamType type() {
|
||||
public GetSearchLibraryQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class GetSearchLibraryRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetSearchLibraryRequest withType(QueryParamType type) {
|
||||
public GetSearchLibraryRequest withType(GetSearchLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -133,7 +133,7 @@ public class GetSearchLibraryRequest {
|
||||
|
||||
private Integer sectionKey;
|
||||
|
||||
private QueryParamType type;
|
||||
private GetSearchLibraryQueryParamType type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -159,7 +159,7 @@ public class GetSearchLibraryRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(QueryParamType type) {
|
||||
public Builder type(GetSearchLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.lang.Integer;
|
||||
public class GetSearchLibraryRequestBuilder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private QueryParamType type;
|
||||
private GetSearchLibraryQueryParamType type;
|
||||
private final SDKMethodInterfaces.MethodCallGetSearchLibrary sdk;
|
||||
|
||||
public GetSearchLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchLibrary sdk) {
|
||||
@@ -23,7 +23,7 @@ public class GetSearchLibraryRequestBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetSearchLibraryRequestBuilder type(QueryParamType type) {
|
||||
public GetSearchLibraryRequestBuilder type(GetSearchLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import dev.plexapi.sdk.utils.OneOfDeserializer;
|
||||
import dev.plexapi.sdk.utils.TypedObject;
|
||||
import dev.plexapi.sdk.utils.Utils.JsonShape;
|
||||
import dev.plexapi.sdk.utils.Utils.TypeReferenceWithShape;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
@JsonDeserialize(using = LibrarySectionID._Deserializer.class)
|
||||
public class LibrarySectionID {
|
||||
|
||||
@JsonValue
|
||||
private TypedObject value;
|
||||
|
||||
private LibrarySectionID(TypedObject value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static LibrarySectionID of(long value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<java.lang.Long>(){}));
|
||||
}
|
||||
|
||||
public static LibrarySectionID of(String value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<String>(){}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an instance of one of these types:
|
||||
* <ul>
|
||||
* <li>{@code long}</li>
|
||||
* <li>{@code java.lang.String}</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>Use {@code instanceof} to determine what type is returned. For example:
|
||||
*
|
||||
* <pre>
|
||||
* if (obj.value() instanceof String) {
|
||||
* String answer = (String) obj.value();
|
||||
* System.out.println("answer=" + answer);
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @return value of oneOf type
|
||||
**/
|
||||
public java.lang.Object value() {
|
||||
return value.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
LibrarySectionID other = (LibrarySectionID) o;
|
||||
return Objects.deepEquals(this.value.value(), other.value.value());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value.value());
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends OneOfDeserializer<LibrarySectionID> {
|
||||
|
||||
public _Deserializer() {
|
||||
super(LibrarySectionID.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<String>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<Long>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(LibrarySectionID.class,
|
||||
"value", value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -10,9 +10,12 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -23,103 +26,101 @@ import java.util.Optional;
|
||||
|
||||
public class Media {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
private int id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
private int duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("bitrate")
|
||||
private Optional<Double> bitrate;
|
||||
private int bitrate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("width")
|
||||
private Optional<Double> width;
|
||||
private int width;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("height")
|
||||
private Optional<Double> height;
|
||||
private int height;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("aspectRatio")
|
||||
private Optional<Double> aspectRatio;
|
||||
private double aspectRatio;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonProperty("audioChannels")
|
||||
private Optional<Double> audioChannels;
|
||||
private int audioChannels;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioCodec")
|
||||
private Optional<String> audioCodec;
|
||||
private String audioCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoCodec")
|
||||
private Optional<String> videoCodec;
|
||||
private String videoCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoResolution")
|
||||
private Optional<Double> videoResolution;
|
||||
private String videoResolution;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
private String container;
|
||||
|
||||
@JsonProperty("videoFrameRate")
|
||||
private String videoFrameRate;
|
||||
|
||||
@JsonProperty("videoProfile")
|
||||
private String videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoFrameRate")
|
||||
private Optional<String> videoFrameRate;
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private Optional<Boolean> hasVoiceActivity;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<Double> optimizedForStreaming;
|
||||
private Optional<? extends OptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private Optional<? extends List<Part>> part;
|
||||
private List<Part> part;
|
||||
|
||||
@JsonCreator
|
||||
public Media(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("bitrate") Optional<Double> bitrate,
|
||||
@JsonProperty("width") Optional<Double> width,
|
||||
@JsonProperty("height") Optional<Double> height,
|
||||
@JsonProperty("aspectRatio") Optional<Double> aspectRatio,
|
||||
@JsonProperty("audioChannels") Optional<Double> audioChannels,
|
||||
@JsonProperty("audioCodec") Optional<String> audioCodec,
|
||||
@JsonProperty("videoCodec") Optional<String> videoCodec,
|
||||
@JsonProperty("videoResolution") Optional<Double> videoResolution,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Double> optimizedForStreaming,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("duration") int duration,
|
||||
@JsonProperty("bitrate") int bitrate,
|
||||
@JsonProperty("width") int width,
|
||||
@JsonProperty("height") int height,
|
||||
@JsonProperty("aspectRatio") double aspectRatio,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("audioChannels") int audioChannels,
|
||||
@JsonProperty("audioCodec") String audioCodec,
|
||||
@JsonProperty("videoCodec") String videoCodec,
|
||||
@JsonProperty("videoResolution") String videoResolution,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("videoFrameRate") String videoFrameRate,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends OptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Part") Optional<? extends List<Part>> part) {
|
||||
@JsonProperty("Part") List<Part> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(height, "height");
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.id = id;
|
||||
this.duration = duration;
|
||||
@@ -127,85 +128,117 @@ public class Media {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.aspectRatio = aspectRatio;
|
||||
this.audioProfile = audioProfile;
|
||||
this.audioChannels = audioChannels;
|
||||
this.audioCodec = audioCodec;
|
||||
this.videoCodec = videoCodec;
|
||||
this.videoResolution = videoResolution;
|
||||
this.container = container;
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
this.videoProfile = videoProfile;
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.videoProfile = videoProfile;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public Media() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Media(
|
||||
int id,
|
||||
int duration,
|
||||
int bitrate,
|
||||
int width,
|
||||
int height,
|
||||
double aspectRatio,
|
||||
int audioChannels,
|
||||
String audioCodec,
|
||||
String videoCodec,
|
||||
String videoResolution,
|
||||
String container,
|
||||
String videoFrameRate,
|
||||
String videoProfile,
|
||||
List<Part> part) {
|
||||
this(id, duration, bitrate, width, height, aspectRatio, Optional.empty(), audioChannels, audioCodec, videoCodec, videoResolution, container, videoFrameRate, videoProfile, Optional.empty(), Optional.empty(), Optional.empty(), part);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
public int duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> bitrate() {
|
||||
public int bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> width() {
|
||||
public int width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> height() {
|
||||
public int height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> aspectRatio() {
|
||||
public double aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> audioChannels() {
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public int audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioCodec() {
|
||||
public String audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoCodec() {
|
||||
public String videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> videoResolution() {
|
||||
public String videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoFrameRate() {
|
||||
public String videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> hasVoiceActivity() {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<OptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<OptimizedForStreaming>) optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -214,171 +247,123 @@ public class Media {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Part>> part() {
|
||||
return (Optional<List<Part>>) part;
|
||||
public List<Part> part() {
|
||||
return part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Media withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withId(Optional<Double> id) {
|
||||
public Media withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withDuration(Optional<Double> duration) {
|
||||
public Media withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withBitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withBitrate(Optional<Double> bitrate) {
|
||||
public Media withBitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withWidth(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withWidth(Optional<Double> width) {
|
||||
public Media withWidth(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withHeight(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withHeight(Optional<Double> height) {
|
||||
public Media withHeight(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAudioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
public Media withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAudioChannels(Optional<Double> audioChannels) {
|
||||
public Media withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAudioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoResolution(double videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoResolution(Optional<Double> videoResolution) {
|
||||
public Media withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withOptimizedForStreaming(double optimizedForStreaming) {
|
||||
public Media withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withOptimizedForStreaming(OptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withOptimizedForStreaming(Optional<Double> optimizedForStreaming) {
|
||||
public Media withOptimizedForStreaming(Optional<? extends OptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
@@ -396,25 +381,7 @@ public class Media {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withPart(List<Part> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media withPart(Optional<? extends List<Part>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -436,15 +403,17 @@ public class Media {
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.height, other.height) &&
|
||||
Objects.deepEquals(this.aspectRatio, other.aspectRatio) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.audioChannels, other.audioChannels) &&
|
||||
Objects.deepEquals(this.audioCodec, other.audioCodec) &&
|
||||
Objects.deepEquals(this.videoCodec, other.videoCodec) &&
|
||||
Objects.deepEquals(this.videoResolution, other.videoResolution) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.hasVoiceActivity, other.hasVoiceActivity) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.part, other.part);
|
||||
}
|
||||
|
||||
@@ -457,15 +426,17 @@ public class Media {
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioProfile,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
|
||||
@@ -478,207 +449,171 @@ public class Media {
|
||||
"width", width,
|
||||
"height", height,
|
||||
"aspectRatio", aspectRatio,
|
||||
"audioProfile", audioProfile,
|
||||
"audioChannels", audioChannels,
|
||||
"audioCodec", audioCodec,
|
||||
"videoCodec", videoCodec,
|
||||
"videoResolution", videoResolution,
|
||||
"container", container,
|
||||
"videoFrameRate", videoFrameRate,
|
||||
"videoProfile", videoProfile,
|
||||
"hasVoiceActivity", hasVoiceActivity,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"videoProfile", videoProfile,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
private Integer id;
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
private Integer duration;
|
||||
|
||||
private Optional<Double> bitrate = Optional.empty();
|
||||
private Integer bitrate;
|
||||
|
||||
private Optional<Double> width = Optional.empty();
|
||||
private Integer width;
|
||||
|
||||
private Optional<Double> height = Optional.empty();
|
||||
private Integer height;
|
||||
|
||||
private Optional<Double> aspectRatio = Optional.empty();
|
||||
private Double aspectRatio;
|
||||
|
||||
private Optional<Double> audioChannels = Optional.empty();
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<String> audioCodec = Optional.empty();
|
||||
private Integer audioChannels;
|
||||
|
||||
private Optional<String> videoCodec = Optional.empty();
|
||||
private String audioCodec;
|
||||
|
||||
private Optional<Double> videoResolution = Optional.empty();
|
||||
private String videoCodec;
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
private String videoResolution;
|
||||
|
||||
private Optional<String> videoFrameRate = Optional.empty();
|
||||
private String container;
|
||||
|
||||
private Optional<Double> optimizedForStreaming = Optional.empty();
|
||||
private String videoFrameRate;
|
||||
|
||||
private String videoProfile;
|
||||
|
||||
private Optional<Boolean> hasVoiceActivity = Optional.empty();
|
||||
|
||||
private Optional<? extends OptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Part>> part = Optional.empty();
|
||||
private List<Part> part;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
public Builder duration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(Optional<Double> bitrate) {
|
||||
public Builder bitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(Optional<Double> width) {
|
||||
public Builder width(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(Optional<Double> height) {
|
||||
public Builder height(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(Optional<Double> audioChannels) {
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(double videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(Optional<Double> videoResolution) {
|
||||
public Builder videoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(double optimizedForStreaming) {
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(OptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<Double> optimizedForStreaming) {
|
||||
public Builder optimizedForStreaming(Optional<? extends OptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
@@ -696,49 +631,41 @@ public class Media {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<Part> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(Optional<? extends List<Part>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Media build() {
|
||||
return new Media(
|
||||
if (optimizedForStreaming == null) {
|
||||
optimizedForStreaming = _SINGLETON_VALUE_OptimizedForStreaming.value();
|
||||
} return new Media(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioProfile,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
optimizedForStreaming,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends OptimizedForStreaming>> _SINGLETON_VALUE_OptimizedForStreaming =
|
||||
new LazySingletonValue<>(
|
||||
"optimizedForStreaming",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends OptimizedForStreaming>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,16 +27,16 @@ public class Meta {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetLibraryItemsLibraryType>> type;
|
||||
private Optional<? extends List<GetRecentlyAddedType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType;
|
||||
private Optional<? extends List<GetRecentlyAddedFieldType>> fieldType;
|
||||
|
||||
@JsonCreator
|
||||
public Meta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsLibraryType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
@JsonProperty("Type") Optional<? extends List<GetRecentlyAddedType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetRecentlyAddedFieldType>> fieldType) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.type = type;
|
||||
@@ -49,39 +49,39 @@ public class Meta {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsLibraryType>> type() {
|
||||
return (Optional<List<GetLibraryItemsLibraryType>>) type;
|
||||
public Optional<List<GetRecentlyAddedType>> type() {
|
||||
return (Optional<List<GetRecentlyAddedType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibraryItemsFieldType>>) fieldType;
|
||||
public Optional<List<GetRecentlyAddedFieldType>> fieldType() {
|
||||
return (Optional<List<GetRecentlyAddedFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Meta withType(List<GetLibraryItemsLibraryType> type) {
|
||||
public Meta withType(List<GetRecentlyAddedType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withType(Optional<? extends List<GetLibraryItemsLibraryType>> type) {
|
||||
public Meta withType(Optional<? extends List<GetRecentlyAddedType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withFieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
public Meta withFieldType(List<GetRecentlyAddedFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withFieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
public Meta withFieldType(Optional<? extends List<GetRecentlyAddedFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
@@ -117,33 +117,33 @@ public class Meta {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLibraryType>> type = Optional.empty();
|
||||
private Optional<? extends List<GetRecentlyAddedType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType = Optional.empty();
|
||||
private Optional<? extends List<GetRecentlyAddedFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetLibraryItemsLibraryType> type) {
|
||||
public Builder type(List<GetRecentlyAddedType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsLibraryType>> type) {
|
||||
public Builder type(Optional<? extends List<GetRecentlyAddedType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
public Builder fieldType(List<GetRecentlyAddedFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
public Builder fieldType(Optional<? extends List<GetRecentlyAddedFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Float;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class MetaDataRating {
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
@JsonProperty("image")
|
||||
private String image;
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
@JsonProperty("value")
|
||||
private float value;
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public MetaDataRating(
|
||||
@JsonProperty("image") String image,
|
||||
@JsonProperty("value") float value,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(value, "value");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.image = image;
|
||||
this.value = value;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String image() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public float value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
public MetaDataRating withImage(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
public MetaDataRating withValue(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
public MetaDataRating withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
MetaDataRating other = (MetaDataRating) o;
|
||||
return
|
||||
Objects.deepEquals(this.image, other.image) &&
|
||||
Objects.deepEquals(this.value, other.value) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
image,
|
||||
value,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(MetaDataRating.class,
|
||||
"image", image,
|
||||
"value", value,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String image;
|
||||
|
||||
private Float value;
|
||||
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* A URI or path to the rating image.
|
||||
*/
|
||||
public Builder image(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of the rating.
|
||||
*/
|
||||
public Builder value(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MetaDataRating build() {
|
||||
return new MetaDataRating(
|
||||
image,
|
||||
value,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,47 +7,38 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class Operator {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public Operator(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title) {
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Operator() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@@ -56,24 +47,12 @@ public class Operator {
|
||||
}
|
||||
|
||||
public Operator withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Operator withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Operator withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Operator withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
@@ -109,33 +88,21 @@ public class Operator {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
private String key;
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum OptimizedForStreaming {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private OptimizedForStreaming(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -10,218 +10,249 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class Part {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
private int id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
private int duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("file")
|
||||
private Optional<String> file;
|
||||
private String file;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
private long size;
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
@JsonProperty("container")
|
||||
private String container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
private Optional<Boolean> has64bitOffsets;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<Double> hasThumbnail;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<Boolean> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
private String videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("indexes")
|
||||
private Optional<String> indexes;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<Stream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public Part(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("file") Optional<String> file,
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("duration") int duration,
|
||||
@JsonProperty("file") String file,
|
||||
@JsonProperty("size") long size,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("hasThumbnail") Optional<Double> hasThumbnail,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Boolean> optimizedForStreaming,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile) {
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("indexes") Optional<String> indexes,
|
||||
@JsonProperty("hasThumbnail") Optional<? extends HasThumbnail> hasThumbnail,
|
||||
@JsonProperty("Stream") Optional<? extends List<Stream>> stream) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.container = container;
|
||||
this.audioProfile = audioProfile;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.videoProfile = videoProfile;
|
||||
this.indexes = indexes;
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public Part() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Part(
|
||||
int id,
|
||||
String key,
|
||||
int duration,
|
||||
String file,
|
||||
long size,
|
||||
String container,
|
||||
String videoProfile) {
|
||||
this(id, key, duration, file, size, container, Optional.empty(), Optional.empty(), Optional.empty(), videoProfile, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
public int duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> file() {
|
||||
public String file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
public long size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> hasThumbnail() {
|
||||
return hasThumbnail;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> indexes() {
|
||||
return indexes;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<HasThumbnail> hasThumbnail() {
|
||||
return (Optional<HasThumbnail>) hasThumbnail;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Stream>> stream() {
|
||||
return (Optional<List<Stream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Part withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withId(Optional<Double> id) {
|
||||
public Part withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withDuration(Optional<Double> duration) {
|
||||
public Part withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withFile(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withSize(Optional<Double> size) {
|
||||
public Part withSize(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
public Part withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
public Part withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -237,18 +268,6 @@ public class Part {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withHasThumbnail(double hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withHasThumbnail(Optional<Double> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withOptimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
@@ -263,13 +282,43 @@ public class Part {
|
||||
|
||||
public Part withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
public Part withIndexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withIndexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withHasThumbnail(HasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withHasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withStream(List<Stream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part withStream(Optional<? extends List<Stream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -289,10 +338,13 @@ public class Part {
|
||||
Objects.deepEquals(this.file, other.file) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile);
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.indexes, other.indexes) &&
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) &&
|
||||
Objects.deepEquals(this.stream, other.stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -304,10 +356,13 @@ public class Part {
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
hasThumbnail,
|
||||
optimizedForStreaming,
|
||||
videoProfile);
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail,
|
||||
stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -319,107 +374,96 @@ public class Part {
|
||||
"file", file,
|
||||
"size", size,
|
||||
"container", container,
|
||||
"audioProfile", audioProfile,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"hasThumbnail", hasThumbnail,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"videoProfile", videoProfile);
|
||||
"videoProfile", videoProfile,
|
||||
"indexes", indexes,
|
||||
"hasThumbnail", hasThumbnail,
|
||||
"stream", stream);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
private Integer id;
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
private String key;
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
private Integer duration;
|
||||
|
||||
private Optional<String> file = Optional.empty();
|
||||
private String file;
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
private Long size;
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
private String container;
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<Double> hasThumbnail = Optional.empty();
|
||||
|
||||
private Optional<Boolean> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
private String videoProfile;
|
||||
|
||||
private Optional<String> indexes = Optional.empty();
|
||||
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
|
||||
private Optional<? extends List<Stream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
public Builder duration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
public Builder size(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -435,18 +479,6 @@ public class Part {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(double hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<Double> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
@@ -461,29 +493,70 @@ public class Part {
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
public Builder indexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder indexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(HasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(List<Stream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(Optional<? extends List<Stream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Part build() {
|
||||
return new Part(
|
||||
if (hasThumbnail == null) {
|
||||
hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value();
|
||||
} return new Part(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
hasThumbnail,
|
||||
optimizedForStreaming,
|
||||
videoProfile);
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail,
|
||||
stream);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends HasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
new LazySingletonValue<>(
|
||||
"hasThumbnail",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends HasThumbnail>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,367 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class PostUsersSignInDataRequest {
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
|
||||
private Optional<String> clientName;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Device")
|
||||
private Optional<String> deviceName;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Version")
|
||||
private Optional<String> clientVersion;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Platform")
|
||||
private Optional<String> clientPlatform;
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
@SpeakeasyMetadata("request:mediaType=application/x-www-form-urlencoded")
|
||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody;
|
||||
|
||||
@JsonCreator
|
||||
public PostUsersSignInDataRequest(
|
||||
Optional<String> clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceName,
|
||||
Optional<String> clientVersion,
|
||||
Optional<String> clientPlatform,
|
||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.clientID = clientID;
|
||||
this.clientName = clientName;
|
||||
this.deviceName = deviceName;
|
||||
this.clientVersion = clientVersion;
|
||||
this.clientPlatform = clientPlatform;
|
||||
this.requestBody = requestBody;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientName() {
|
||||
return clientName;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> deviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientVersion() {
|
||||
return clientVersion;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientPlatform() {
|
||||
return clientPlatform;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<PostUsersSignInDataRequestBody> requestBody() {
|
||||
return (Optional<PostUsersSignInDataRequestBody>) requestBody;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientName(Optional<String> clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = clientName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withDeviceName(String deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = Optional.ofNullable(deviceName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withDeviceName(Optional<String> deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = deviceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientVersion(String clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientVersion(Optional<String> clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = clientVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientPlatform(String clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest withClientPlatform(Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = clientPlatform;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
public PostUsersSignInDataRequest withRequestBody(PostUsersSignInDataRequestBody requestBody) {
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.requestBody = Optional.ofNullable(requestBody);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
public PostUsersSignInDataRequest withRequestBody(Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.requestBody = requestBody;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
PostUsersSignInDataRequest other = (PostUsersSignInDataRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.clientName, other.clientName) &&
|
||||
Objects.deepEquals(this.deviceName, other.deviceName) &&
|
||||
Objects.deepEquals(this.clientVersion, other.clientVersion) &&
|
||||
Objects.deepEquals(this.clientPlatform, other.clientPlatform) &&
|
||||
Objects.deepEquals(this.requestBody, other.requestBody);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
clientPlatform,
|
||||
requestBody);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(PostUsersSignInDataRequest.class,
|
||||
"clientID", clientID,
|
||||
"clientName", clientName,
|
||||
"deviceName", deviceName,
|
||||
"clientVersion", clientVersion,
|
||||
"clientPlatform", clientPlatform,
|
||||
"requestBody", requestBody);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
private Optional<String> deviceName = Optional.empty();
|
||||
|
||||
private Optional<String> clientVersion = Optional.empty();
|
||||
|
||||
private Optional<String> clientPlatform = Optional.empty();
|
||||
|
||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the client application
|
||||
* This is used to track the client application and its usage
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientName(Optional<String> clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = clientName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deviceName(String deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = Optional.ofNullable(deviceName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deviceName(Optional<String> deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = deviceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientVersion(String clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientVersion(Optional<String> clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = clientVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientPlatform(String clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientPlatform(Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = clientPlatform;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
public Builder requestBody(PostUsersSignInDataRequestBody requestBody) {
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.requestBody = Optional.ofNullable(requestBody);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
*/
|
||||
public Builder requestBody(Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.requestBody = requestBody;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest build() {
|
||||
return new PostUsersSignInDataRequest(
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
clientPlatform,
|
||||
requestBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,21 +10,15 @@ import java.util.Optional;
|
||||
|
||||
public class PostUsersSignInDataRequestBuilder {
|
||||
|
||||
private Optional<? extends PostUsersSignInDataRequestBody> request = Optional.empty();
|
||||
private PostUsersSignInDataRequest request;
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallPostUsersSignInData sdk;
|
||||
|
||||
public PostUsersSignInDataRequestBuilder(SDKMethodInterfaces.MethodCallPostUsersSignInData sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequestBuilder request(PostUsersSignInDataRequestBody request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = Optional.of(request);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequestBuilder request(Optional<? extends PostUsersSignInDataRequestBody> request) {
|
||||
public PostUsersSignInDataRequestBuilder request(PostUsersSignInDataRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeMeta - Adds the Meta object to the response
|
||||
*
|
||||
*/
|
||||
public enum QueryParamIncludeMeta {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private QueryParamIncludeMeta(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -19,41 +20,233 @@ import java.util.Optional;
|
||||
|
||||
public class Role {
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Long> id;
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
@JsonCreator
|
||||
public Role(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("id") Optional<Long> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("role") Optional<String> role) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.thumb = thumb;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public Role() {
|
||||
this(Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Role withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Role withId(Optional<Long> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Role withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Role withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Role withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Role withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Role withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Role withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Role withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Role withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Role withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Role withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -65,44 +258,170 @@ public class Role {
|
||||
}
|
||||
Role other = (Role) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
thumb,
|
||||
tag,
|
||||
tagKey,
|
||||
role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Role.class,
|
||||
"tag", tag);
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"thumb", thumb,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private Optional<Long> id = Optional.empty();
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of the tag or actor.
|
||||
*/
|
||||
public Builder id(Optional<Long> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter used to find the actor or tag.
|
||||
*/
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The thumbnail of the actor
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the tag or actor.
|
||||
*/
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the tag.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of the actor or tag in the media.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Role build() {
|
||||
return new Role(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
thumb,
|
||||
tag,
|
||||
tagKey,
|
||||
role);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import java.lang.Double;
|
||||
import java.lang.Exception;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.String;
|
||||
import java.util.Optional;
|
||||
@@ -196,6 +195,12 @@ public class SDKMethodInterfaces {
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetRecentlyAdded {
|
||||
GetRecentlyAddedResponse getRecentlyAdded(
|
||||
GetRecentlyAddedRequest request) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetLibraryHubs {
|
||||
GetLibraryHubsResponse getLibraryHubs(
|
||||
double sectionId,
|
||||
@@ -233,10 +238,9 @@ public class SDKMethodInterfaces {
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetRecentlyAdded {
|
||||
GetRecentlyAddedResponse getRecentlyAdded(
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) throws Exception;
|
||||
public interface MethodCallGetRecentlyAddedLibrary {
|
||||
GetRecentlyAddedLibraryResponse getRecentlyAddedLibrary(
|
||||
GetRecentlyAddedLibraryRequest request) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +278,7 @@ public class SDKMethodInterfaces {
|
||||
public interface MethodCallGetSearchLibrary {
|
||||
GetSearchLibraryResponse getSearchLibrary(
|
||||
int sectionKey,
|
||||
QueryParamType type) throws Exception;
|
||||
GetSearchLibraryQueryParamType type) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
@@ -412,7 +416,7 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallPostUsersSignInData {
|
||||
PostUsersSignInDataResponse postUsersSignInData(
|
||||
Optional<? extends PostUsersSignInDataRequestBody> request,
|
||||
PostUsersSignInDataRequest request,
|
||||
Optional<String> serverURL) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,9 +10,13 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -23,9 +27,25 @@ public class Sort {
|
||||
@JsonProperty("default")
|
||||
private Optional<String> default_;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("active")
|
||||
private Optional<Boolean> active;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<String> defaultDirection;
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
@@ -35,29 +55,33 @@ public class Sort {
|
||||
@JsonProperty("firstCharacterKey")
|
||||
private Optional<String> firstCharacterKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("title")
|
||||
private Optional<String> title;
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public Sort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("defaultDirection") Optional<String> defaultDirection,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends ActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends DefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("title") Optional<String> title) {
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.default_ = default_;
|
||||
this.active = active;
|
||||
this.activeDirection = activeDirection;
|
||||
this.defaultDirection = defaultDirection;
|
||||
this.descKey = descKey;
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
@@ -65,8 +89,10 @@ public class Sort {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Sort() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Sort(
|
||||
String key,
|
||||
String title) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), key, title);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -75,8 +101,28 @@ public class Sort {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> defaultDirection() {
|
||||
return defaultDirection;
|
||||
public Optional<Boolean> active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<ActiveDirection> activeDirection() {
|
||||
return (Optional<ActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<DefaultDirection> defaultDirection() {
|
||||
return (Optional<DefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -90,12 +136,12 @@ public class Sort {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> title() {
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@@ -115,13 +161,53 @@ public class Sort {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withDefaultDirection(String defaultDirection) {
|
||||
public Sort withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withActive(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Sort withActiveDirection(ActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Sort withActiveDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Sort withDefaultDirection(DefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withDefaultDirection(Optional<String> defaultDirection) {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Sort withDefaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -152,24 +238,12 @@ public class Sort {
|
||||
}
|
||||
|
||||
public Sort withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
@@ -186,6 +260,8 @@ public class Sort {
|
||||
Sort other = (Sort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.activeDirection, other.activeDirection) &&
|
||||
Objects.deepEquals(this.defaultDirection, other.defaultDirection) &&
|
||||
Objects.deepEquals(this.descKey, other.descKey) &&
|
||||
Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) &&
|
||||
@@ -197,6 +273,8 @@ public class Sort {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
@@ -208,6 +286,8 @@ public class Sort {
|
||||
public String toString() {
|
||||
return Utils.toString(Sort.class,
|
||||
"default_", default_,
|
||||
"active", active,
|
||||
"activeDirection", activeDirection,
|
||||
"defaultDirection", defaultDirection,
|
||||
"descKey", descKey,
|
||||
"firstCharacterKey", firstCharacterKey,
|
||||
@@ -219,15 +299,19 @@ public class Sort {
|
||||
|
||||
private Optional<String> default_ = Optional.empty();
|
||||
|
||||
private Optional<String> defaultDirection = Optional.empty();
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
private Optional<String> firstCharacterKey = Optional.empty();
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
private String key;
|
||||
|
||||
private Optional<String> title = Optional.empty();
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -245,13 +329,53 @@ public class Sort {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder defaultDirection(String defaultDirection) {
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(ActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(DefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder defaultDirection(Optional<String> defaultDirection) {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -282,38 +406,45 @@ public class Sort {
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Sort build() {
|
||||
return new Sort(
|
||||
if (activeDirection == null) {
|
||||
activeDirection = _SINGLETON_VALUE_ActiveDirection.value();
|
||||
}
|
||||
if (defaultDirection == null) {
|
||||
defaultDirection = _SINGLETON_VALUE_DefaultDirection.value();
|
||||
} return new Sort(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends ActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends ActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends DefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends DefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user