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.487.0
This commit is contained in:
@@ -7,6 +7,8 @@ package dev.plexapi.sdk;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.models.errors.DeleteLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.DeleteLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetActorsLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetActorsLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetAllLibrariesBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetAllLibrariesUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetCountriesLibraryBadRequest;
|
||||
@@ -19,8 +21,8 @@ import dev.plexapi.sdk.models.errors.GetLibraryDetailsBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetLibraryDetailsUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetMetaDataByRatingKeyBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMetaDataByRatingKeyUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetMediaMetaDataBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMediaMetaDataUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetMetadataChildrenBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMetadataChildrenUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckBadRequest;
|
||||
@@ -40,9 +42,15 @@ import dev.plexapi.sdk.models.operations.DeleteLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.DeleteLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.DeleteLibraryResponse;
|
||||
import dev.plexapi.sdk.models.operations.Force;
|
||||
import dev.plexapi.sdk.models.operations.GetActorsLibraryQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetActorsLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetActorsLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetActorsLibraryResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetActorsLibraryResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetCountriesLibraryQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetCountriesLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetCountriesLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetCountriesLibraryResponse;
|
||||
@@ -50,6 +58,7 @@ import dev.plexapi.sdk.models.operations.GetCountriesLibraryResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetFileHashRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetFileHashRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetFileHashResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetGenresLibraryQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetGenresLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetGenresLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetGenresLibraryResponse;
|
||||
@@ -62,10 +71,10 @@ import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetMediaMetaDataRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetMediaMetaDataRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetMediaMetaDataResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetMediaMetaDataResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponse;
|
||||
@@ -127,8 +136,9 @@ public class Library implements
|
||||
MethodCallGetSearchLibrary,
|
||||
MethodCallGetGenresLibrary,
|
||||
MethodCallGetCountriesLibrary,
|
||||
MethodCallGetActorsLibrary,
|
||||
MethodCallGetSearchAllLibraries,
|
||||
MethodCallGetMetaDataByRatingKey,
|
||||
MethodCallGetMediaMetaData,
|
||||
MethodCallGetMetadataChildren,
|
||||
MethodCallGetTopWatchedContent,
|
||||
MethodCallGetOnDeck {
|
||||
@@ -1545,7 +1555,7 @@ public class Library implements
|
||||
* @param sectionKey The unique key of the Plex library.
|
||||
Note: This is unique in the context of the Plex server.
|
||||
|
||||
* @param type The type of media to retrieve.
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
1 = movie
|
||||
2 = show
|
||||
3 = season
|
||||
@@ -1728,15 +1738,24 @@ public class Library implements
|
||||
* @param sectionKey The unique key of the Plex library.
|
||||
Note: This is unique in the context of the Plex server.
|
||||
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
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
|
||||
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetGenresLibraryResponse getGenresLibrary(
|
||||
int sectionKey) throws Exception {
|
||||
int sectionKey,
|
||||
GetGenresLibraryQueryParamType type) throws Exception {
|
||||
GetGenresLibraryRequest request =
|
||||
GetGenresLibraryRequest
|
||||
.builder()
|
||||
.sectionKey(sectionKey)
|
||||
.type(type)
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
@@ -1751,6 +1770,11 @@ public class Library implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetGenresLibraryRequest.class,
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
@@ -1897,15 +1921,24 @@ public class Library implements
|
||||
* @param sectionKey The unique key of the Plex library.
|
||||
Note: This is unique in the context of the Plex server.
|
||||
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
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
|
||||
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetCountriesLibraryResponse getCountriesLibrary(
|
||||
int sectionKey) throws Exception {
|
||||
int sectionKey,
|
||||
GetCountriesLibraryQueryParamType type) throws Exception {
|
||||
GetCountriesLibraryRequest request =
|
||||
GetCountriesLibraryRequest
|
||||
.builder()
|
||||
.sectionKey(sectionKey)
|
||||
.type(type)
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
@@ -1920,6 +1953,11 @@ public class Library implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetCountriesLibraryRequest.class,
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
@@ -2049,6 +2087,189 @@ public class Library implements
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get Actors of library media
|
||||
* Retrieves a list of all the actors that are found for the media in this library.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetActorsLibraryRequestBuilder getActorsLibrary() {
|
||||
return new GetActorsLibraryRequestBuilder(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Actors of library media
|
||||
* Retrieves a list of all the actors that are found for the media in this library.
|
||||
*
|
||||
* @param sectionKey The unique key of the Plex library.
|
||||
Note: This is unique in the context of the Plex server.
|
||||
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
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
|
||||
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetActorsLibraryResponse getActorsLibrary(
|
||||
int sectionKey,
|
||||
GetActorsLibraryQueryParamType type) throws Exception {
|
||||
GetActorsLibraryRequest request =
|
||||
GetActorsLibraryRequest
|
||||
.builder()
|
||||
.sectionKey(sectionKey)
|
||||
.type(type)
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetActorsLibraryRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/actor",
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetActorsLibraryRequest.class,
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
"get-actors-library",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
_httpRes = _client.send(_r);
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "404", "4XX", "5XX")) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-actors-library",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
"get-actors-library",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-actors-library",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
String _contentType = _httpRes
|
||||
.headers()
|
||||
.firstValue("Content-Type")
|
||||
.orElse("application/octet-stream");
|
||||
GetActorsLibraryResponse.Builder _resBuilder =
|
||||
GetActorsLibraryResponse
|
||||
.builder()
|
||||
.contentType(_contentType)
|
||||
.statusCode(_httpRes.statusCode())
|
||||
.rawResponse(_httpRes);
|
||||
|
||||
GetActorsLibraryResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetActorsLibraryResponseBody _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetActorsLibraryResponseBody>() {});
|
||||
_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")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetActorsLibraryBadRequest _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetActorsLibraryBadRequest>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
} else {
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"Unexpected content-type received: " + _contentType,
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetActorsLibraryUnauthorized _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetActorsLibraryUnauthorized>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
} else {
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"Unexpected content-type received: " + _contentType,
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Search All Libraries
|
||||
* Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
||||
@@ -2215,35 +2436,29 @@ public class Library implements
|
||||
|
||||
|
||||
/**
|
||||
* Get Metadata by RatingKey
|
||||
* This endpoint will return the metadata of a library item specified with the ratingKey.
|
||||
* Get Media Metadata
|
||||
* This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetMetaDataByRatingKeyRequestBuilder getMetaDataByRatingKey() {
|
||||
return new GetMetaDataByRatingKeyRequestBuilder(this);
|
||||
public GetMediaMetaDataRequestBuilder getMediaMetaData() {
|
||||
return new GetMediaMetaDataRequestBuilder(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Metadata by RatingKey
|
||||
* This endpoint will return the metadata of a library item specified with the ratingKey.
|
||||
* Get Media Metadata
|
||||
* This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
||||
*
|
||||
* @param ratingKey the id of the library item to return the children of.
|
||||
* @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 GetMetaDataByRatingKeyResponse getMetaDataByRatingKey(
|
||||
long ratingKey) throws Exception {
|
||||
GetMetaDataByRatingKeyRequest request =
|
||||
GetMetaDataByRatingKeyRequest
|
||||
.builder()
|
||||
.ratingKey(ratingKey)
|
||||
.build();
|
||||
|
||||
public GetMediaMetaDataResponse getMediaMetaData(
|
||||
GetMediaMetaDataRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetMetaDataByRatingKeyRequest.class,
|
||||
GetMediaMetaDataRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}",
|
||||
request, null);
|
||||
@@ -2252,6 +2467,11 @@ public class Library implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetMediaMetaDataRequest.class,
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
@@ -2261,18 +2481,18 @@ public class Library implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
"get-media-meta-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
_httpRes = _client.send(_r);
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "404", "4XX", "5XX")) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
"get-media-meta-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
@@ -2281,7 +2501,7 @@ public class Library implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
"get-media-meta-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
@@ -2290,7 +2510,7 @@ public class Library implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
"get-media-meta-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
@@ -2300,20 +2520,20 @@ public class Library implements
|
||||
.headers()
|
||||
.firstValue("Content-Type")
|
||||
.orElse("application/octet-stream");
|
||||
GetMetaDataByRatingKeyResponse.Builder _resBuilder =
|
||||
GetMetaDataByRatingKeyResponse
|
||||
GetMediaMetaDataResponse.Builder _resBuilder =
|
||||
GetMediaMetaDataResponse
|
||||
.builder()
|
||||
.contentType(_contentType)
|
||||
.statusCode(_httpRes.statusCode())
|
||||
.rawResponse(_httpRes);
|
||||
|
||||
GetMetaDataByRatingKeyResponse _res = _resBuilder.build();
|
||||
GetMediaMetaDataResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetMetaDataByRatingKeyResponseBody _out = Utils.mapper().readValue(
|
||||
GetMediaMetaDataResponseBody _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetMetaDataByRatingKeyResponseBody>() {});
|
||||
new TypeReference<GetMediaMetaDataResponseBody>() {});
|
||||
_res.withObject(Optional.ofNullable(_out));
|
||||
return _res;
|
||||
} else {
|
||||
@@ -2326,9 +2546,9 @@ public class Library implements
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetMetaDataByRatingKeyBadRequest _out = Utils.mapper().readValue(
|
||||
GetMediaMetaDataBadRequest _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetMetaDataByRatingKeyBadRequest>() {});
|
||||
new TypeReference<GetMediaMetaDataBadRequest>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
@@ -2342,9 +2562,9 @@ public class Library implements
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetMetaDataByRatingKeyUnauthorized _out = Utils.mapper().readValue(
|
||||
GetMediaMetaDataUnauthorized _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetMetaDataByRatingKeyUnauthorized>() {});
|
||||
new TypeReference<GetMediaMetaDataUnauthorized>() {});
|
||||
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||
|
||||
throw _out;
|
||||
@@ -2356,7 +2576,7 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -2584,7 +2804,7 @@ public class Library implements
|
||||
* Get Top Watched Content
|
||||
* This endpoint will return the top watched content from libraries of a certain type
|
||||
*
|
||||
* @param type The type of media to retrieve.
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
1 = movie
|
||||
2 = show
|
||||
3 = season
|
||||
@@ -2605,7 +2825,7 @@ public class Library implements
|
||||
*
|
||||
* @param includeGuids Adds the Guids object to the response
|
||||
|
||||
* @param type The type of media to retrieve.
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
1 = movie
|
||||
2 = show
|
||||
3 = season
|
||||
|
||||
@@ -976,7 +976,7 @@ public class Playlists implements
|
||||
* Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @param type The type of media to retrieve.
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
1 = movie
|
||||
2 = show
|
||||
3 = season
|
||||
|
||||
@@ -43,8 +43,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.11.5";
|
||||
public static final String GEN_VERSION = "2.503.2";
|
||||
public static final String SDK_VERSION = "0.11.6";
|
||||
public static final String GEN_VERSION = "2.506.0";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
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.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetActorsLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetActorsLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("RawResponse")
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetActorsLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.errors = errors;
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetActorsLibraryBadRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetActorsLibraryErrors>> errors(){
|
||||
return (Optional<List<GetActorsLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetActorsLibraryBadRequest withErrors(List<GetActorsLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryBadRequest withErrors(Optional<? extends List<GetActorsLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetActorsLibraryBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetActorsLibraryBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetActorsLibraryBadRequest other = (GetActorsLibraryBadRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetActorsLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetActorsLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetActorsLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryBadRequest build() {
|
||||
return new GetActorsLibraryBadRequest(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyErrors {
|
||||
public class GetActorsLibraryErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
@@ -33,7 +33,7 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyErrors(
|
||||
public GetActorsLibraryErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
@@ -45,7 +45,7 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors() {
|
||||
public GetActorsLibraryErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -68,37 +68,37 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withCode(int code) {
|
||||
public GetActorsLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withCode(Optional<Integer> code) {
|
||||
public GetActorsLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withMessage(String message) {
|
||||
public GetActorsLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withMessage(Optional<String> message) {
|
||||
public GetActorsLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withStatus(int status) {
|
||||
public GetActorsLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors withStatus(Optional<Integer> status) {
|
||||
public GetActorsLibraryErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
@@ -112,7 +112,7 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyErrors other = (GetMetaDataByRatingKeyErrors) o;
|
||||
GetActorsLibraryErrors other = (GetActorsLibraryErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
@@ -129,7 +129,7 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyErrors.class,
|
||||
return Utils.toString(GetActorsLibraryErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
@@ -183,8 +183,8 @@ public class GetMetaDataByRatingKeyErrors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyErrors build() {
|
||||
return new GetMetaDataByRatingKeyErrors(
|
||||
public GetActorsLibraryErrors build() {
|
||||
return new GetActorsLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
@@ -18,7 +18,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
public class GetActorsLibraryLibraryErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
@@ -33,7 +33,7 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyLibraryErrors(
|
||||
public GetActorsLibraryLibraryErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
@@ -45,7 +45,7 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors() {
|
||||
public GetActorsLibraryLibraryErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -68,37 +68,37 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withCode(int code) {
|
||||
public GetActorsLibraryLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withCode(Optional<Integer> code) {
|
||||
public GetActorsLibraryLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withMessage(String message) {
|
||||
public GetActorsLibraryLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withMessage(Optional<String> message) {
|
||||
public GetActorsLibraryLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withStatus(int status) {
|
||||
public GetActorsLibraryLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors withStatus(Optional<Integer> status) {
|
||||
public GetActorsLibraryLibraryErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
@@ -112,7 +112,7 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyLibraryErrors other = (GetMetaDataByRatingKeyLibraryErrors) o;
|
||||
GetActorsLibraryLibraryErrors other = (GetActorsLibraryLibraryErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
@@ -129,7 +129,7 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyLibraryErrors.class,
|
||||
return Utils.toString(GetActorsLibraryLibraryErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
@@ -183,8 +183,8 @@ public class GetMetaDataByRatingKeyLibraryErrors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyLibraryErrors build() {
|
||||
return new GetMetaDataByRatingKeyLibraryErrors(
|
||||
public GetActorsLibraryLibraryErrors build() {
|
||||
return new GetActorsLibraryLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
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.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetActorsLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetActorsLibraryLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("RawResponse")
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetActorsLibraryLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.errors = errors;
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetActorsLibraryUnauthorized() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetActorsLibraryLibraryErrors>> errors(){
|
||||
return (Optional<List<GetActorsLibraryLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetActorsLibraryUnauthorized withErrors(List<GetActorsLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryUnauthorized withErrors(Optional<? extends List<GetActorsLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetActorsLibraryUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetActorsLibraryUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetActorsLibraryUnauthorized other = (GetActorsLibraryUnauthorized) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetActorsLibraryLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetActorsLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetActorsLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryUnauthorized build() {
|
||||
return new GetActorsLibraryUnauthorized(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,14 +19,14 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetMetaDataByRatingKeyBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetMediaMetaDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
public class GetMediaMetaDataBadRequest extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyErrors>> errors;
|
||||
private Optional<? extends List<GetMediaMetaDataErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
@@ -36,8 +36,8 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetMetaDataByRatingKeyErrors>> errors,
|
||||
public GetMediaMetaDataBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetMediaMetaDataErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -45,13 +45,13 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyBadRequest() {
|
||||
public GetMediaMetaDataBadRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetMetaDataByRatingKeyErrors>> errors(){
|
||||
return (Optional<List<GetMetaDataByRatingKeyErrors>>) errors;
|
||||
public Optional<List<GetMediaMetaDataErrors>> errors(){
|
||||
return (Optional<List<GetMediaMetaDataErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,13 +66,13 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyBadRequest withErrors(List<GetMetaDataByRatingKeyErrors> errors) {
|
||||
public GetMediaMetaDataBadRequest withErrors(List<GetMediaMetaDataErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyBadRequest withErrors(Optional<? extends List<GetMetaDataByRatingKeyErrors>> errors) {
|
||||
public GetMediaMetaDataBadRequest withErrors(Optional<? extends List<GetMediaMetaDataErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -81,7 +81,7 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetMetaDataByRatingKeyBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetMediaMetaDataBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -90,7 +90,7 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetMetaDataByRatingKeyBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetMediaMetaDataBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -104,7 +104,7 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyBadRequest other = (GetMetaDataByRatingKeyBadRequest) o;
|
||||
GetMediaMetaDataBadRequest other = (GetMediaMetaDataBadRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -119,14 +119,14 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyBadRequest.class,
|
||||
return Utils.toString(GetMediaMetaDataBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyErrors>> errors = Optional.empty();
|
||||
private Optional<? extends List<GetMediaMetaDataErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@@ -134,13 +134,13 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetMetaDataByRatingKeyErrors> errors) {
|
||||
public Builder errors(List<GetMediaMetaDataErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetMetaDataByRatingKeyErrors>> errors) {
|
||||
public Builder errors(Optional<? extends List<GetMediaMetaDataErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -164,8 +164,8 @@ public class GetMetaDataByRatingKeyBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyBadRequest build() {
|
||||
return new GetMetaDataByRatingKeyBadRequest(
|
||||
public GetMediaMetaDataBadRequest build() {
|
||||
return new GetMediaMetaDataBadRequest(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
|
||||
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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMediaMetaDataErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
private Optional<Integer> code;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("message")
|
||||
private Optional<String> message;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("status")
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
Utils.checkNotNull(message, "message");
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> code() {
|
||||
return code;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> message() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> status() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataErrors other = (GetMediaMetaDataErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
Objects.deepEquals(this.status, other.status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> code = Optional.empty();
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder code(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder code(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder message(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder message(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder status(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder status(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataErrors build() {
|
||||
return new GetMediaMetaDataErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
|
||||
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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMediaMetaDataLibraryErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
private Optional<Integer> code;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("message")
|
||||
private Optional<String> message;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("status")
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataLibraryErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
Utils.checkNotNull(message, "message");
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> code() {
|
||||
return code;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> message() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> status() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataLibraryErrors other = (GetMediaMetaDataLibraryErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
Objects.deepEquals(this.status, other.status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataLibraryErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> code = Optional.empty();
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder code(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder code(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder message(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder message(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder status(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder status(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLibraryErrors build() {
|
||||
return new GetMediaMetaDataLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetMetaDataByRatingKeyUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetMediaMetaDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
public class GetMediaMetaDataUnauthorized extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyLibraryErrors>> errors;
|
||||
private Optional<? extends List<GetMediaMetaDataLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
@@ -36,8 +36,8 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetMetaDataByRatingKeyLibraryErrors>> errors,
|
||||
public GetMediaMetaDataUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetMediaMetaDataLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -45,13 +45,13 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyUnauthorized() {
|
||||
public GetMediaMetaDataUnauthorized() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetMetaDataByRatingKeyLibraryErrors>> errors(){
|
||||
return (Optional<List<GetMetaDataByRatingKeyLibraryErrors>>) errors;
|
||||
public Optional<List<GetMediaMetaDataLibraryErrors>> errors(){
|
||||
return (Optional<List<GetMediaMetaDataLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,13 +66,13 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyUnauthorized withErrors(List<GetMetaDataByRatingKeyLibraryErrors> errors) {
|
||||
public GetMediaMetaDataUnauthorized withErrors(List<GetMediaMetaDataLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyUnauthorized withErrors(Optional<? extends List<GetMetaDataByRatingKeyLibraryErrors>> errors) {
|
||||
public GetMediaMetaDataUnauthorized withErrors(Optional<? extends List<GetMediaMetaDataLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -81,7 +81,7 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetMetaDataByRatingKeyUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetMediaMetaDataUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -90,7 +90,7 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetMetaDataByRatingKeyUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetMediaMetaDataUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -104,7 +104,7 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyUnauthorized other = (GetMetaDataByRatingKeyUnauthorized) o;
|
||||
GetMediaMetaDataUnauthorized other = (GetMediaMetaDataUnauthorized) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -119,14 +119,14 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyUnauthorized.class,
|
||||
return Utils.toString(GetMediaMetaDataUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyLibraryErrors>> errors = Optional.empty();
|
||||
private Optional<? extends List<GetMediaMetaDataLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@@ -134,13 +134,13 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetMetaDataByRatingKeyLibraryErrors> errors) {
|
||||
public Builder errors(List<GetMediaMetaDataLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetMetaDataByRatingKeyLibraryErrors>> errors) {
|
||||
public Builder errors(Optional<? extends List<GetMediaMetaDataLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -164,8 +164,8 @@ public class GetMetaDataByRatingKeyUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyUnauthorized build() {
|
||||
return new GetMetaDataByRatingKeyUnauthorized(
|
||||
public GetMediaMetaDataUnauthorized build() {
|
||||
return new GetMediaMetaDataUnauthorized(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
/*
|
||||
* 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 GetActorsLibraryDirectory {
|
||||
|
||||
/**
|
||||
* A fast lookup key for the actor relative url.
|
||||
*/
|
||||
@JsonProperty("fastKey")
|
||||
private String fastKey;
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the actor.
|
||||
*/
|
||||
@JsonProperty("thumb")
|
||||
private String thumb;
|
||||
|
||||
/**
|
||||
* A unique key representing the actor.
|
||||
*/
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* The name of the actor.
|
||||
*/
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryDirectory(
|
||||
@JsonProperty("fastKey") String fastKey,
|
||||
@JsonProperty("thumb") String thumb,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(fastKey, "fastKey");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.fastKey = fastKey;
|
||||
this.thumb = thumb;
|
||||
this.key = key;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* A fast lookup key for the actor relative url.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String fastKey() {
|
||||
return fastKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key representing the actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* A fast lookup key for the actor relative url.
|
||||
*/
|
||||
public GetActorsLibraryDirectory withFastKey(String fastKey) {
|
||||
Utils.checkNotNull(fastKey, "fastKey");
|
||||
this.fastKey = fastKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the actor.
|
||||
*/
|
||||
public GetActorsLibraryDirectory withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key representing the actor.
|
||||
*/
|
||||
public GetActorsLibraryDirectory withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor.
|
||||
*/
|
||||
public GetActorsLibraryDirectory 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;
|
||||
}
|
||||
GetActorsLibraryDirectory other = (GetActorsLibraryDirectory) o;
|
||||
return
|
||||
Objects.deepEquals(this.fastKey, other.fastKey) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
fastKey,
|
||||
thumb,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryDirectory.class,
|
||||
"fastKey", fastKey,
|
||||
"thumb", thumb,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String fastKey;
|
||||
|
||||
private String thumb;
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* A fast lookup key for the actor relative url.
|
||||
*/
|
||||
public Builder fastKey(String fastKey) {
|
||||
Utils.checkNotNull(fastKey, "fastKey");
|
||||
this.fastKey = fastKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the actor.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key representing the actor.
|
||||
*/
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor.
|
||||
*/
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryDirectory build() {
|
||||
return new GetActorsLibraryDirectory(
|
||||
fastKey,
|
||||
thumb,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,625 @@
|
||||
/*
|
||||
* 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.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 GetActorsLibraryMediaContainer {
|
||||
|
||||
@JsonProperty("size")
|
||||
private double size;
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonProperty("allowSync")
|
||||
private boolean allowSync;
|
||||
|
||||
/**
|
||||
* URL for the background artwork of the media container.
|
||||
*/
|
||||
@JsonProperty("art")
|
||||
private String art;
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonProperty("identifier")
|
||||
private String identifier;
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private String mediaTagPrefix;
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private long mediaTagVersion;
|
||||
|
||||
/**
|
||||
* Specifies whether caching is disabled.
|
||||
*/
|
||||
@JsonProperty("nocache")
|
||||
private boolean nocache;
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the media container.
|
||||
*/
|
||||
@JsonProperty("thumb")
|
||||
private String thumb;
|
||||
|
||||
/**
|
||||
* The primary title of the media container.
|
||||
*/
|
||||
@JsonProperty("title1")
|
||||
private String title1;
|
||||
|
||||
/**
|
||||
* The secondary title of the media container.
|
||||
*/
|
||||
@JsonProperty("title2")
|
||||
private String title2;
|
||||
|
||||
/**
|
||||
* Identifier for the view group layout.
|
||||
*/
|
||||
@JsonProperty("viewGroup")
|
||||
private String viewGroup;
|
||||
|
||||
/**
|
||||
* Identifier for the view mode.
|
||||
*/
|
||||
@JsonProperty("viewMode")
|
||||
private String viewMode;
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Directory")
|
||||
private Optional<? extends List<GetActorsLibraryDirectory>> directory;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryMediaContainer(
|
||||
@JsonProperty("size") double size,
|
||||
@JsonProperty("allowSync") boolean allowSync,
|
||||
@JsonProperty("art") String art,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") long mediaTagVersion,
|
||||
@JsonProperty("nocache") boolean nocache,
|
||||
@JsonProperty("thumb") String thumb,
|
||||
@JsonProperty("title1") String title1,
|
||||
@JsonProperty("title2") String title2,
|
||||
@JsonProperty("viewGroup") String viewGroup,
|
||||
@JsonProperty("viewMode") String viewMode,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetActorsLibraryDirectory>> directory) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(art, "art");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(title1, "title1");
|
||||
Utils.checkNotNull(title2, "title2");
|
||||
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||
Utils.checkNotNull(viewMode, "viewMode");
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.art = art;
|
||||
this.identifier = identifier;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.nocache = nocache;
|
||||
this.thumb = thumb;
|
||||
this.title1 = title1;
|
||||
this.title2 = title2;
|
||||
this.viewGroup = viewGroup;
|
||||
this.viewMode = viewMode;
|
||||
this.directory = directory;
|
||||
}
|
||||
|
||||
public GetActorsLibraryMediaContainer(
|
||||
double size,
|
||||
boolean allowSync,
|
||||
String art,
|
||||
String identifier,
|
||||
String mediaTagPrefix,
|
||||
long mediaTagVersion,
|
||||
boolean nocache,
|
||||
String thumb,
|
||||
String title1,
|
||||
String title2,
|
||||
String viewGroup,
|
||||
String viewMode) {
|
||||
this(size, allowSync, art, identifier, mediaTagPrefix, mediaTagVersion, nocache, thumb, title1, title2, viewGroup, viewMode, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public double size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the background artwork of the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String art() {
|
||||
return art;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether caching is disabled.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean nocache() {
|
||||
return nocache;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary title of the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String title1() {
|
||||
return title1;
|
||||
}
|
||||
|
||||
/**
|
||||
* The secondary title of the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String title2() {
|
||||
return title2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view group layout.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String viewGroup() {
|
||||
return viewGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view mode.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String viewMode() {
|
||||
return viewMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetActorsLibraryDirectory>> directory() {
|
||||
return (Optional<List<GetActorsLibraryDirectory>>) directory;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetActorsLibraryMediaContainer withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the background artwork of the media container.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withArt(String art) {
|
||||
Utils.checkNotNull(art, "art");
|
||||
this.art = art;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether caching is disabled.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withNocache(boolean nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = nocache;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the media container.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary title of the media container.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withTitle1(String title1) {
|
||||
Utils.checkNotNull(title1, "title1");
|
||||
this.title1 = title1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The secondary title of the media container.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withTitle2(String title2) {
|
||||
Utils.checkNotNull(title2, "title2");
|
||||
this.title2 = title2;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view group layout.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withViewGroup(String viewGroup) {
|
||||
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||
this.viewGroup = viewGroup;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view mode.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withViewMode(String viewMode) {
|
||||
Utils.checkNotNull(viewMode, "viewMode");
|
||||
this.viewMode = viewMode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withDirectory(List<GetActorsLibraryDirectory> directory) {
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
this.directory = Optional.ofNullable(directory);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
public GetActorsLibraryMediaContainer withDirectory(Optional<? extends List<GetActorsLibraryDirectory>> directory) {
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetActorsLibraryMediaContainer other = (GetActorsLibraryMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.art, other.art) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.nocache, other.nocache) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.title1, other.title1) &&
|
||||
Objects.deepEquals(this.title2, other.title2) &&
|
||||
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
|
||||
Objects.deepEquals(this.viewMode, other.viewMode) &&
|
||||
Objects.deepEquals(this.directory, other.directory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
allowSync,
|
||||
art,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
nocache,
|
||||
thumb,
|
||||
title1,
|
||||
title2,
|
||||
viewGroup,
|
||||
viewMode,
|
||||
directory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryMediaContainer.class,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"art", art,
|
||||
"identifier", identifier,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"nocache", nocache,
|
||||
"thumb", thumb,
|
||||
"title1", title1,
|
||||
"title2", title2,
|
||||
"viewGroup", viewGroup,
|
||||
"viewMode", viewMode,
|
||||
"directory", directory);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Double size;
|
||||
|
||||
private Boolean allowSync;
|
||||
|
||||
private String art;
|
||||
|
||||
private String identifier;
|
||||
|
||||
private String mediaTagPrefix;
|
||||
|
||||
private Long mediaTagVersion;
|
||||
|
||||
private Boolean nocache;
|
||||
|
||||
private String thumb;
|
||||
|
||||
private String title1;
|
||||
|
||||
private String title2;
|
||||
|
||||
private String viewGroup;
|
||||
|
||||
private String viewMode;
|
||||
|
||||
private Optional<? extends List<GetActorsLibraryDirectory>> directory = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the background artwork of the media container.
|
||||
*/
|
||||
public Builder art(String art) {
|
||||
Utils.checkNotNull(art, "art");
|
||||
this.art = art;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public Builder mediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether caching is disabled.
|
||||
*/
|
||||
public Builder nocache(boolean nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = nocache;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the thumbnail image of the media container.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary title of the media container.
|
||||
*/
|
||||
public Builder title1(String title1) {
|
||||
Utils.checkNotNull(title1, "title1");
|
||||
this.title1 = title1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The secondary title of the media container.
|
||||
*/
|
||||
public Builder title2(String title2) {
|
||||
Utils.checkNotNull(title2, "title2");
|
||||
this.title2 = title2;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view group layout.
|
||||
*/
|
||||
public Builder viewGroup(String viewGroup) {
|
||||
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||
this.viewGroup = viewGroup;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier for the view mode.
|
||||
*/
|
||||
public Builder viewMode(String viewMode) {
|
||||
Utils.checkNotNull(viewMode, "viewMode");
|
||||
this.viewMode = viewMode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
public Builder directory(List<GetActorsLibraryDirectory> directory) {
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
this.directory = Optional.ofNullable(directory);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of actor entries for media items.
|
||||
*/
|
||||
public Builder directory(Optional<? extends List<GetActorsLibraryDirectory>> directory) {
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryMediaContainer build() {
|
||||
return new GetActorsLibraryMediaContainer(
|
||||
size,
|
||||
allowSync,
|
||||
art,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
nocache,
|
||||
thumb,
|
||||
title1,
|
||||
title2,
|
||||
viewGroup,
|
||||
viewMode,
|
||||
directory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetActorsLibraryQueryParamType - The type of media to retrieve or filter by.
|
||||
* 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 GetActorsLibraryQueryParamType {
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
|
||||
private GetActorsLibraryQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetActorsLibraryQueryParamType> fromValue(long value) {
|
||||
for (GetActorsLibraryQueryParamType o: GetActorsLibraryQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetActorsLibraryRequest {
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
* Note: This is unique in the context of the Plex server.
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
|
||||
private int sectionKey;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetActorsLibraryQueryParamType type;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryRequest(
|
||||
int sectionKey,
|
||||
GetActorsLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.sectionKey = sectionKey;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
* Note: This is unique in the context of the Plex server.
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int sectionKey() {
|
||||
return sectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetActorsLibraryQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
* Note: This is unique in the context of the Plex server.
|
||||
*
|
||||
*/
|
||||
public GetActorsLibraryRequest withSectionKey(int sectionKey) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetActorsLibraryRequest withType(GetActorsLibraryQueryParamType 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;
|
||||
}
|
||||
GetActorsLibraryRequest other = (GetActorsLibraryRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryRequest.class,
|
||||
"sectionKey", sectionKey,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Integer sectionKey;
|
||||
|
||||
private GetActorsLibraryQueryParamType type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
* Note: This is unique in the context of the Plex server.
|
||||
*
|
||||
*/
|
||||
public Builder sectionKey(int sectionKey) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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(GetActorsLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryRequest build() {
|
||||
return new GetActorsLibraryRequest(
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
|
||||
public class GetActorsLibraryRequestBuilder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private GetActorsLibraryQueryParamType type;
|
||||
private final SDKMethodInterfaces.MethodCallGetActorsLibrary sdk;
|
||||
|
||||
public GetActorsLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetActorsLibrary sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetActorsLibraryRequestBuilder sectionKey(int sectionKey) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryRequestBuilder type(GetActorsLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryResponse call() throws Exception {
|
||||
|
||||
return sdk.getActorsLibrary(
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
@@ -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 GetActorsLibraryResponse 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;
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
private Optional<? extends GetActorsLibraryResponseBody> object;
|
||||
|
||||
@JsonCreator
|
||||
public GetActorsLibraryResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse,
|
||||
Optional<? extends GetActorsLibraryResponseBody> 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 GetActorsLibraryResponse(
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetActorsLibraryResponseBody> object() {
|
||||
return (Optional<GetActorsLibraryResponseBody>) object;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public GetActorsLibraryResponse withContentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public GetActorsLibraryResponse withStatusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetActorsLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public GetActorsLibraryResponse withObject(GetActorsLibraryResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public GetActorsLibraryResponse withObject(Optional<? extends GetActorsLibraryResponseBody> 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;
|
||||
}
|
||||
GetActorsLibraryResponse other = (GetActorsLibraryResponse) 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(GetActorsLibraryResponse.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 GetActorsLibraryResponseBody> 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public Builder object(GetActorsLibraryResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public Builder object(Optional<? extends GetActorsLibraryResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetActorsLibraryResponse build() {
|
||||
return new GetActorsLibraryResponse(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,43 +18,43 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetMetaDataByRatingKeyResponseBody - The metadata of the library item.
|
||||
* GetActorsLibraryResponseBody - Successful response containing media container data.
|
||||
*/
|
||||
|
||||
public class GetMetaDataByRatingKeyResponseBody {
|
||||
public class GetActorsLibraryResponseBody {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("MediaContainer")
|
||||
private Optional<? extends GetMetaDataByRatingKeyMediaContainer> mediaContainer;
|
||||
private Optional<? extends GetActorsLibraryMediaContainer> mediaContainer;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetMetaDataByRatingKeyMediaContainer> mediaContainer) {
|
||||
public GetActorsLibraryResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetActorsLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponseBody() {
|
||||
public GetActorsLibraryResponseBody() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetMetaDataByRatingKeyMediaContainer> mediaContainer() {
|
||||
return (Optional<GetMetaDataByRatingKeyMediaContainer>) mediaContainer;
|
||||
public Optional<GetActorsLibraryMediaContainer> mediaContainer() {
|
||||
return (Optional<GetActorsLibraryMediaContainer>) mediaContainer;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponseBody withMediaContainer(GetMetaDataByRatingKeyMediaContainer mediaContainer) {
|
||||
public GetActorsLibraryResponseBody withMediaContainer(GetActorsLibraryMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponseBody withMediaContainer(Optional<? extends GetMetaDataByRatingKeyMediaContainer> mediaContainer) {
|
||||
public GetActorsLibraryResponseBody withMediaContainer(Optional<? extends GetActorsLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
@@ -68,7 +68,7 @@ public class GetMetaDataByRatingKeyResponseBody {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyResponseBody other = (GetMetaDataByRatingKeyResponseBody) o;
|
||||
GetActorsLibraryResponseBody other = (GetActorsLibraryResponseBody) o;
|
||||
return
|
||||
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||
}
|
||||
@@ -81,32 +81,32 @@ public class GetMetaDataByRatingKeyResponseBody {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyResponseBody.class,
|
||||
return Utils.toString(GetActorsLibraryResponseBody.class,
|
||||
"mediaContainer", mediaContainer);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends GetMetaDataByRatingKeyMediaContainer> mediaContainer = Optional.empty();
|
||||
private Optional<? extends GetActorsLibraryMediaContainer> mediaContainer = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder mediaContainer(GetMetaDataByRatingKeyMediaContainer mediaContainer) {
|
||||
public Builder mediaContainer(GetActorsLibraryMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaContainer(Optional<? extends GetMetaDataByRatingKeyMediaContainer> mediaContainer) {
|
||||
public Builder mediaContainer(Optional<? extends GetActorsLibraryMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponseBody build() {
|
||||
return new GetMetaDataByRatingKeyResponseBody(
|
||||
public GetActorsLibraryResponseBody build() {
|
||||
return new GetActorsLibraryResponseBody(
|
||||
mediaContainer);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetCountriesLibraryQueryParamType - The type of media to retrieve or filter by.
|
||||
* 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 GetCountriesLibraryQueryParamType {
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
|
||||
private GetCountriesLibraryQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetCountriesLibraryQueryParamType> fromValue(long value) {
|
||||
for (GetCountriesLibraryQueryParamType o: GetCountriesLibraryQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -25,11 +25,26 @@ public class GetCountriesLibraryRequest {
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
|
||||
private int sectionKey;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetCountriesLibraryQueryParamType type;
|
||||
|
||||
@JsonCreator
|
||||
public GetCountriesLibraryRequest(
|
||||
int sectionKey) {
|
||||
int sectionKey,
|
||||
GetCountriesLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.sectionKey = sectionKey;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,6 +57,20 @@ public class GetCountriesLibraryRequest {
|
||||
return sectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetCountriesLibraryQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
@@ -56,6 +85,21 @@ public class GetCountriesLibraryRequest {
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetCountriesLibraryRequest withType(GetCountriesLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -67,24 +111,29 @@ public class GetCountriesLibraryRequest {
|
||||
}
|
||||
GetCountriesLibraryRequest other = (GetCountriesLibraryRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey);
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetCountriesLibraryRequest.class,
|
||||
"sectionKey", sectionKey);
|
||||
"sectionKey", sectionKey,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private Integer sectionKey;
|
||||
|
||||
private GetCountriesLibraryQueryParamType type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -100,10 +149,26 @@ public class GetCountriesLibraryRequest {
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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(GetCountriesLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetCountriesLibraryRequest build() {
|
||||
return new GetCountriesLibraryRequest(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.lang.Integer;
|
||||
public class GetCountriesLibraryRequestBuilder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private GetCountriesLibraryQueryParamType type;
|
||||
private final SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk;
|
||||
|
||||
public GetCountriesLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk) {
|
||||
@@ -22,9 +23,16 @@ public class GetCountriesLibraryRequestBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetCountriesLibraryRequestBuilder type(GetCountriesLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetCountriesLibraryResponse call() throws Exception {
|
||||
|
||||
return sdk.getCountriesLibrary(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetGenresLibraryQueryParamType - The type of media to retrieve or filter by.
|
||||
* 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 GetGenresLibraryQueryParamType {
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
|
||||
private GetGenresLibraryQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetGenresLibraryQueryParamType> fromValue(long value) {
|
||||
for (GetGenresLibraryQueryParamType o: GetGenresLibraryQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -25,11 +25,26 @@ public class GetGenresLibraryRequest {
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
|
||||
private int sectionKey;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetGenresLibraryQueryParamType type;
|
||||
|
||||
@JsonCreator
|
||||
public GetGenresLibraryRequest(
|
||||
int sectionKey) {
|
||||
int sectionKey,
|
||||
GetGenresLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.sectionKey = sectionKey;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,6 +57,20 @@ public class GetGenresLibraryRequest {
|
||||
return sectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetGenresLibraryQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
@@ -56,6 +85,21 @@ public class GetGenresLibraryRequest {
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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 GetGenresLibraryRequest withType(GetGenresLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -67,24 +111,29 @@ public class GetGenresLibraryRequest {
|
||||
}
|
||||
GetGenresLibraryRequest other = (GetGenresLibraryRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey);
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetGenresLibraryRequest.class,
|
||||
"sectionKey", sectionKey);
|
||||
"sectionKey", sectionKey,
|
||||
"type", type);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private Integer sectionKey;
|
||||
|
||||
private GetGenresLibraryQueryParamType type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -100,10 +149,26 @@ public class GetGenresLibraryRequest {
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 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(GetGenresLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetGenresLibraryRequest build() {
|
||||
return new GetGenresLibraryRequest(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.lang.Integer;
|
||||
public class GetGenresLibraryRequestBuilder {
|
||||
|
||||
private Integer sectionKey;
|
||||
private GetGenresLibraryQueryParamType type;
|
||||
private final SDKMethodInterfaces.MethodCallGetGenresLibrary sdk;
|
||||
|
||||
public GetGenresLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetGenresLibrary sdk) {
|
||||
@@ -22,9 +23,16 @@ public class GetGenresLibraryRequestBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetGenresLibraryRequestBuilder type(GetGenresLibraryQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetGenresLibraryResponse call() throws Exception {
|
||||
|
||||
return sdk.getGenresLibrary(
|
||||
sectionKey);
|
||||
sectionKey,
|
||||
type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve.
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -35,7 +35,7 @@ public class GetLibraryItemsRequest {
|
||||
private Optional<? extends IncludeGuids> includeGuids;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -44,7 +44,7 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private Optional<? extends GetLibraryItemsQueryParamType> type;
|
||||
private GetLibraryItemsQueryParamType type;
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
@@ -83,7 +83,7 @@ public class GetLibraryItemsRequest {
|
||||
public GetLibraryItemsRequest(
|
||||
Tag tag,
|
||||
Optional<? extends IncludeGuids> includeGuids,
|
||||
Optional<? extends GetLibraryItemsQueryParamType> type,
|
||||
GetLibraryItemsQueryParamType type,
|
||||
int sectionKey,
|
||||
Optional<? extends GetLibraryItemsQueryParamIncludeMeta> includeMeta,
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
@@ -106,8 +106,9 @@ public class GetLibraryItemsRequest {
|
||||
|
||||
public GetLibraryItemsRequest(
|
||||
Tag tag,
|
||||
GetLibraryItemsQueryParamType type,
|
||||
int sectionKey) {
|
||||
this(tag, Optional.empty(), Optional.empty(), sectionKey, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(tag, Optional.empty(), type, sectionKey, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -129,7 +130,7 @@ public class GetLibraryItemsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -137,10 +138,9 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsQueryParamType> type() {
|
||||
return (Optional<GetLibraryItemsQueryParamType>) type;
|
||||
public GetLibraryItemsQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -219,7 +219,7 @@ public class GetLibraryItemsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -228,21 +228,6 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withType(GetLibraryItemsQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
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 GetLibraryItemsRequest withType(Optional<? extends GetLibraryItemsQueryParamType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -376,7 +361,7 @@ public class GetLibraryItemsRequest {
|
||||
|
||||
private Optional<? extends IncludeGuids> includeGuids;
|
||||
|
||||
private Optional<? extends GetLibraryItemsQueryParamType> type = Optional.empty();
|
||||
private GetLibraryItemsQueryParamType type;
|
||||
|
||||
private Integer sectionKey;
|
||||
|
||||
@@ -420,7 +405,7 @@ public class GetLibraryItemsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -429,21 +414,6 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
public Builder type(GetLibraryItemsQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
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(Optional<? extends GetLibraryItemsQueryParamType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetMediaMetaDataCountry {
|
||||
|
||||
/**
|
||||
* The unique country identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The filter string for the country.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The country name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataCountry(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique country identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the country.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The country name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique country identifier.
|
||||
*/
|
||||
public GetMediaMetaDataCountry withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the country.
|
||||
*/
|
||||
public GetMediaMetaDataCountry withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The country name.
|
||||
*/
|
||||
public GetMediaMetaDataCountry withTag(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;
|
||||
}
|
||||
GetMediaMetaDataCountry other = (GetMediaMetaDataCountry) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataCountry.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique country identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the country.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The country name.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataCountry build() {
|
||||
return new GetMediaMetaDataCountry(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,78 +11,126 @@ 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.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyDirector {
|
||||
public class GetMediaMetaDataDirector {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private long id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyDirector(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
public GetMediaMetaDataDirector(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetMediaMetaDataDirector(
|
||||
long id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
@@ -92,61 +140,73 @@ public class GetMetaDataByRatingKeyDirector {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withId(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withFilter(Optional<String> filter) {
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withTag(Optional<String> tag) {
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withTagKey(Optional<String> tagKey) {
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withThumb(String thumb) {
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector withThumb(Optional<String> thumb) {
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
@@ -160,12 +220,13 @@ public class GetMetaDataByRatingKeyDirector {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyDirector other = (GetMetaDataByRatingKeyDirector) o;
|
||||
GetMediaMetaDataDirector other = (GetMediaMetaDataDirector) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb);
|
||||
}
|
||||
|
||||
@@ -176,28 +237,32 @@ public class GetMetaDataByRatingKeyDirector {
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyDirector.class,
|
||||
return Utils.toString(GetMediaMetaDataDirector.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role,
|
||||
"thumb", thumb);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -205,72 +270,85 @@ public class GetMetaDataByRatingKeyDirector {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyDirector build() {
|
||||
return new GetMetaDataByRatingKeyDirector(
|
||||
public GetMediaMetaDataDirector build() {
|
||||
return new GetMediaMetaDataDirector(
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
}
|
||||
@@ -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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetMediaMetaDataGenre {
|
||||
|
||||
/**
|
||||
* The unique genre identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The filter string for the genre.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The genre name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataGenre(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique genre identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the genre.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique genre identifier.
|
||||
*/
|
||||
public GetMediaMetaDataGenre withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the genre.
|
||||
*/
|
||||
public GetMediaMetaDataGenre withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name.
|
||||
*/
|
||||
public GetMediaMetaDataGenre withTag(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;
|
||||
}
|
||||
GetMediaMetaDataGenre other = (GetMediaMetaDataGenre) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataGenre.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique genre identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the genre.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataGenre build() {
|
||||
return new GetMediaMetaDataGenre(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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 GetMediaMetaDataImage {
|
||||
|
||||
/**
|
||||
* Alternate text for the image.
|
||||
*/
|
||||
@JsonProperty("alt")
|
||||
private String alt;
|
||||
|
||||
/**
|
||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* The URL of the image.
|
||||
*/
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataImage(
|
||||
@JsonProperty("alt") String alt,
|
||||
@JsonProperty("type") String 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alternate text for the image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String alt() {
|
||||
return alt;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String url() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Alternate text for the image.
|
||||
*/
|
||||
public GetMediaMetaDataImage withAlt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
||||
*/
|
||||
public GetMediaMetaDataImage withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the image.
|
||||
*/
|
||||
public GetMediaMetaDataImage 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;
|
||||
}
|
||||
GetMediaMetaDataImage other = (GetMediaMetaDataImage) 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(GetMediaMetaDataImage.class,
|
||||
"alt", alt,
|
||||
"type", type,
|
||||
"url", url);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String alt;
|
||||
|
||||
private String type;
|
||||
|
||||
private String url;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Alternate text for the image.
|
||||
*/
|
||||
public Builder alt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
||||
*/
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the image.
|
||||
*/
|
||||
public Builder url(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataImage build() {
|
||||
return new GetMediaMetaDataImage(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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 GetMediaMetaDataLocation {
|
||||
|
||||
/**
|
||||
* The file path for the location.
|
||||
*/
|
||||
@JsonProperty("path")
|
||||
private String path;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataLocation(
|
||||
@JsonProperty("path") String path) {
|
||||
Utils.checkNotNull(path, "path");
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
/**
|
||||
* The file path for the location.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String path() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The file path for the location.
|
||||
*/
|
||||
public GetMediaMetaDataLocation withPath(String path) {
|
||||
Utils.checkNotNull(path, "path");
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataLocation other = (GetMediaMetaDataLocation) o;
|
||||
return
|
||||
Objects.deepEquals(this.path, other.path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataLocation.class,
|
||||
"path", path);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String path;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The file path for the location.
|
||||
*/
|
||||
public Builder path(String path) {
|
||||
Utils.checkNotNull(path, "path");
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataLocation build() {
|
||||
return new GetMediaMetaDataLocation(
|
||||
path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,679 @@
|
||||
/*
|
||||
* 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.Boolean;
|
||||
import java.lang.Float;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetMediaMetaDataMedia {
|
||||
|
||||
/**
|
||||
* Unique media identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
@JsonProperty("duration")
|
||||
private long duration;
|
||||
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
@JsonProperty("bitrate")
|
||||
private long bitrate;
|
||||
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
@JsonProperty("width")
|
||||
private long width;
|
||||
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
@JsonProperty("height")
|
||||
private long height;
|
||||
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
@JsonProperty("aspectRatio")
|
||||
private float aspectRatio;
|
||||
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
@JsonProperty("audioChannels")
|
||||
private long audioChannels;
|
||||
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
@JsonProperty("audioCodec")
|
||||
private String audioCodec;
|
||||
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
@JsonProperty("videoCodec")
|
||||
private String videoCodec;
|
||||
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
@JsonProperty("videoResolution")
|
||||
private String videoResolution;
|
||||
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
@JsonProperty("container")
|
||||
private String container;
|
||||
|
||||
/**
|
||||
* Frame rate of the video (e.g., 24p).
|
||||
*/
|
||||
@JsonProperty("videoFrameRate")
|
||||
private String videoFrameRate;
|
||||
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
@JsonProperty("videoProfile")
|
||||
private String videoProfile;
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private boolean hasVoiceActivity;
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@JsonProperty("Part")
|
||||
private List<GetMediaMetaDataPart> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataMedia(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("duration") long duration,
|
||||
@JsonProperty("bitrate") long bitrate,
|
||||
@JsonProperty("width") long width,
|
||||
@JsonProperty("height") long height,
|
||||
@JsonProperty("aspectRatio") float aspectRatio,
|
||||
@JsonProperty("audioChannels") long 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") boolean hasVoiceActivity,
|
||||
@JsonProperty("Part") List<GetMediaMetaDataPart> 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(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
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.videoProfile = videoProfile;
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique media identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public float aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame rate of the video (e.g., 24p).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean hasVoiceActivity() {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public List<GetMediaMetaDataPart> part() {
|
||||
return part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique media identifier.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withDuration(long duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withBitrate(long bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withWidth(long width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withHeight(long height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withAspectRatio(float aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withAudioChannels(long audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
public GetMediaMetaDataMedia withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame rate of the video (e.g., 24p).
|
||||
*/
|
||||
public GetMediaMetaDataMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
public GetMediaMetaDataMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withPart(List<GetMediaMetaDataPart> 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;
|
||||
}
|
||||
GetMediaMetaDataMedia other = (GetMediaMetaDataMedia) 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.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.hasVoiceActivity, other.hasVoiceActivity) &&
|
||||
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,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataMedia.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,
|
||||
"videoProfile", videoProfile,
|
||||
"hasVoiceActivity", hasVoiceActivity,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long duration;
|
||||
|
||||
private Long bitrate;
|
||||
|
||||
private Long width;
|
||||
|
||||
private Long height;
|
||||
|
||||
private Float aspectRatio;
|
||||
|
||||
private Long audioChannels;
|
||||
|
||||
private String audioCodec;
|
||||
|
||||
private String videoCodec;
|
||||
|
||||
private String videoResolution;
|
||||
|
||||
private String container;
|
||||
|
||||
private String videoFrameRate;
|
||||
|
||||
private String videoProfile;
|
||||
|
||||
private Boolean hasVoiceActivity;
|
||||
|
||||
private List<GetMediaMetaDataPart> part;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique media identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
public Builder duration(long duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
public Builder bitrate(long bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
public Builder width(long width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
public Builder height(long height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
public Builder aspectRatio(float aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
public Builder audioChannels(long audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
public Builder audioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
public Builder videoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
public Builder videoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame rate of the video (e.g., 24p).
|
||||
*/
|
||||
public Builder videoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public Builder hasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(List<GetMediaMetaDataPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMedia build() {
|
||||
return new GetMediaMetaDataMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
part);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,455 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMediaMetaDataMediaContainer {
|
||||
|
||||
@JsonProperty("size")
|
||||
private double size;
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonProperty("allowSync")
|
||||
private boolean allowSync;
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonProperty("identifier")
|
||||
private String identifier;
|
||||
|
||||
/**
|
||||
* The unique identifier for the library section.
|
||||
*/
|
||||
@JsonProperty("librarySectionID")
|
||||
private long librarySectionID;
|
||||
|
||||
/**
|
||||
* The title of the library section.
|
||||
*/
|
||||
@JsonProperty("librarySectionTitle")
|
||||
private String librarySectionTitle;
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionUUID")
|
||||
private Optional<String> librarySectionUUID;
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private String mediaTagPrefix;
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private long mediaTagVersion;
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
@JsonProperty("Metadata")
|
||||
private List<GetMediaMetaDataMetadata> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataMediaContainer(
|
||||
@JsonProperty("size") double size,
|
||||
@JsonProperty("allowSync") boolean allowSync,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("librarySectionID") long librarySectionID,
|
||||
@JsonProperty("librarySectionTitle") String librarySectionTitle,
|
||||
@JsonProperty("librarySectionUUID") Optional<String> librarySectionUUID,
|
||||
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") long mediaTagVersion,
|
||||
@JsonProperty("Metadata") List<GetMediaMetaDataMetadata> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.identifier = identifier;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMediaContainer(
|
||||
double size,
|
||||
boolean allowSync,
|
||||
String identifier,
|
||||
long librarySectionID,
|
||||
String librarySectionTitle,
|
||||
String mediaTagPrefix,
|
||||
long mediaTagVersion,
|
||||
List<GetMediaMetaDataMetadata> metadata) {
|
||||
this(size, allowSync, identifier, librarySectionID, librarySectionTitle, Optional.empty(), mediaTagPrefix, mediaTagVersion, metadata);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public double size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the library section.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long librarySectionID() {
|
||||
return librarySectionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the library section.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String librarySectionTitle() {
|
||||
return librarySectionTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> librarySectionUUID() {
|
||||
return librarySectionUUID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public List<GetMediaMetaDataMetadata> metadata() {
|
||||
return metadata;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMediaContainer withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the library section.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withLibrarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the library section.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withLibrarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withLibrarySectionUUID(String librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = Optional.ofNullable(librarySectionUUID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withLibrarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public GetMediaMetaDataMediaContainer withMetadata(List<GetMediaMetaDataMetadata> 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;
|
||||
}
|
||||
GetMediaMetaDataMediaContainer other = (GetMediaMetaDataMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionUUID,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataMediaContainer.class,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"identifier", identifier,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionUUID", librarySectionUUID,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Double size;
|
||||
|
||||
private Boolean allowSync;
|
||||
|
||||
private String identifier;
|
||||
|
||||
private Long librarySectionID;
|
||||
|
||||
private String librarySectionTitle;
|
||||
|
||||
private Optional<String> librarySectionUUID = Optional.empty();
|
||||
|
||||
private String mediaTagPrefix;
|
||||
|
||||
private Long mediaTagVersion;
|
||||
|
||||
private List<GetMediaMetaDataMetadata> metadata;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the library section.
|
||||
*/
|
||||
public Builder librarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the library section.
|
||||
*/
|
||||
public Builder librarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public Builder librarySectionUUID(String librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = Optional.ofNullable(librarySectionUUID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public Builder librarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public Builder mediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public Builder metadata(List<GetMediaMetaDataMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMediaContainer build() {
|
||||
return new GetMediaMetaDataMediaContainer(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionUUID,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
metadata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,568 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMediaMetaDataPart {
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("accessible")
|
||||
private Optional<Boolean> accessible;
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("exists")
|
||||
private Optional<Boolean> exists;
|
||||
|
||||
/**
|
||||
* Unique part identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* Key to access this part.
|
||||
*/
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("indexes")
|
||||
private Optional<String> indexes;
|
||||
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
@JsonProperty("duration")
|
||||
private long duration;
|
||||
|
||||
/**
|
||||
* File path for the part.
|
||||
*/
|
||||
@JsonProperty("file")
|
||||
private String file;
|
||||
|
||||
/**
|
||||
* File size in bytes.
|
||||
*/
|
||||
@JsonProperty("size")
|
||||
private long size;
|
||||
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
@JsonProperty("container")
|
||||
private String container;
|
||||
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
@JsonProperty("videoProfile")
|
||||
private String videoProfile;
|
||||
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
@JsonProperty("Stream")
|
||||
private List<GetMediaMetaDataStream> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataPart(
|
||||
@JsonProperty("accessible") Optional<Boolean> accessible,
|
||||
@JsonProperty("exists") Optional<Boolean> exists,
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("indexes") Optional<String> indexes,
|
||||
@JsonProperty("duration") long duration,
|
||||
@JsonProperty("file") String file,
|
||||
@JsonProperty("size") long size,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("Stream") List<GetMediaMetaDataStream> stream) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.accessible = accessible;
|
||||
this.exists = exists;
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.indexes = indexes;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.container = container;
|
||||
this.videoProfile = videoProfile;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataPart(
|
||||
long id,
|
||||
String key,
|
||||
long duration,
|
||||
String file,
|
||||
long size,
|
||||
String container,
|
||||
String videoProfile,
|
||||
List<GetMediaMetaDataStream> stream) {
|
||||
this(Optional.empty(), Optional.empty(), id, key, Optional.empty(), duration, file, size, container, videoProfile, stream);
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> accessible() {
|
||||
return accessible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> exists() {
|
||||
return exists;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique part identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Key to access this part.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> indexes() {
|
||||
return indexes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
/**
|
||||
* File path for the part.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
/**
|
||||
* File size in bytes.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public List<GetMediaMetaDataStream> stream() {
|
||||
return stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public GetMediaMetaDataPart withAccessible(boolean accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = Optional.ofNullable(accessible);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public GetMediaMetaDataPart withAccessible(Optional<Boolean> accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = accessible;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public GetMediaMetaDataPart withExists(boolean exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = Optional.ofNullable(exists);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public GetMediaMetaDataPart withExists(Optional<Boolean> exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = exists;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique part identifier.
|
||||
*/
|
||||
public GetMediaMetaDataPart withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Key to access this part.
|
||||
*/
|
||||
public GetMediaMetaDataPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataPart withIndexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataPart withIndexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
public GetMediaMetaDataPart withDuration(long duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File path for the part.
|
||||
*/
|
||||
public GetMediaMetaDataPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File size in bytes.
|
||||
*/
|
||||
public GetMediaMetaDataPart withSize(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
public GetMediaMetaDataPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
public GetMediaMetaDataPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public GetMediaMetaDataPart withStream(List<GetMediaMetaDataStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataPart other = (GetMediaMetaDataPart) o;
|
||||
return
|
||||
Objects.deepEquals(this.accessible, other.accessible) &&
|
||||
Objects.deepEquals(this.exists, other.exists) &&
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.indexes, other.indexes) &&
|
||||
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.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.stream, other.stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
accessible,
|
||||
exists,
|
||||
id,
|
||||
key,
|
||||
indexes,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataPart.class,
|
||||
"accessible", accessible,
|
||||
"exists", exists,
|
||||
"id", id,
|
||||
"key", key,
|
||||
"indexes", indexes,
|
||||
"duration", duration,
|
||||
"file", file,
|
||||
"size", size,
|
||||
"container", container,
|
||||
"videoProfile", videoProfile,
|
||||
"stream", stream);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Boolean> accessible = Optional.empty();
|
||||
|
||||
private Optional<Boolean> exists = Optional.empty();
|
||||
|
||||
private Long id;
|
||||
|
||||
private String key;
|
||||
|
||||
private Optional<String> indexes = Optional.empty();
|
||||
|
||||
private Long duration;
|
||||
|
||||
private String file;
|
||||
|
||||
private Long size;
|
||||
|
||||
private String container;
|
||||
|
||||
private String videoProfile;
|
||||
|
||||
private List<GetMediaMetaDataStream> stream;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public Builder accessible(boolean accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = Optional.ofNullable(accessible);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public Builder accessible(Optional<Boolean> accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = accessible;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public Builder exists(boolean exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = Optional.ofNullable(exists);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public Builder exists(Optional<Boolean> exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = exists;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique part identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Key to access this part.
|
||||
*/
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
public Builder duration(long duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File path for the part.
|
||||
*/
|
||||
public Builder file(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* File size in bytes.
|
||||
*/
|
||||
public Builder size(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public Builder stream(List<GetMediaMetaDataStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataPart build() {
|
||||
return new GetMediaMetaDataPart(
|
||||
accessible,
|
||||
exists,
|
||||
id,
|
||||
key,
|
||||
indexes,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,876 @@
|
||||
/*
|
||||
* 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.Boolean;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMediaMetaDataRequest {
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")
|
||||
private long ratingKey;
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeConcerts")
|
||||
private Optional<Boolean> includeConcerts;
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExtras")
|
||||
private Optional<Boolean> includeExtras;
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeOnDeck")
|
||||
private Optional<Boolean> includeOnDeck;
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includePopularLeaves")
|
||||
private Optional<Boolean> includePopularLeaves;
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includePreferences")
|
||||
private Optional<Boolean> includePreferences;
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeReviews")
|
||||
private Optional<Boolean> includeReviews;
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeChapters")
|
||||
private Optional<Boolean> includeChapters;
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeStations")
|
||||
private Optional<Boolean> includeStations;
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExternalMedia")
|
||||
private Optional<Boolean> includeExternalMedia;
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncAugmentMetadata")
|
||||
private Optional<Boolean> asyncAugmentMetadata;
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncCheckFiles")
|
||||
private Optional<Boolean> asyncCheckFiles;
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncRefreshAnalysis")
|
||||
private Optional<Boolean> asyncRefreshAnalysis;
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncRefreshLocalMediaAgent")
|
||||
private Optional<Boolean> asyncRefreshLocalMediaAgent;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataRequest(
|
||||
long ratingKey,
|
||||
Optional<Boolean> includeConcerts,
|
||||
Optional<Boolean> includeExtras,
|
||||
Optional<Boolean> includeOnDeck,
|
||||
Optional<Boolean> includePopularLeaves,
|
||||
Optional<Boolean> includePreferences,
|
||||
Optional<Boolean> includeReviews,
|
||||
Optional<Boolean> includeChapters,
|
||||
Optional<Boolean> includeStations,
|
||||
Optional<Boolean> includeExternalMedia,
|
||||
Optional<Boolean> asyncAugmentMetadata,
|
||||
Optional<Boolean> asyncCheckFiles,
|
||||
Optional<Boolean> asyncRefreshAnalysis,
|
||||
Optional<Boolean> asyncRefreshLocalMediaAgent) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
Utils.checkNotNull(includeConcerts, "includeConcerts");
|
||||
Utils.checkNotNull(includeExtras, "includeExtras");
|
||||
Utils.checkNotNull(includeOnDeck, "includeOnDeck");
|
||||
Utils.checkNotNull(includePopularLeaves, "includePopularLeaves");
|
||||
Utils.checkNotNull(includePreferences, "includePreferences");
|
||||
Utils.checkNotNull(includeReviews, "includeReviews");
|
||||
Utils.checkNotNull(includeChapters, "includeChapters");
|
||||
Utils.checkNotNull(includeStations, "includeStations");
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
Utils.checkNotNull(asyncAugmentMetadata, "asyncAugmentMetadata");
|
||||
Utils.checkNotNull(asyncCheckFiles, "asyncCheckFiles");
|
||||
Utils.checkNotNull(asyncRefreshAnalysis, "asyncRefreshAnalysis");
|
||||
Utils.checkNotNull(asyncRefreshLocalMediaAgent, "asyncRefreshLocalMediaAgent");
|
||||
this.ratingKey = ratingKey;
|
||||
this.includeConcerts = includeConcerts;
|
||||
this.includeExtras = includeExtras;
|
||||
this.includeOnDeck = includeOnDeck;
|
||||
this.includePopularLeaves = includePopularLeaves;
|
||||
this.includePreferences = includePreferences;
|
||||
this.includeReviews = includeReviews;
|
||||
this.includeChapters = includeChapters;
|
||||
this.includeStations = includeStations;
|
||||
this.includeExternalMedia = includeExternalMedia;
|
||||
this.asyncAugmentMetadata = asyncAugmentMetadata;
|
||||
this.asyncCheckFiles = asyncCheckFiles;
|
||||
this.asyncRefreshAnalysis = asyncRefreshAnalysis;
|
||||
this.asyncRefreshLocalMediaAgent = asyncRefreshLocalMediaAgent;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataRequest(
|
||||
long ratingKey) {
|
||||
this(ratingKey, 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());
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long ratingKey() {
|
||||
return ratingKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeConcerts() {
|
||||
return includeConcerts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeExtras() {
|
||||
return includeExtras;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeOnDeck() {
|
||||
return includeOnDeck;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includePopularLeaves() {
|
||||
return includePopularLeaves;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includePreferences() {
|
||||
return includePreferences;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeReviews() {
|
||||
return includeReviews;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeChapters() {
|
||||
return includeChapters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeStations() {
|
||||
return includeStations;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> includeExternalMedia() {
|
||||
return includeExternalMedia;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> asyncAugmentMetadata() {
|
||||
return asyncAugmentMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> asyncCheckFiles() {
|
||||
return asyncCheckFiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> asyncRefreshAnalysis() {
|
||||
return asyncRefreshAnalysis;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> asyncRefreshLocalMediaAgent() {
|
||||
return asyncRefreshLocalMediaAgent;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withRatingKey(long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeConcerts(boolean includeConcerts) {
|
||||
Utils.checkNotNull(includeConcerts, "includeConcerts");
|
||||
this.includeConcerts = Optional.ofNullable(includeConcerts);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeConcerts(Optional<Boolean> includeConcerts) {
|
||||
Utils.checkNotNull(includeConcerts, "includeConcerts");
|
||||
this.includeConcerts = includeConcerts;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeExtras(boolean includeExtras) {
|
||||
Utils.checkNotNull(includeExtras, "includeExtras");
|
||||
this.includeExtras = Optional.ofNullable(includeExtras);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeExtras(Optional<Boolean> includeExtras) {
|
||||
Utils.checkNotNull(includeExtras, "includeExtras");
|
||||
this.includeExtras = includeExtras;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeOnDeck(boolean includeOnDeck) {
|
||||
Utils.checkNotNull(includeOnDeck, "includeOnDeck");
|
||||
this.includeOnDeck = Optional.ofNullable(includeOnDeck);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeOnDeck(Optional<Boolean> includeOnDeck) {
|
||||
Utils.checkNotNull(includeOnDeck, "includeOnDeck");
|
||||
this.includeOnDeck = includeOnDeck;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludePopularLeaves(boolean includePopularLeaves) {
|
||||
Utils.checkNotNull(includePopularLeaves, "includePopularLeaves");
|
||||
this.includePopularLeaves = Optional.ofNullable(includePopularLeaves);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludePopularLeaves(Optional<Boolean> includePopularLeaves) {
|
||||
Utils.checkNotNull(includePopularLeaves, "includePopularLeaves");
|
||||
this.includePopularLeaves = includePopularLeaves;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludePreferences(boolean includePreferences) {
|
||||
Utils.checkNotNull(includePreferences, "includePreferences");
|
||||
this.includePreferences = Optional.ofNullable(includePreferences);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludePreferences(Optional<Boolean> includePreferences) {
|
||||
Utils.checkNotNull(includePreferences, "includePreferences");
|
||||
this.includePreferences = includePreferences;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeReviews(boolean includeReviews) {
|
||||
Utils.checkNotNull(includeReviews, "includeReviews");
|
||||
this.includeReviews = Optional.ofNullable(includeReviews);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeReviews(Optional<Boolean> includeReviews) {
|
||||
Utils.checkNotNull(includeReviews, "includeReviews");
|
||||
this.includeReviews = includeReviews;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeChapters(boolean includeChapters) {
|
||||
Utils.checkNotNull(includeChapters, "includeChapters");
|
||||
this.includeChapters = Optional.ofNullable(includeChapters);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeChapters(Optional<Boolean> includeChapters) {
|
||||
Utils.checkNotNull(includeChapters, "includeChapters");
|
||||
this.includeChapters = includeChapters;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeStations(boolean includeStations) {
|
||||
Utils.checkNotNull(includeStations, "includeStations");
|
||||
this.includeStations = Optional.ofNullable(includeStations);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeStations(Optional<Boolean> includeStations) {
|
||||
Utils.checkNotNull(includeStations, "includeStations");
|
||||
this.includeStations = includeStations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeExternalMedia(boolean includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = Optional.ofNullable(includeExternalMedia);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withIncludeExternalMedia(Optional<Boolean> includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = includeExternalMedia;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncAugmentMetadata(boolean asyncAugmentMetadata) {
|
||||
Utils.checkNotNull(asyncAugmentMetadata, "asyncAugmentMetadata");
|
||||
this.asyncAugmentMetadata = Optional.ofNullable(asyncAugmentMetadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncAugmentMetadata(Optional<Boolean> asyncAugmentMetadata) {
|
||||
Utils.checkNotNull(asyncAugmentMetadata, "asyncAugmentMetadata");
|
||||
this.asyncAugmentMetadata = asyncAugmentMetadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncCheckFiles(boolean asyncCheckFiles) {
|
||||
Utils.checkNotNull(asyncCheckFiles, "asyncCheckFiles");
|
||||
this.asyncCheckFiles = Optional.ofNullable(asyncCheckFiles);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncCheckFiles(Optional<Boolean> asyncCheckFiles) {
|
||||
Utils.checkNotNull(asyncCheckFiles, "asyncCheckFiles");
|
||||
this.asyncCheckFiles = asyncCheckFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncRefreshAnalysis(boolean asyncRefreshAnalysis) {
|
||||
Utils.checkNotNull(asyncRefreshAnalysis, "asyncRefreshAnalysis");
|
||||
this.asyncRefreshAnalysis = Optional.ofNullable(asyncRefreshAnalysis);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncRefreshAnalysis(Optional<Boolean> asyncRefreshAnalysis) {
|
||||
Utils.checkNotNull(asyncRefreshAnalysis, "asyncRefreshAnalysis");
|
||||
this.asyncRefreshAnalysis = asyncRefreshAnalysis;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncRefreshLocalMediaAgent(boolean asyncRefreshLocalMediaAgent) {
|
||||
Utils.checkNotNull(asyncRefreshLocalMediaAgent, "asyncRefreshLocalMediaAgent");
|
||||
this.asyncRefreshLocalMediaAgent = Optional.ofNullable(asyncRefreshLocalMediaAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withAsyncRefreshLocalMediaAgent(Optional<Boolean> asyncRefreshLocalMediaAgent) {
|
||||
Utils.checkNotNull(asyncRefreshLocalMediaAgent, "asyncRefreshLocalMediaAgent");
|
||||
this.asyncRefreshLocalMediaAgent = asyncRefreshLocalMediaAgent;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataRequest other = (GetMediaMetaDataRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.ratingKey, other.ratingKey) &&
|
||||
Objects.deepEquals(this.includeConcerts, other.includeConcerts) &&
|
||||
Objects.deepEquals(this.includeExtras, other.includeExtras) &&
|
||||
Objects.deepEquals(this.includeOnDeck, other.includeOnDeck) &&
|
||||
Objects.deepEquals(this.includePopularLeaves, other.includePopularLeaves) &&
|
||||
Objects.deepEquals(this.includePreferences, other.includePreferences) &&
|
||||
Objects.deepEquals(this.includeReviews, other.includeReviews) &&
|
||||
Objects.deepEquals(this.includeChapters, other.includeChapters) &&
|
||||
Objects.deepEquals(this.includeStations, other.includeStations) &&
|
||||
Objects.deepEquals(this.includeExternalMedia, other.includeExternalMedia) &&
|
||||
Objects.deepEquals(this.asyncAugmentMetadata, other.asyncAugmentMetadata) &&
|
||||
Objects.deepEquals(this.asyncCheckFiles, other.asyncCheckFiles) &&
|
||||
Objects.deepEquals(this.asyncRefreshAnalysis, other.asyncRefreshAnalysis) &&
|
||||
Objects.deepEquals(this.asyncRefreshLocalMediaAgent, other.asyncRefreshLocalMediaAgent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
ratingKey,
|
||||
includeConcerts,
|
||||
includeExtras,
|
||||
includeOnDeck,
|
||||
includePopularLeaves,
|
||||
includePreferences,
|
||||
includeReviews,
|
||||
includeChapters,
|
||||
includeStations,
|
||||
includeExternalMedia,
|
||||
asyncAugmentMetadata,
|
||||
asyncCheckFiles,
|
||||
asyncRefreshAnalysis,
|
||||
asyncRefreshLocalMediaAgent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataRequest.class,
|
||||
"ratingKey", ratingKey,
|
||||
"includeConcerts", includeConcerts,
|
||||
"includeExtras", includeExtras,
|
||||
"includeOnDeck", includeOnDeck,
|
||||
"includePopularLeaves", includePopularLeaves,
|
||||
"includePreferences", includePreferences,
|
||||
"includeReviews", includeReviews,
|
||||
"includeChapters", includeChapters,
|
||||
"includeStations", includeStations,
|
||||
"includeExternalMedia", includeExternalMedia,
|
||||
"asyncAugmentMetadata", asyncAugmentMetadata,
|
||||
"asyncCheckFiles", asyncCheckFiles,
|
||||
"asyncRefreshAnalysis", asyncRefreshAnalysis,
|
||||
"asyncRefreshLocalMediaAgent", asyncRefreshLocalMediaAgent);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long ratingKey;
|
||||
|
||||
private Optional<Boolean> includeConcerts = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeExtras = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeOnDeck = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includePopularLeaves = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includePreferences = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeReviews = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeChapters = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeStations = Optional.empty();
|
||||
|
||||
private Optional<Boolean> includeExternalMedia = Optional.empty();
|
||||
|
||||
private Optional<Boolean> asyncAugmentMetadata = Optional.empty();
|
||||
|
||||
private Optional<Boolean> asyncCheckFiles = Optional.empty();
|
||||
|
||||
private Optional<Boolean> asyncRefreshAnalysis = Optional.empty();
|
||||
|
||||
private Optional<Boolean> asyncRefreshLocalMediaAgent = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
public Builder ratingKey(long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
public Builder includeConcerts(boolean includeConcerts) {
|
||||
Utils.checkNotNull(includeConcerts, "includeConcerts");
|
||||
this.includeConcerts = Optional.ofNullable(includeConcerts);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
*/
|
||||
public Builder includeConcerts(Optional<Boolean> includeConcerts) {
|
||||
Utils.checkNotNull(includeConcerts, "includeConcerts");
|
||||
this.includeConcerts = includeConcerts;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
public Builder includeExtras(boolean includeExtras) {
|
||||
Utils.checkNotNull(includeExtras, "includeExtras");
|
||||
this.includeExtras = Optional.ofNullable(includeExtras);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include extra content (e.g. bonus features).
|
||||
*/
|
||||
public Builder includeExtras(Optional<Boolean> includeExtras) {
|
||||
Utils.checkNotNull(includeExtras, "includeExtras");
|
||||
this.includeExtras = includeExtras;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
public Builder includeOnDeck(boolean includeOnDeck) {
|
||||
Utils.checkNotNull(includeOnDeck, "includeOnDeck");
|
||||
this.includeOnDeck = Optional.ofNullable(includeOnDeck);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include on-deck items.
|
||||
*/
|
||||
public Builder includeOnDeck(Optional<Boolean> includeOnDeck) {
|
||||
Utils.checkNotNull(includeOnDeck, "includeOnDeck");
|
||||
this.includeOnDeck = includeOnDeck;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
public Builder includePopularLeaves(boolean includePopularLeaves) {
|
||||
Utils.checkNotNull(includePopularLeaves, "includePopularLeaves");
|
||||
this.includePopularLeaves = Optional.ofNullable(includePopularLeaves);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include popular leaves (episodes/chapters).
|
||||
*/
|
||||
public Builder includePopularLeaves(Optional<Boolean> includePopularLeaves) {
|
||||
Utils.checkNotNull(includePopularLeaves, "includePopularLeaves");
|
||||
this.includePopularLeaves = includePopularLeaves;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
public Builder includePreferences(boolean includePreferences) {
|
||||
Utils.checkNotNull(includePreferences, "includePreferences");
|
||||
this.includePreferences = Optional.ofNullable(includePreferences);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include preferences information.
|
||||
*/
|
||||
public Builder includePreferences(Optional<Boolean> includePreferences) {
|
||||
Utils.checkNotNull(includePreferences, "includePreferences");
|
||||
this.includePreferences = includePreferences;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
public Builder includeReviews(boolean includeReviews) {
|
||||
Utils.checkNotNull(includeReviews, "includeReviews");
|
||||
this.includeReviews = Optional.ofNullable(includeReviews);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include reviews for the content.
|
||||
*/
|
||||
public Builder includeReviews(Optional<Boolean> includeReviews) {
|
||||
Utils.checkNotNull(includeReviews, "includeReviews");
|
||||
this.includeReviews = includeReviews;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
public Builder includeChapters(boolean includeChapters) {
|
||||
Utils.checkNotNull(includeChapters, "includeChapters");
|
||||
this.includeChapters = Optional.ofNullable(includeChapters);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include chapter details.
|
||||
*/
|
||||
public Builder includeChapters(Optional<Boolean> includeChapters) {
|
||||
Utils.checkNotNull(includeChapters, "includeChapters");
|
||||
this.includeChapters = includeChapters;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
public Builder includeStations(boolean includeStations) {
|
||||
Utils.checkNotNull(includeStations, "includeStations");
|
||||
this.includeStations = Optional.ofNullable(includeStations);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include station data.
|
||||
*/
|
||||
public Builder includeStations(Optional<Boolean> includeStations) {
|
||||
Utils.checkNotNull(includeStations, "includeStations");
|
||||
this.includeStations = includeStations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
public Builder includeExternalMedia(boolean includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = Optional.ofNullable(includeExternalMedia);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include external media data.
|
||||
*/
|
||||
public Builder includeExternalMedia(Optional<Boolean> includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = includeExternalMedia;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
public Builder asyncAugmentMetadata(boolean asyncAugmentMetadata) {
|
||||
Utils.checkNotNull(asyncAugmentMetadata, "asyncAugmentMetadata");
|
||||
this.asyncAugmentMetadata = Optional.ofNullable(asyncAugmentMetadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous metadata augmentation.
|
||||
*/
|
||||
public Builder asyncAugmentMetadata(Optional<Boolean> asyncAugmentMetadata) {
|
||||
Utils.checkNotNull(asyncAugmentMetadata, "asyncAugmentMetadata");
|
||||
this.asyncAugmentMetadata = asyncAugmentMetadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
public Builder asyncCheckFiles(boolean asyncCheckFiles) {
|
||||
Utils.checkNotNull(asyncCheckFiles, "asyncCheckFiles");
|
||||
this.asyncCheckFiles = Optional.ofNullable(asyncCheckFiles);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous file checking.
|
||||
*/
|
||||
public Builder asyncCheckFiles(Optional<Boolean> asyncCheckFiles) {
|
||||
Utils.checkNotNull(asyncCheckFiles, "asyncCheckFiles");
|
||||
this.asyncCheckFiles = asyncCheckFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
public Builder asyncRefreshAnalysis(boolean asyncRefreshAnalysis) {
|
||||
Utils.checkNotNull(asyncRefreshAnalysis, "asyncRefreshAnalysis");
|
||||
this.asyncRefreshAnalysis = Optional.ofNullable(asyncRefreshAnalysis);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of analysis.
|
||||
*/
|
||||
public Builder asyncRefreshAnalysis(Optional<Boolean> asyncRefreshAnalysis) {
|
||||
Utils.checkNotNull(asyncRefreshAnalysis, "asyncRefreshAnalysis");
|
||||
this.asyncRefreshAnalysis = asyncRefreshAnalysis;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
public Builder asyncRefreshLocalMediaAgent(boolean asyncRefreshLocalMediaAgent) {
|
||||
Utils.checkNotNull(asyncRefreshLocalMediaAgent, "asyncRefreshLocalMediaAgent");
|
||||
this.asyncRefreshLocalMediaAgent = Optional.ofNullable(asyncRefreshLocalMediaAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trigger asynchronous refresh of the local media agent.
|
||||
*/
|
||||
public Builder asyncRefreshLocalMediaAgent(Optional<Boolean> asyncRefreshLocalMediaAgent) {
|
||||
Utils.checkNotNull(asyncRefreshLocalMediaAgent, "asyncRefreshLocalMediaAgent");
|
||||
this.asyncRefreshLocalMediaAgent = asyncRefreshLocalMediaAgent;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataRequest build() {
|
||||
return new GetMediaMetaDataRequest(
|
||||
ratingKey,
|
||||
includeConcerts,
|
||||
includeExtras,
|
||||
includeOnDeck,
|
||||
includePopularLeaves,
|
||||
includePreferences,
|
||||
includeReviews,
|
||||
includeChapters,
|
||||
includeStations,
|
||||
includeExternalMedia,
|
||||
asyncAugmentMetadata,
|
||||
asyncCheckFiles,
|
||||
asyncRefreshAnalysis,
|
||||
asyncRefreshLocalMediaAgent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 GetMediaMetaDataRequestBuilder {
|
||||
|
||||
private GetMediaMetaDataRequest request;
|
||||
private final SDKMethodInterfaces.MethodCallGetMediaMetaData sdk;
|
||||
|
||||
public GetMediaMetaDataRequestBuilder(SDKMethodInterfaces.MethodCallGetMediaMetaData sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataRequestBuilder request(GetMediaMetaDataRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataResponse call() throws Exception {
|
||||
|
||||
return sdk.getMediaMetaData(
|
||||
request);
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
public class GetMediaMetaDataResponse implements Response {
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
@@ -39,14 +39,14 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* The metadata of the library item.
|
||||
*/
|
||||
private Optional<? extends GetMetaDataByRatingKeyResponseBody> object;
|
||||
private Optional<? extends GetMediaMetaDataResponseBody> object;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyResponse(
|
||||
public GetMediaMetaDataResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse,
|
||||
Optional<? extends GetMetaDataByRatingKeyResponseBody> object) {
|
||||
Optional<? extends GetMediaMetaDataResponseBody> object) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -57,7 +57,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponse(
|
||||
public GetMediaMetaDataResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse) {
|
||||
@@ -93,8 +93,8 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetMetaDataByRatingKeyResponseBody> object() {
|
||||
return (Optional<GetMetaDataByRatingKeyResponseBody>) object;
|
||||
public Optional<GetMediaMetaDataResponseBody> object() {
|
||||
return (Optional<GetMediaMetaDataResponseBody>) object;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -104,7 +104,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public GetMetaDataByRatingKeyResponse withContentType(String contentType) {
|
||||
public GetMediaMetaDataResponse withContentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
@@ -113,7 +113,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public GetMetaDataByRatingKeyResponse withStatusCode(int statusCode) {
|
||||
public GetMediaMetaDataResponse withStatusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
@@ -122,7 +122,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetMetaDataByRatingKeyResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetMediaMetaDataResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -131,7 +131,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* The metadata of the library item.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyResponse withObject(GetMetaDataByRatingKeyResponseBody object) {
|
||||
public GetMediaMetaDataResponse withObject(GetMediaMetaDataResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
@@ -140,7 +140,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* The metadata of the library item.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyResponse withObject(Optional<? extends GetMetaDataByRatingKeyResponseBody> object) {
|
||||
public GetMediaMetaDataResponse withObject(Optional<? extends GetMediaMetaDataResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
@@ -154,7 +154,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyResponse other = (GetMetaDataByRatingKeyResponse) o;
|
||||
GetMediaMetaDataResponse other = (GetMediaMetaDataResponse) o;
|
||||
return
|
||||
Objects.deepEquals(this.contentType, other.contentType) &&
|
||||
Objects.deepEquals(this.statusCode, other.statusCode) &&
|
||||
@@ -173,7 +173,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyResponse.class,
|
||||
return Utils.toString(GetMediaMetaDataResponse.class,
|
||||
"contentType", contentType,
|
||||
"statusCode", statusCode,
|
||||
"rawResponse", rawResponse,
|
||||
@@ -188,7 +188,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
|
||||
private HttpResponse<InputStream> rawResponse;
|
||||
|
||||
private Optional<? extends GetMetaDataByRatingKeyResponseBody> object = Optional.empty();
|
||||
private Optional<? extends GetMediaMetaDataResponseBody> object = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -224,7 +224,7 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* The metadata of the library item.
|
||||
*/
|
||||
public Builder object(GetMetaDataByRatingKeyResponseBody object) {
|
||||
public Builder object(GetMediaMetaDataResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
@@ -233,14 +233,14 @@ public class GetMetaDataByRatingKeyResponse implements Response {
|
||||
/**
|
||||
* The metadata of the library item.
|
||||
*/
|
||||
public Builder object(Optional<? extends GetMetaDataByRatingKeyResponseBody> object) {
|
||||
public Builder object(Optional<? extends GetMediaMetaDataResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponse build() {
|
||||
return new GetMetaDataByRatingKeyResponse(
|
||||
public GetMediaMetaDataResponse build() {
|
||||
return new GetMediaMetaDataResponse(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
* GetMediaMetaDataResponseBody - The metadata of the library item.
|
||||
*/
|
||||
|
||||
public class GetMediaMetaDataResponseBody {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("MediaContainer")
|
||||
private Optional<? extends GetMediaMetaDataMediaContainer> mediaContainer;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetMediaMetaDataMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataResponseBody() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetMediaMetaDataMediaContainer> mediaContainer() {
|
||||
return (Optional<GetMediaMetaDataMediaContainer>) mediaContainer;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMediaMetaDataResponseBody withMediaContainer(GetMediaMetaDataMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataResponseBody withMediaContainer(Optional<? extends GetMediaMetaDataMediaContainer> 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;
|
||||
}
|
||||
GetMediaMetaDataResponseBody other = (GetMediaMetaDataResponseBody) o;
|
||||
return
|
||||
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataResponseBody.class,
|
||||
"mediaContainer", mediaContainer);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends GetMediaMetaDataMediaContainer> mediaContainer = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder mediaContainer(GetMediaMetaDataMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaContainer(Optional<? extends GetMediaMetaDataMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataResponseBody build() {
|
||||
return new GetMediaMetaDataResponseBody(
|
||||
mediaContainer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,45 +11,59 @@ 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.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyRole {
|
||||
public class GetMediaMetaDataRole {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private long id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyRole(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
public GetMediaMetaDataRole(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -66,35 +80,57 @@ public class GetMetaDataByRatingKeyRole {
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetMediaMetaDataRole(
|
||||
long id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
@@ -104,73 +140,73 @@ public class GetMetaDataByRatingKeyRole {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withId(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public GetMediaMetaDataRole withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withFilter(Optional<String> filter) {
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public GetMediaMetaDataRole withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withTag(Optional<String> tag) {
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public GetMediaMetaDataRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withTagKey(Optional<String> tagKey) {
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public GetMediaMetaDataRole withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withRole(String role) {
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataRole withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withRole(Optional<String> role) {
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataRole withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withThumb(String thumb) {
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataRole withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole withThumb(Optional<String> thumb) {
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataRole withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
@@ -184,7 +220,7 @@ public class GetMetaDataByRatingKeyRole {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyRole other = (GetMetaDataByRatingKeyRole) o;
|
||||
GetMediaMetaDataRole other = (GetMediaMetaDataRole) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
@@ -207,7 +243,7 @@ public class GetMetaDataByRatingKeyRole {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyRole.class,
|
||||
return Utils.toString(GetMediaMetaDataRole.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
@@ -218,13 +254,13 @@ public class GetMetaDataByRatingKeyRole {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
@@ -234,80 +270,80 @@ public class GetMetaDataByRatingKeyRole {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRole build() {
|
||||
return new GetMetaDataByRatingKeyRole(
|
||||
public GetMediaMetaDataRole build() {
|
||||
return new GetMediaMetaDataRole(
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,224 @@
|
||||
/*
|
||||
* 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 GetMediaMetaDataUltraBlurColors {
|
||||
|
||||
/**
|
||||
* The top-left color value.
|
||||
*/
|
||||
@JsonProperty("topLeft")
|
||||
private String topLeft;
|
||||
|
||||
/**
|
||||
* The top-right color value.
|
||||
*/
|
||||
@JsonProperty("topRight")
|
||||
private String topRight;
|
||||
|
||||
/**
|
||||
* The bottom-right color value.
|
||||
*/
|
||||
@JsonProperty("bottomRight")
|
||||
private String bottomRight;
|
||||
|
||||
/**
|
||||
* The bottom-left color value.
|
||||
*/
|
||||
@JsonProperty("bottomLeft")
|
||||
private String bottomLeft;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataUltraBlurColors(
|
||||
@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;
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-left color value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String topLeft() {
|
||||
return topLeft;
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-right color value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String topRight() {
|
||||
return topRight;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-right color value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String bottomRight() {
|
||||
return bottomRight;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-left color value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String bottomLeft() {
|
||||
return bottomLeft;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-left color value.
|
||||
*/
|
||||
public GetMediaMetaDataUltraBlurColors withTopLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-right color value.
|
||||
*/
|
||||
public GetMediaMetaDataUltraBlurColors withTopRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-right color value.
|
||||
*/
|
||||
public GetMediaMetaDataUltraBlurColors withBottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-left color value.
|
||||
*/
|
||||
public GetMediaMetaDataUltraBlurColors 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;
|
||||
}
|
||||
GetMediaMetaDataUltraBlurColors other = (GetMediaMetaDataUltraBlurColors) 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(GetMediaMetaDataUltraBlurColors.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
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-left color value.
|
||||
*/
|
||||
public Builder topLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The top-right color value.
|
||||
*/
|
||||
public Builder topRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-right color value.
|
||||
*/
|
||||
public Builder bottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bottom-left color value.
|
||||
*/
|
||||
public Builder bottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataUltraBlurColors build() {
|
||||
return new GetMediaMetaDataUltraBlurColors(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
bottomLeft);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,78 +11,126 @@ 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.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyWriter {
|
||||
public class GetMediaMetaDataWriter {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private long id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyWriter(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
public GetMediaMetaDataWriter(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetMediaMetaDataWriter(
|
||||
long id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
@@ -92,61 +140,73 @@ public class GetMetaDataByRatingKeyWriter {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withId(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withFilter(Optional<String> filter) {
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withTag(Optional<String> tag) {
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withTagKey(Optional<String> tagKey) {
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withThumb(String thumb) {
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter withThumb(Optional<String> thumb) {
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
@@ -160,12 +220,13 @@ public class GetMetaDataByRatingKeyWriter {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyWriter other = (GetMetaDataByRatingKeyWriter) o;
|
||||
GetMediaMetaDataWriter other = (GetMediaMetaDataWriter) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb);
|
||||
}
|
||||
|
||||
@@ -176,28 +237,32 @@ public class GetMetaDataByRatingKeyWriter {
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyWriter.class,
|
||||
return Utils.toString(GetMediaMetaDataWriter.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role,
|
||||
"thumb", thumb);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -205,72 +270,85 @@ public class GetMetaDataByRatingKeyWriter {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyWriter build() {
|
||||
return new GetMetaDataByRatingKeyWriter(
|
||||
public GetMediaMetaDataWriter build() {
|
||||
return new GetMediaMetaDataWriter(
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
}
|
||||
@@ -1,194 +0,0 @@
|
||||
/*
|
||||
* 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyCountry {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyCountry(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyCountry 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;
|
||||
}
|
||||
GetMetaDataByRatingKeyCountry other = (GetMetaDataByRatingKeyCountry) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyCountry.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
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 GetMetaDataByRatingKeyCountry build() {
|
||||
return new GetMetaDataByRatingKeyCountry(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,194 +0,0 @@
|
||||
/*
|
||||
* 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyGenre {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyGenre(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyGenre 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;
|
||||
}
|
||||
GetMetaDataByRatingKeyGenre other = (GetMetaDataByRatingKeyGenre) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyGenre.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
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 GetMetaDataByRatingKeyGenre build() {
|
||||
return new GetMetaDataByRatingKeyGenre(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,787 +0,0 @@
|
||||
/*
|
||||
* 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.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;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyMedia {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Integer> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("bitrate")
|
||||
private Optional<Integer> bitrate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("width")
|
||||
private Optional<Integer> width;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("height")
|
||||
private Optional<Integer> height;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("aspectRatio")
|
||||
private Optional<Double> aspectRatio;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioChannels")
|
||||
private Optional<Integer> 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<String> 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<Integer> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@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<GetMetaDataByRatingKeyPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyMedia(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("duration") Optional<Integer> duration,
|
||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||
@JsonProperty("width") Optional<Integer> width,
|
||||
@JsonProperty("height") Optional<Integer> height,
|
||||
@JsonProperty("aspectRatio") Optional<Double> aspectRatio,
|
||||
@JsonProperty("audioChannels") Optional<Integer> audioChannels,
|
||||
@JsonProperty("audioCodec") Optional<String> audioCodec,
|
||||
@JsonProperty("videoCodec") Optional<String> videoCodec,
|
||||
@JsonProperty("videoResolution") Optional<String> videoResolution,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Integer> optimizedForStreaming,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Part") Optional<? extends List<GetMetaDataByRatingKeyPart>> 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(audioProfile, "audioProfile");
|
||||
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.audioProfile = audioProfile;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.videoProfile = videoProfile;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia() {
|
||||
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(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMetaDataByRatingKeyPart>> part() {
|
||||
return (Optional<List<GetMetaDataByRatingKeyPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withBitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withBitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withWidth(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withWidth(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withHeight(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withHeight(Optional<Integer> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioChannels(Optional<Integer> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withOptimizedForStreaming(int optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withOptimizedForStreaming(Optional<Integer> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withPart(List<GetMetaDataByRatingKeyPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia withPart(Optional<? extends List<GetMetaDataByRatingKeyPart>> 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;
|
||||
}
|
||||
GetMetaDataByRatingKeyMedia other = (GetMetaDataByRatingKeyMedia) 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.audioProfile, other.audioProfile) &&
|
||||
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,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyMedia.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,
|
||||
"audioProfile", audioProfile,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"videoProfile", videoProfile,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
|
||||
private Optional<Integer> duration = Optional.empty();
|
||||
|
||||
private Optional<Integer> bitrate = Optional.empty();
|
||||
|
||||
private Optional<Integer> width = Optional.empty();
|
||||
|
||||
private Optional<Integer> height = Optional.empty();
|
||||
|
||||
private Optional<Double> aspectRatio = Optional.empty();
|
||||
|
||||
private Optional<Integer> audioChannels = Optional.empty();
|
||||
|
||||
private Optional<String> audioCodec = Optional.empty();
|
||||
|
||||
private Optional<String> videoCodec = Optional.empty();
|
||||
|
||||
private Optional<String> videoResolution = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<String> videoFrameRate = Optional.empty();
|
||||
|
||||
private Optional<Integer> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(Optional<Integer> 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(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(Optional<Integer> 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(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(Optional<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(int optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder optimizedForStreaming(Optional<Integer> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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<GetMetaDataByRatingKeyPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(Optional<? extends List<GetMetaDataByRatingKeyPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMedia build() {
|
||||
return new GetMetaDataByRatingKeyMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
optimizedForStreaming,
|
||||
audioProfile,
|
||||
has64bitOffsets,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,450 +0,0 @@
|
||||
/*
|
||||
* 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.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;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Integer> 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("librarySectionID")
|
||||
private Optional<Integer> librarySectionID;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionTitle")
|
||||
private Optional<String> librarySectionTitle;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("librarySectionUUID")
|
||||
private Optional<String> librarySectionUUID;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private Optional<String> mediaTagPrefix;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private Optional<Integer> mediaTagVersion;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyMetadata>> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyMediaContainer(
|
||||
@JsonProperty("size") Optional<Integer> size,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
|
||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||
@JsonProperty("librarySectionUUID") Optional<String> librarySectionUUID,
|
||||
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") Optional<Integer> mediaTagVersion,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetMetaDataByRatingKeyMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.identifier = identifier;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> librarySectionID() {
|
||||
return librarySectionID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> librarySectionTitle() {
|
||||
return librarySectionTitle;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> librarySectionUUID() {
|
||||
return librarySectionUUID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMetaDataByRatingKeyMetadata>> metadata() {
|
||||
return (Optional<List<GetMetaDataByRatingKeyMetadata>>) metadata;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withSize(Optional<Integer> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withIdentifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionID(int librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = Optional.ofNullable(librarySectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionID(Optional<Integer> librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionTitle(Optional<String> librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionUUID(String librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = Optional.ofNullable(librarySectionUUID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withLibrarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMediaTagVersion(int mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMediaTagVersion(Optional<Integer> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMetadata(List<GetMetaDataByRatingKeyMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer withMetadata(Optional<? extends List<GetMetaDataByRatingKeyMetadata>> 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;
|
||||
}
|
||||
GetMetaDataByRatingKeyMediaContainer other = (GetMetaDataByRatingKeyMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionUUID,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyMediaContainer.class,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"identifier", identifier,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionUUID", librarySectionUUID,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> size = Optional.empty();
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
|
||||
private Optional<Integer> librarySectionID = Optional.empty();
|
||||
|
||||
private Optional<String> librarySectionTitle = Optional.empty();
|
||||
|
||||
private Optional<String> librarySectionUUID = Optional.empty();
|
||||
|
||||
private Optional<String> mediaTagPrefix = Optional.empty();
|
||||
|
||||
private Optional<Integer> mediaTagVersion = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyMetadata>> metadata = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder size(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Integer> 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 librarySectionID(int librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = Optional.ofNullable(librarySectionID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionID(Optional<Integer> 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 librarySectionUUID(String librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = Optional.ofNullable(librarySectionUUID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder librarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
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(int mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(Optional<Integer> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(List<GetMetaDataByRatingKeyMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(Optional<? extends List<GetMetaDataByRatingKeyMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMediaContainer build() {
|
||||
return new GetMetaDataByRatingKeyMediaContainer(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionUUID,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
metadata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,534 +0,0 @@
|
||||
/*
|
||||
* 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.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;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Integer> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("file")
|
||||
private Optional<String> file;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Integer> size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@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("optimizedForStreaming")
|
||||
private Optional<Boolean> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyStream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyPart(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("duration") Optional<Integer> duration,
|
||||
@JsonProperty("file") Optional<String> file,
|
||||
@JsonProperty("size") Optional<Integer> size,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("optimizedForStreaming") Optional<Boolean> optimizedForStreaming,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Stream") Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.audioProfile = audioProfile;
|
||||
this.container = container;
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
this.videoProfile = videoProfile;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart() {
|
||||
this(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<Integer> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> has64bitOffsets() {
|
||||
return has64bitOffsets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> optimizedForStreaming() {
|
||||
return optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMetaDataByRatingKeyStream>> stream() {
|
||||
return (Optional<List<GetMetaDataByRatingKeyStream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withFile(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withSize(Optional<Integer> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withOptimizedForStreaming(boolean optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withOptimizedForStreaming(Optional<Boolean> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withStream(List<GetMetaDataByRatingKeyStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart withStream(Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyPart other = (GetMetaDataByRatingKeyPart) 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.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) &&
|
||||
Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.stream, other.stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
audioProfile,
|
||||
container,
|
||||
has64bitOffsets,
|
||||
optimizedForStreaming,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyPart.class,
|
||||
"id", id,
|
||||
"key", key,
|
||||
"duration", duration,
|
||||
"file", file,
|
||||
"size", size,
|
||||
"audioProfile", audioProfile,
|
||||
"container", container,
|
||||
"has64bitOffsets", has64bitOffsets,
|
||||
"optimizedForStreaming", optimizedForStreaming,
|
||||
"videoProfile", videoProfile,
|
||||
"stream", stream);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<Integer> duration = Optional.empty();
|
||||
|
||||
private Optional<String> file = Optional.empty();
|
||||
|
||||
private Optional<Integer> size = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<Boolean> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMetaDataByRatingKeyStream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> 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(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Integer> 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(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Integer> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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 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 Builder stream(List<GetMetaDataByRatingKeyStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(Optional<? extends List<GetMetaDataByRatingKeyStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyPart build() {
|
||||
return new GetMetaDataByRatingKeyPart(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
audioProfile,
|
||||
container,
|
||||
has64bitOffsets,
|
||||
optimizedForStreaming,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetMetaDataByRatingKeyRequest {
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")
|
||||
private long ratingKey;
|
||||
|
||||
@JsonCreator
|
||||
public GetMetaDataByRatingKeyRequest(
|
||||
long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long ratingKey() {
|
||||
return ratingKey;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyRequest withRatingKey(long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMetaDataByRatingKeyRequest other = (GetMetaDataByRatingKeyRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.ratingKey, other.ratingKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
ratingKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMetaDataByRatingKeyRequest.class,
|
||||
"ratingKey", ratingKey);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long ratingKey;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
*/
|
||||
public Builder ratingKey(long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRequest build() {
|
||||
return new GetMetaDataByRatingKeyRequest(
|
||||
ratingKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Long;
|
||||
|
||||
public class GetMetaDataByRatingKeyRequestBuilder {
|
||||
|
||||
private Long ratingKey;
|
||||
private final SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk;
|
||||
|
||||
public GetMetaDataByRatingKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyRequestBuilder ratingKey(long ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyResponse call() throws Exception {
|
||||
|
||||
return sdk.getMetaDataByRatingKey(
|
||||
ratingKey);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetPlaylistContentsQueryParamType - The type of media to retrieve.
|
||||
* GetPlaylistContentsQueryParamType - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -24,7 +24,7 @@ public class GetPlaylistContentsRequest {
|
||||
private double playlistID;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -54,7 +54,7 @@ public class GetPlaylistContentsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -81,7 +81,7 @@ public class GetPlaylistContentsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -143,7 +143,7 @@ public class GetPlaylistContentsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -36,7 +36,7 @@ public class GetRecentlyAddedLibraryRequest {
|
||||
private Optional<Long> sectionID;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -122,7 +122,7 @@ public class GetRecentlyAddedLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -214,7 +214,7 @@ public class GetRecentlyAddedLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -402,7 +402,7 @@ public class GetRecentlyAddedLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -41,7 +41,7 @@ public class GetRecentlyAddedRequest {
|
||||
private Optional<Long> sectionID;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -133,7 +133,7 @@ public class GetRecentlyAddedRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -228,7 +228,7 @@ public class GetRecentlyAddedRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -419,7 +419,7 @@ public class GetRecentlyAddedRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchLibraryQueryParamType - The type of media to retrieve.
|
||||
* GetSearchLibraryQueryParamType - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -26,7 +26,7 @@ public class GetSearchLibraryRequest {
|
||||
private int sectionKey;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -58,7 +58,7 @@ public class GetSearchLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -87,7 +87,7 @@ public class GetSearchLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -151,7 +151,7 @@ public class GetSearchLibraryRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTopWatchedContentQueryParamType - The type of media to retrieve.
|
||||
* GetTopWatchedContentQueryParamType - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -26,7 +26,7 @@ public class GetTopWatchedContentRequest {
|
||||
private Optional<Long> includeGuids;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -62,7 +62,7 @@ public class GetTopWatchedContentRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -100,7 +100,7 @@ public class GetTopWatchedContentRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
@@ -173,7 +173,7 @@ public class GetTopWatchedContentRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -7,35 +7,33 @@ 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 Guids {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The GUID value.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private Optional<String> id;
|
||||
private String id;
|
||||
|
||||
@JsonCreator
|
||||
public Guids(
|
||||
@JsonProperty("id") Optional<String> id) {
|
||||
@JsonProperty("id") String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Guids() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> id() {
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -43,13 +41,10 @@ public class Guids {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
*/
|
||||
public Guids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Guids withId(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -82,19 +77,16 @@ public class Guids {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> id = Optional.empty();
|
||||
private String id;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -11,7 +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.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -20,69 +20,117 @@ import java.util.Optional;
|
||||
|
||||
public class Producer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private long id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public Producer(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("filter") Optional<String> filter,
|
||||
@JsonProperty("tag") Optional<String> tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public Producer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Producer(
|
||||
long id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
@@ -92,60 +140,72 @@ public class Producer {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Producer withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Producer withId(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Producer withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Producer withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Producer withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public Producer withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Producer withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Producer withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Producer withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Producer withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Producer withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Producer withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Producer withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
@@ -166,6 +226,7 @@ public class Producer {
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb);
|
||||
}
|
||||
|
||||
@@ -176,6 +237,7 @@ public class Producer {
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
|
||||
@@ -186,18 +248,21 @@ public class Producer {
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role,
|
||||
"thumb", thumb);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -205,60 +270,72 @@ public class Producer {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
@@ -271,6 +348,7 @@ public class Producer {
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamType - The type of media to retrieve.
|
||||
* QueryParamType - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
@@ -7,36 +7,39 @@ 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.Double;
|
||||
import java.lang.Float;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class Ratings {
|
||||
public class Rating {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The image or reference for the rating.
|
||||
*/
|
||||
@JsonProperty("image")
|
||||
private Optional<String> image;
|
||||
private String image;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The rating value.
|
||||
*/
|
||||
@JsonProperty("value")
|
||||
private Optional<Double> value;
|
||||
private float value;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
private String type;
|
||||
|
||||
@JsonCreator
|
||||
public Ratings(
|
||||
@JsonProperty("image") Optional<String> image,
|
||||
@JsonProperty("value") Optional<Double> value,
|
||||
@JsonProperty("type") Optional<String> type) {
|
||||
public Rating(
|
||||
@JsonProperty("image") String image,
|
||||
@JsonProperty("value") float value,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(value, "value");
|
||||
Utils.checkNotNull(type, "type");
|
||||
@@ -44,23 +47,28 @@ public class Ratings {
|
||||
this.value = value;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Ratings() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The image or reference for the rating.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> image() {
|
||||
public String image() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* The rating value.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Double> value() {
|
||||
public float value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -68,37 +76,28 @@ public class Ratings {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Ratings withImage(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = Optional.ofNullable(image);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings withImage(Optional<String> image) {
|
||||
/**
|
||||
* The image or reference for the rating.
|
||||
*/
|
||||
public Rating withImage(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings withValue(double value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = Optional.ofNullable(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings withValue(Optional<Double> value) {
|
||||
/**
|
||||
* The rating value.
|
||||
*/
|
||||
public Rating withValue(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings withType(Optional<String> type) {
|
||||
/**
|
||||
* The type of rating (e.g., audience, critic).
|
||||
*/
|
||||
public Rating withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -112,7 +111,7 @@ public class Ratings {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Ratings other = (Ratings) o;
|
||||
Rating other = (Rating) o;
|
||||
return
|
||||
Objects.deepEquals(this.image, other.image) &&
|
||||
Objects.deepEquals(this.value, other.value) &&
|
||||
@@ -129,7 +128,7 @@ public class Ratings {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Ratings.class,
|
||||
return Utils.toString(Rating.class,
|
||||
"image", image,
|
||||
"value", value,
|
||||
"type", type);
|
||||
@@ -137,54 +136,45 @@ public class Ratings {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> image = Optional.empty();
|
||||
private String image;
|
||||
|
||||
private Optional<Double> value = Optional.empty();
|
||||
private Float value;
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
private String type;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The image or reference for the rating.
|
||||
*/
|
||||
public Builder image(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = Optional.ofNullable(image);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder image(Optional<String> image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder value(double value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = Optional.ofNullable(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder value(Optional<Double> value) {
|
||||
/**
|
||||
* The rating value.
|
||||
*/
|
||||
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 = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ratings build() {
|
||||
return new Ratings(
|
||||
public Rating build() {
|
||||
return new Rating(
|
||||
image,
|
||||
value,
|
||||
type);
|
||||
@@ -285,13 +285,22 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallGetGenresLibrary {
|
||||
GetGenresLibraryResponse getGenresLibrary(
|
||||
int sectionKey) throws Exception;
|
||||
int sectionKey,
|
||||
GetGenresLibraryQueryParamType type) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetCountriesLibrary {
|
||||
GetCountriesLibraryResponse getCountriesLibrary(
|
||||
int sectionKey) throws Exception;
|
||||
int sectionKey,
|
||||
GetCountriesLibraryQueryParamType type) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetActorsLibrary {
|
||||
GetActorsLibraryResponse getActorsLibrary(
|
||||
int sectionKey,
|
||||
GetActorsLibraryQueryParamType type) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
@@ -301,9 +310,9 @@ public class SDKMethodInterfaces {
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetMetaDataByRatingKey {
|
||||
GetMetaDataByRatingKeyResponse getMetaDataByRatingKey(
|
||||
long ratingKey) throws Exception;
|
||||
public interface MethodCallGetMediaMetaData {
|
||||
GetMediaMetaDataResponse getMediaMetaData(
|
||||
GetMediaMetaDataRequest request) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
|
||||
184
src/main/java/dev/plexapi/sdk/models/operations/Similar.java
Normal file
184
src/main/java/dev/plexapi/sdk/models/operations/Similar.java
Normal file
@@ -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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class Similar {
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public Similar(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
public Similar withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
public Similar withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
public Similar withTag(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;
|
||||
}
|
||||
Similar other = (Similar) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Similar.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Similar build() {
|
||||
return new Similar(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Type - The type of media to retrieve.
|
||||
* Type - The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
|
||||
Reference in New Issue
Block a user