ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2

This commit is contained in:
speakeasybot
2025-11-13 00:34:37 +00:00
parent da1cc22aa5
commit 66d8250cb0
28 changed files with 477 additions and 324 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1732900d-e173-47c1-a90d-d45182eb35d9
management:
docChecksum: 46ec1ce493542eb1a574ee88fc8b0895
docChecksum: e95c0e17d3e268dcd18d26ac8d0bfc98
docVersion: 1.1.1
speakeasyVersion: 1.615.2
generationVersion: 2.698.4
releaseVersion: 0.20.1
configChecksum: 3ae1fd8825523e7d3c4f0ded44ee4c16
releaseVersion: 0.21.1
configChecksum: 7af145b778364c038a024a71c312f9e6
repoURL: https://github.com/LukeHagar/plexjava.git
published: true
features:
@@ -750,6 +750,9 @@ generatedFiles:
- docs/models/shared/Items.md
- docs/models/shared/LibrarySection.md
- docs/models/shared/LibrarySectionLocation.md
- docs/models/shared/LibrarySections.md
- docs/models/shared/LibrarySectionsDirectory.md
- docs/models/shared/LibrarySectionsMediaContainer.md
- docs/models/shared/Lineup.md
- docs/models/shared/LineupType.md
- docs/models/shared/Location.md
@@ -801,9 +804,6 @@ generatedFiles:
- docs/models/shared/PostResponses200Type.md
- docs/models/shared/Protocol.md
- docs/models/shared/RecommendationsVisibility.md
- docs/models/shared/RequestHandlerSlashGetResponses200.md
- docs/models/shared/RequestHandlerSlashGetResponses200Directory.md
- docs/models/shared/RequestHandlerSlashGetResponses200MediaContainer.md
- docs/models/shared/Security.md
- docs/models/shared/Session.md
- docs/models/shared/SessionLocation.md
@@ -2348,6 +2348,9 @@ generatedFiles:
- src/main/java/dev/plexapi/sdk/models/shared/Items.java
- src/main/java/dev/plexapi/sdk/models/shared/LibrarySection.java
- src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionLocation.java
- src/main/java/dev/plexapi/sdk/models/shared/LibrarySections.java
- src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsDirectory.java
- src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsMediaContainer.java
- src/main/java/dev/plexapi/sdk/models/shared/Lineup.java
- src/main/java/dev/plexapi/sdk/models/shared/LineupType.java
- src/main/java/dev/plexapi/sdk/models/shared/Location.java
@@ -2399,9 +2402,6 @@ generatedFiles:
- src/main/java/dev/plexapi/sdk/models/shared/PostResponses200Type.java
- src/main/java/dev/plexapi/sdk/models/shared/Protocol.java
- src/main/java/dev/plexapi/sdk/models/shared/RecommendationsVisibility.java
- src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200.java
- src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200Directory.java
- src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200MediaContainer.java
- src/main/java/dev/plexapi/sdk/models/shared/Security.java
- src/main/java/dev/plexapi/sdk/models/shared/Session.java
- src/main/java/dev/plexapi/sdk/models/shared/SessionLocation.java

View File

@@ -21,8 +21,11 @@ generation:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
requestBodyFieldName: ""
schemas:
allOfMergeStrategy: shallowMerge
java:
version: 0.20.1
version: 0.21.1
additionalDependencies: []
additionalPlugins: []
artifactID: plexapi
@@ -35,7 +38,9 @@ java:
defaultErrorName: SDKError
enableCustomCodeRegions: false
enableStreamingUploads: false
enhancedUnionMemberResolution: true
flattenGlobalSecurity: true
generateOptionalUnionAccessors: false
generateSpringBootStarter: true
githubURL: github.com/LukeHagar/plexjava
groupID: dev.plexapi
@@ -55,6 +60,7 @@ java:
url: https://mit-license.org/
maxMethodParams: 4
nullFriendlyParameters: false
openUnions: true
outputModelSuffix: output
packageName: dev.plexapi.sdk
projectName: plexapi

View File

@@ -8,20 +8,20 @@ sources:
- latest
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624
sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64
sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b
sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f
tags:
- latest
- speakeasy-sdk-regen-1760315484
- speakeasy-sdk-regen-1762993854
- 1.1.1
targets:
plexjava:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624
sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64
sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b
sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f
codeSamplesNamespace: code-samples-java-plexjava
codeSamplesRevisionDigest: sha256:e076772184b6e43037b79abcef938bd0dd86905117a8634a7ed733736455b55e
codeSamplesRevisionDigest: sha256:d498e8e83e2cc9e1ffee0af580b876cb3f60cda1e757ed33a6b600395b9cfd78
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

149
README.md
View File

@@ -25,6 +25,7 @@
* [Server Selection](#server-selection)
* [Asynchronous Support](#asynchronous-support)
* [Authentication](#authentication)
* [Custom HTTP Client](#custom-http-client)
* [Debugging](#debugging)
* [Development](#development)
* [Maturity](#maturity)
@@ -43,7 +44,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
implementation 'dev.plexapi:plexapi:0.20.1'
implementation 'dev.plexapi:plexapi:0.21.1'
```
Maven:
@@ -51,7 +52,7 @@ Maven:
<dependency>
<groupId>dev.plexapi</groupId>
<artifactId>plexapi</artifactId>
<version>0.20.1</version>
<version>0.21.1</version>
</dependency>
```
@@ -592,18 +593,18 @@ You can override the default server globally using the `.serverIndex(int serverI
| --- | ---------------------------------------------------------- | -------------------------------------------- | ----------- |
| 0 | `https://{IP-description}.{identifier}.plex.direct:{port}` | `identifier`<br/>`IP-description`<br/>`port` | |
| 1 | `{protocol}://{host}:{port}` | `protocol`<br/>`host`<br/>`port` | |
| 2 | `https://{full_server_url}` | `server_url` | |
| 2 | `https://{full_server_url}` | `full_server_url` | |
If the selected server has variables, you may override its default values using the associated builder method(s):
| Variable | BuilderMethod | Default | Description |
| ---------------- | ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ----------------- | ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `identifier` | `identifier(String identifier)` | `"0123456789abcdef0123456789abcdef"` | The unique identifier of this particular PMS |
| `IP-description` | `ipDescription(String ipDescription)` | `"1-2-3-4"` | A `-` separated string of the IPv4 or IPv6 address components |
| `port` | `port(String port)` | `"32400"` | The Port number configured on the PMS. Typically (`32400`). <br/>If using a reverse proxy, this would be the port number configured on the proxy.<br/> |
| `protocol` | `protocol(String protocol)` | `"http"` | The network protocol to use. Typically (`http` or `https`) |
| `host` | `host(String host)` | `"localhost"` | The Host of the PMS.<br/>If using on a local network, this is the internal IP address of the server hosting the PMS.<br/>If using on an external network, this is the external IP address for your network, and requires port forwarding.<br/>If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding. <br/> |
| `server_url` | `serverUrl(String serverUrl)` | `"http://localhost:32400"` | The full manual URL to access the PMS |
| `full_server_url` | `fullServerUrl(String fullServerUrl)` | `"http://localhost:32400"` | The full manual URL to access the PMS |
#### Example
@@ -670,7 +671,7 @@ public class Application {
public static void main(String[] args) throws Exception {
PlexAPI sdk = PlexAPI.builder()
.serverURL("https://{full_server_url}")
.serverURL("https://http://localhost:32400")
.accepts(Accepts.APPLICATION_XML)
.clientIdentifier("abc123")
.product("Plex for Roku")
@@ -821,6 +822,142 @@ public class Application {
```
<!-- End Authentication [security] -->
<!-- Start Custom HTTP Client [http-client] -->
## Custom HTTP Client
The Java SDK makes API calls using an `HTTPClient` that wraps the native
[HttpClient](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html). This
client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle
errors and response.
The `HTTPClient` interface allows you to either use the default `SpeakeasyHTTPClient` that comes with the SDK,
or provide your own custom implementation with customized configuration such as custom executors, SSL context,
connection pools, and other HTTP client settings.
The interface provides synchronous (`send`) methods and asynchronous (`sendAsync`) methods. The `sendAsync` method
is used to power the async SDK methods and returns a `CompletableFuture<HttpResponse<Blob>>` for non-blocking operations.
The following example shows how to add a custom header and handle errors:
```java
import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.utils.HTTPClient;
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
import dev.plexapi.sdk.utils.Utils;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.InputStream;
import java.time.Duration;
public class Application {
public static void main(String[] args) {
// Create a custom HTTP client with hooks
HTTPClient httpClient = new HTTPClient() {
private final HTTPClient defaultClient = new SpeakeasyHTTPClient();
@Override
public HttpResponse<InputStream> send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException {
// Add custom header and timeout using Utils.copy()
HttpRequest modifiedRequest = Utils.copy(request)
.header("x-custom-header", "custom value")
.timeout(Duration.ofSeconds(30))
.build();
try {
HttpResponse<InputStream> response = defaultClient.send(modifiedRequest);
// Log successful response
System.out.println("Request successful: " + response.statusCode());
return response;
} catch (Exception error) {
// Log error
System.err.println("Request failed: " + error.getMessage());
throw error;
}
}
};
PlexAPI sdk = PlexAPI.builder()
.client(httpClient)
.build();
}
}
```
<details>
<summary>Custom HTTP Client Configuration</summary>
You can also provide a completely custom HTTP client with your own configuration:
```java
import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.utils.HTTPClient;
import dev.plexapi.sdk.utils.Blob;
import dev.plexapi.sdk.utils.ResponseWithBody;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.InputStream;
import java.time.Duration;
import java.util.concurrent.Executors;
import java.util.concurrent.CompletableFuture;
public class Application {
public static void main(String[] args) {
// Custom HTTP client with custom configuration
HTTPClient customHttpClient = new HTTPClient() {
private final HttpClient client = HttpClient.newBuilder()
.executor(Executors.newFixedThreadPool(10))
.connectTimeout(Duration.ofSeconds(30))
// .sslContext(customSslContext) // Add custom SSL context if needed
.build();
@Override
public HttpResponse<InputStream> send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException {
return client.send(request, HttpResponse.BodyHandlers.ofInputStream());
}
@Override
public CompletableFuture<HttpResponse<Blob>> sendAsync(HttpRequest request) {
// Convert response to HttpResponse<Blob> for async operations
return client.sendAsync(request, HttpResponse.BodyHandlers.ofPublisher())
.thenApply(resp -> new ResponseWithBody<>(resp, Blob::from));
}
};
PlexAPI sdk = PlexAPI.builder()
.client(customHttpClient)
.build();
}
}
```
</details>
You can also enable debug logging on the default `SpeakeasyHTTPClient`:
```java
import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
public class Application {
public static void main(String[] args) {
SpeakeasyHTTPClient httpClient = new SpeakeasyHTTPClient();
httpClient.enableDebugLogging(true);
PlexAPI sdk = PlexAPI.builder()
.client(httpClient)
.build();
}
}
```
<!-- End Custom HTTP Client [http-client] -->
<!-- Start Debugging [debug] -->
## Debugging

View File

@@ -399,3 +399,13 @@ Based on:
- [java v0.20.1] .
### Releases
- [Maven Central v0.20.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.20.1 - .
## 2025-11-13 00:30:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.21.1] .
### Releases
- [Maven Central v0.21.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.21.1 - .

View File

@@ -105,7 +105,7 @@ publishing {
// https://github.com/gradle/gradle/issues/18619
groupId = "dev.plexapi"
artifactId = "plexapi"
version = "0.20.1"
version = "0.21.1"
from components.java

View File

@@ -4529,7 +4529,7 @@ actions:
StopAllRefreshesResponse res = sdk.library().stopAllRefreshes()
.call();
if (res.requestHandlerSlashGetResponses200().isPresent()) {
if (res.librarySections().isPresent()) {
// handle response
}
}
@@ -4575,7 +4575,7 @@ actions:
.request(req)
.call();
if (res.requestHandlerSlashGetResponses200().isPresent()) {
if (res.librarySections().isPresent()) {
// handle response
}
}

View File

@@ -8,4 +8,4 @@
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse\<?>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `requestHandlerSlashGetResponses200` | [Optional\<RequestHandlerSlashGetResponses200>](../../models/shared/RequestHandlerSlashGetResponses200.md) | :heavy_minus_sign: | OK |
| `librarySections` | [Optional\<LibrarySections>](../../models/shared/LibrarySections.md) | :heavy_minus_sign: | OK |

View File

@@ -8,4 +8,4 @@
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse\<?>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `requestHandlerSlashGetResponses200` | [Optional\<RequestHandlerSlashGetResponses200>](../../models/shared/RequestHandlerSlashGetResponses200.md) | :heavy_minus_sign: | OK |
| `librarySections` | [Optional\<LibrarySections>](../../models/shared/LibrarySections.md) | :heavy_minus_sign: | OK |

View File

@@ -0,0 +1,10 @@
# LibrarySections
OK
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `mediaContainer` | [Optional\<LibrarySectionsMediaContainer>](../../models/shared/LibrarySectionsMediaContainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -1,4 +1,4 @@
# RequestHandlerSlashGetResponses200Directory
# LibrarySectionsDirectory
## Fields

View File

@@ -1,4 +1,4 @@
# RequestHandlerSlashGetResponses200MediaContainer
# LibrarySectionsMediaContainer
`MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
@@ -62,4 +62,4 @@ The container often "hoists" common attributes from its children. For example, i
| `updater` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
| `version` | *Optional\<String>* | :heavy_minus_sign: | N/A | |
| `voiceSearch` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
| `directory` | List\<[RequestHandlerSlashGetResponses200Directory](../../models/shared/RequestHandlerSlashGetResponses200Directory.md)> | :heavy_minus_sign: | N/A | |
| `directory` | List\<[LibrarySectionsDirectory](../../models/shared/LibrarySectionsDirectory.md)> | :heavy_minus_sign: | N/A | |

View File

@@ -1,10 +0,0 @@
# RequestHandlerSlashGetResponses200
OK
## Fields
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `mediaContainer` | [Optional\<RequestHandlerSlashGetResponses200MediaContainer>](../../models/shared/RequestHandlerSlashGetResponses200MediaContainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -658,7 +658,7 @@ public class Application {
StopAllRefreshesResponse res = sdk.library().stopAllRefreshes()
.call();
if (res.requestHandlerSlashGetResponses200().isPresent()) {
if (res.librarySections().isPresent()) {
// handle response
}
}
@@ -718,7 +718,7 @@ public class Application {
.request(req)
.call();
if (res.requestHandlerSlashGetResponses200().isPresent()) {
if (res.librarySections().isPresent()) {
// handle response
}
}
@@ -3298,8 +3298,8 @@ public class Application {
## autocomplete
The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`.
Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match
The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`.
Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match
### Example Usage

View File

@@ -1,4 +1,4 @@
groupId=dev.plexapi
artifactId=plexapi
version=0.20.1
version=0.21.1
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

View File

@@ -1768,8 +1768,8 @@ public class AsyncLibrary {
/**
* Get autocompletions for search
*
* <p>The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match
* <p>The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match
*
* @return The async call builder
*/
@@ -1780,8 +1780,8 @@ public class AsyncLibrary {
/**
* Get autocompletions for search
*
* <p>The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match
* <p>The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match
*
* @param request The request object containing all the parameters for the API call.
* @return CompletableFuture&lt;AutocompleteResponse&gt; - The async response

View File

@@ -1718,8 +1718,8 @@ public class Library {
/**
* Get autocompletions for search
*
* <p>The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match
* <p>The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match
*
* @return The call builder
*/
@@ -1730,8 +1730,8 @@ public class Library {
/**
* Get autocompletions for search
*
* <p>The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match
* <p>The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`.
* Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call

View File

@@ -654,17 +654,17 @@ public class PlexAPI {
}
/**
* Sets the server_url variable for url substitution.
* Sets the full_server_url variable for url substitution.
*
* @param serverUrl The value to set.
* @param fullServerUrl The value to set.
* @return The builder instance.
*/
public Builder serverUrl(String serverUrl) {
public Builder fullServerUrl(String fullServerUrl) {
for (Map<String, String> server : this.sdkConfiguration.serverVariables()) {
if (!server.containsKey("server_url")) {
if (!server.containsKey("full_server_url")) {
continue;
}
server.put("server_url", serverUrl.toString());
server.put("full_server_url", fullServerUrl.toString());
}
return this;

View File

@@ -25,7 +25,7 @@ public class SDKConfiguration {
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "1.1.1";
public static final String SDK_VERSION = "0.20.1";
public static final String SDK_VERSION = "0.21.1";
public static final String GEN_VERSION = "2.698.4";
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
public static final String USER_AGENT =
@@ -102,7 +102,7 @@ public class SDKConfiguration {
put("port", "32400");
} });
add(new HashMap<>(){ {
put("server_url", "http://localhost:32400");
put("full_server_url", "http://localhost:32400");
} });
} };

View File

@@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.Response;
import dev.plexapi.sdk.utils.Utils;
import java.io.InputStream;
@@ -36,22 +36,22 @@ public class GetSectionsPrefsResponse implements Response {
/**
* OK
*/
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200;
private Optional<? extends LibrarySections> librarySections;
@JsonCreator
public GetSectionsPrefsResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse,
Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
Utils.checkNotNull(librarySections, "librarySections");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
this.librarySections = librarySections;
}
public GetSectionsPrefsResponse(
@@ -91,8 +91,8 @@ public class GetSectionsPrefsResponse implements Response {
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200() {
return (Optional<RequestHandlerSlashGetResponses200>) requestHandlerSlashGetResponses200;
public Optional<LibrarySections> librarySections() {
return (Optional<LibrarySections>) librarySections;
}
public static Builder builder() {
@@ -130,9 +130,9 @@ public class GetSectionsPrefsResponse implements Response {
/**
* OK
*/
public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public GetSectionsPrefsResponse withLibrarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
@@ -140,9 +140,9 @@ public class GetSectionsPrefsResponse implements Response {
/**
* OK
*/
public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public GetSectionsPrefsResponse withLibrarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -159,14 +159,14 @@ public class GetSectionsPrefsResponse implements Response {
Utils.enhancedDeepEquals(this.contentType, other.contentType) &&
Utils.enhancedDeepEquals(this.statusCode, other.statusCode) &&
Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) &&
Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200);
Utils.enhancedDeepEquals(this.librarySections, other.librarySections);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
@Override
@@ -175,7 +175,7 @@ public class GetSectionsPrefsResponse implements Response {
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200);
"librarySections", librarySections);
}
@SuppressWarnings("UnusedReturnValue")
@@ -187,7 +187,7 @@ public class GetSectionsPrefsResponse implements Response {
private HttpResponse<InputStream> rawResponse;
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200 = Optional.empty();
private Optional<? extends LibrarySections> librarySections = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -227,18 +227,18 @@ public class GetSectionsPrefsResponse implements Response {
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public Builder librarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public Builder librarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -246,7 +246,7 @@ public class GetSectionsPrefsResponse implements Response {
return new GetSectionsPrefsResponse(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
}

View File

@@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.Response;
import dev.plexapi.sdk.utils.Utils;
import java.io.InputStream;
@@ -36,22 +36,22 @@ public class StopAllRefreshesResponse implements Response {
/**
* OK
*/
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200;
private Optional<? extends LibrarySections> librarySections;
@JsonCreator
public StopAllRefreshesResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse,
Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
Utils.checkNotNull(librarySections, "librarySections");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
this.librarySections = librarySections;
}
public StopAllRefreshesResponse(
@@ -91,8 +91,8 @@ public class StopAllRefreshesResponse implements Response {
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200() {
return (Optional<RequestHandlerSlashGetResponses200>) requestHandlerSlashGetResponses200;
public Optional<LibrarySections> librarySections() {
return (Optional<LibrarySections>) librarySections;
}
public static Builder builder() {
@@ -130,9 +130,9 @@ public class StopAllRefreshesResponse implements Response {
/**
* OK
*/
public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public StopAllRefreshesResponse withLibrarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
@@ -140,9 +140,9 @@ public class StopAllRefreshesResponse implements Response {
/**
* OK
*/
public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public StopAllRefreshesResponse withLibrarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -159,14 +159,14 @@ public class StopAllRefreshesResponse implements Response {
Utils.enhancedDeepEquals(this.contentType, other.contentType) &&
Utils.enhancedDeepEquals(this.statusCode, other.statusCode) &&
Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) &&
Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200);
Utils.enhancedDeepEquals(this.librarySections, other.librarySections);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
@Override
@@ -175,7 +175,7 @@ public class StopAllRefreshesResponse implements Response {
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200);
"librarySections", librarySections);
}
@SuppressWarnings("UnusedReturnValue")
@@ -187,7 +187,7 @@ public class StopAllRefreshesResponse implements Response {
private HttpResponse<InputStream> rawResponse;
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200 = Optional.empty();
private Optional<? extends LibrarySections> librarySections = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -227,18 +227,18 @@ public class StopAllRefreshesResponse implements Response {
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public Builder librarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public Builder librarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -246,7 +246,7 @@ public class StopAllRefreshesResponse implements Response {
return new StopAllRefreshesResponse(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
}

View File

@@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations.async;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.AsyncResponse;
import dev.plexapi.sdk.utils.Blob;
import dev.plexapi.sdk.utils.Utils;
@@ -36,22 +36,22 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
/**
* OK
*/
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200;
private Optional<? extends LibrarySections> librarySections;
@JsonCreator
public GetSectionsPrefsResponse(
String contentType,
int statusCode,
HttpResponse<Blob> rawResponse,
Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
Utils.checkNotNull(librarySections, "librarySections");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
this.librarySections = librarySections;
}
public GetSectionsPrefsResponse(
@@ -91,8 +91,8 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200() {
return (Optional<RequestHandlerSlashGetResponses200>) requestHandlerSlashGetResponses200;
public Optional<LibrarySections> librarySections() {
return (Optional<LibrarySections>) librarySections;
}
public static Builder builder() {
@@ -130,9 +130,9 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
/**
* OK
*/
public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public GetSectionsPrefsResponse withLibrarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
@@ -140,9 +140,9 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
/**
* OK
*/
public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public GetSectionsPrefsResponse withLibrarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -159,14 +159,14 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
Utils.enhancedDeepEquals(this.contentType, other.contentType) &&
Utils.enhancedDeepEquals(this.statusCode, other.statusCode) &&
Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) &&
Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200);
Utils.enhancedDeepEquals(this.librarySections, other.librarySections);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
@Override
@@ -175,7 +175,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200);
"librarySections", librarySections);
}
@SuppressWarnings("UnusedReturnValue")
@@ -187,7 +187,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
private HttpResponse<Blob> rawResponse;
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200 = Optional.empty();
private Optional<? extends LibrarySections> librarySections = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -227,18 +227,18 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public Builder librarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public Builder librarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -246,7 +246,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse {
return new GetSectionsPrefsResponse(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
}

View File

@@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations.async;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.AsyncResponse;
import dev.plexapi.sdk.utils.Blob;
import dev.plexapi.sdk.utils.Utils;
@@ -36,22 +36,22 @@ public class StopAllRefreshesResponse implements AsyncResponse {
/**
* OK
*/
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200;
private Optional<? extends LibrarySections> librarySections;
@JsonCreator
public StopAllRefreshesResponse(
String contentType,
int statusCode,
HttpResponse<Blob> rawResponse,
Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
Utils.checkNotNull(librarySections, "librarySections");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
this.librarySections = librarySections;
}
public StopAllRefreshesResponse(
@@ -91,8 +91,8 @@ public class StopAllRefreshesResponse implements AsyncResponse {
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200() {
return (Optional<RequestHandlerSlashGetResponses200>) requestHandlerSlashGetResponses200;
public Optional<LibrarySections> librarySections() {
return (Optional<LibrarySections>) librarySections;
}
public static Builder builder() {
@@ -130,9 +130,9 @@ public class StopAllRefreshesResponse implements AsyncResponse {
/**
* OK
*/
public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public StopAllRefreshesResponse withLibrarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
@@ -140,9 +140,9 @@ public class StopAllRefreshesResponse implements AsyncResponse {
/**
* OK
*/
public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public StopAllRefreshesResponse withLibrarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -159,14 +159,14 @@ public class StopAllRefreshesResponse implements AsyncResponse {
Utils.enhancedDeepEquals(this.contentType, other.contentType) &&
Utils.enhancedDeepEquals(this.statusCode, other.statusCode) &&
Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) &&
Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200);
Utils.enhancedDeepEquals(this.librarySections, other.librarySections);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
@Override
@@ -175,7 +175,7 @@ public class StopAllRefreshesResponse implements AsyncResponse {
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200);
"librarySections", librarySections);
}
@SuppressWarnings("UnusedReturnValue")
@@ -187,7 +187,7 @@ public class StopAllRefreshesResponse implements AsyncResponse {
private HttpResponse<Blob> rawResponse;
private Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200 = Optional.empty();
private Optional<? extends LibrarySections> librarySections = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -227,18 +227,18 @@ public class StopAllRefreshesResponse implements AsyncResponse {
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200);
public Builder librarySections(LibrarySections librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = Optional.ofNullable(librarySections);
return this;
}
/**
* OK
*/
public Builder requestHandlerSlashGetResponses200(Optional<? extends RequestHandlerSlashGetResponses200> requestHandlerSlashGetResponses200) {
Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200");
this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200;
public Builder librarySections(Optional<? extends LibrarySections> librarySections) {
Utils.checkNotNull(librarySections, "librarySections");
this.librarySections = librarySections;
return this;
}
@@ -246,7 +246,7 @@ public class StopAllRefreshesResponse implements AsyncResponse {
return new StopAllRefreshesResponse(
contentType, statusCode, rawResponse,
requestHandlerSlashGetResponses200);
librarySections);
}
}

View File

@@ -15,31 +15,31 @@ import java.lang.SuppressWarnings;
import java.util.Optional;
/**
* RequestHandlerSlashGetResponses200
* LibrarySections
*
* <p>OK
*/
public class RequestHandlerSlashGetResponses200 {
public class LibrarySections {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("MediaContainer")
private Optional<? extends RequestHandlerSlashGetResponses200MediaContainer> mediaContainer;
private Optional<? extends LibrarySectionsMediaContainer> mediaContainer;
@JsonCreator
public RequestHandlerSlashGetResponses200(
@JsonProperty("MediaContainer") Optional<? extends RequestHandlerSlashGetResponses200MediaContainer> mediaContainer) {
public LibrarySections(
@JsonProperty("MediaContainer") Optional<? extends LibrarySectionsMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
}
public RequestHandlerSlashGetResponses200() {
public LibrarySections() {
this(Optional.empty());
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<RequestHandlerSlashGetResponses200MediaContainer> mediaContainer() {
return (Optional<RequestHandlerSlashGetResponses200MediaContainer>) mediaContainer;
public Optional<LibrarySectionsMediaContainer> mediaContainer() {
return (Optional<LibrarySectionsMediaContainer>) mediaContainer;
}
public static Builder builder() {
@@ -47,14 +47,14 @@ public class RequestHandlerSlashGetResponses200 {
}
public RequestHandlerSlashGetResponses200 withMediaContainer(RequestHandlerSlashGetResponses200MediaContainer mediaContainer) {
public LibrarySections withMediaContainer(LibrarySectionsMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public RequestHandlerSlashGetResponses200 withMediaContainer(Optional<? extends RequestHandlerSlashGetResponses200MediaContainer> mediaContainer) {
public LibrarySections withMediaContainer(Optional<? extends LibrarySectionsMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
@@ -68,7 +68,7 @@ public class RequestHandlerSlashGetResponses200 {
if (o == null || getClass() != o.getClass()) {
return false;
}
RequestHandlerSlashGetResponses200 other = (RequestHandlerSlashGetResponses200) o;
LibrarySections other = (LibrarySections) o;
return
Utils.enhancedDeepEquals(this.mediaContainer, other.mediaContainer);
}
@@ -81,35 +81,35 @@ public class RequestHandlerSlashGetResponses200 {
@Override
public String toString() {
return Utils.toString(RequestHandlerSlashGetResponses200.class,
return Utils.toString(LibrarySections.class,
"mediaContainer", mediaContainer);
}
@SuppressWarnings("UnusedReturnValue")
public final static class Builder {
private Optional<? extends RequestHandlerSlashGetResponses200MediaContainer> mediaContainer = Optional.empty();
private Optional<? extends LibrarySectionsMediaContainer> mediaContainer = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder mediaContainer(RequestHandlerSlashGetResponses200MediaContainer mediaContainer) {
public Builder mediaContainer(LibrarySectionsMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public Builder mediaContainer(Optional<? extends RequestHandlerSlashGetResponses200MediaContainer> mediaContainer) {
public Builder mediaContainer(Optional<? extends LibrarySectionsMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
}
public RequestHandlerSlashGetResponses200 build() {
public LibrarySections build() {
return new RequestHandlerSlashGetResponses200(
return new LibrarySections(
mediaContainer);
}

View File

@@ -15,7 +15,7 @@ import java.lang.String;
import java.util.Optional;
public class RequestHandlerSlashGetResponses200Directory {
public class LibrarySectionsDirectory {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("count")
@@ -34,7 +34,7 @@ public class RequestHandlerSlashGetResponses200Directory {
private Optional<String> title;
@JsonCreator
public RequestHandlerSlashGetResponses200Directory(
public LibrarySectionsDirectory(
@JsonProperty("count") Optional<Long> count,
@JsonProperty("key") Optional<String> key,
@JsonProperty("title") Optional<String> title) {
@@ -46,7 +46,7 @@ public class RequestHandlerSlashGetResponses200Directory {
this.title = title;
}
public RequestHandlerSlashGetResponses200Directory() {
public LibrarySectionsDirectory() {
this(Optional.empty(), Optional.empty(), Optional.empty());
}
@@ -73,14 +73,14 @@ public class RequestHandlerSlashGetResponses200Directory {
}
public RequestHandlerSlashGetResponses200Directory withCount(long count) {
public LibrarySectionsDirectory withCount(long count) {
Utils.checkNotNull(count, "count");
this.count = Optional.ofNullable(count);
return this;
}
public RequestHandlerSlashGetResponses200Directory withCount(Optional<Long> count) {
public LibrarySectionsDirectory withCount(Optional<Long> count) {
Utils.checkNotNull(count, "count");
this.count = count;
return this;
@@ -89,7 +89,7 @@ public class RequestHandlerSlashGetResponses200Directory {
/**
* The key where this directory is found
*/
public RequestHandlerSlashGetResponses200Directory withKey(String key) {
public LibrarySectionsDirectory withKey(String key) {
Utils.checkNotNull(key, "key");
this.key = Optional.ofNullable(key);
return this;
@@ -99,20 +99,20 @@ public class RequestHandlerSlashGetResponses200Directory {
/**
* The key where this directory is found
*/
public RequestHandlerSlashGetResponses200Directory withKey(Optional<String> key) {
public LibrarySectionsDirectory withKey(Optional<String> key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public RequestHandlerSlashGetResponses200Directory withTitle(String title) {
public LibrarySectionsDirectory withTitle(String title) {
Utils.checkNotNull(title, "title");
this.title = Optional.ofNullable(title);
return this;
}
public RequestHandlerSlashGetResponses200Directory withTitle(Optional<String> title) {
public LibrarySectionsDirectory withTitle(Optional<String> title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
@@ -126,7 +126,7 @@ public class RequestHandlerSlashGetResponses200Directory {
if (o == null || getClass() != o.getClass()) {
return false;
}
RequestHandlerSlashGetResponses200Directory other = (RequestHandlerSlashGetResponses200Directory) o;
LibrarySectionsDirectory other = (LibrarySectionsDirectory) o;
return
Utils.enhancedDeepEquals(this.count, other.count) &&
Utils.enhancedDeepEquals(this.key, other.key) &&
@@ -141,7 +141,7 @@ public class RequestHandlerSlashGetResponses200Directory {
@Override
public String toString() {
return Utils.toString(RequestHandlerSlashGetResponses200Directory.class,
return Utils.toString(LibrarySectionsDirectory.class,
"count", count,
"key", key,
"title", title);
@@ -205,9 +205,9 @@ public class RequestHandlerSlashGetResponses200Directory {
return this;
}
public RequestHandlerSlashGetResponses200Directory build() {
public LibrarySectionsDirectory build() {
return new RequestHandlerSlashGetResponses200Directory(
return new LibrarySectionsDirectory(
count, key, title);
}

View File

@@ -19,13 +19,13 @@ import java.util.List;
import java.util.Optional;
/**
* RequestHandlerSlashGetResponses200MediaContainer
* LibrarySectionsMediaContainer
*
* <p>`MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
* Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
* The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track.
*/
public class RequestHandlerSlashGetResponses200MediaContainer {
public class LibrarySectionsMediaContainer {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("identifier")
@@ -299,10 +299,10 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Directory")
private Optional<? extends List<RequestHandlerSlashGetResponses200Directory>> directory;
private Optional<? extends List<LibrarySectionsDirectory>> directory;
@JsonCreator
public RequestHandlerSlashGetResponses200MediaContainer(
public LibrarySectionsMediaContainer(
@JsonProperty("identifier") Optional<String> identifier,
@JsonProperty("offset") Optional<Long> offset,
@JsonProperty("size") Optional<Long> size,
@@ -355,7 +355,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
@JsonProperty("updater") Optional<Boolean> updater,
@JsonProperty("version") Optional<String> version,
@JsonProperty("voiceSearch") Optional<Boolean> voiceSearch,
@JsonProperty("Directory") Optional<? extends List<RequestHandlerSlashGetResponses200Directory>> directory) {
@JsonProperty("Directory") Optional<? extends List<LibrarySectionsDirectory>> directory) {
Utils.checkNotNull(identifier, "identifier");
Utils.checkNotNull(offset, "offset");
Utils.checkNotNull(size, "size");
@@ -464,7 +464,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
this.directory = directory;
}
public RequestHandlerSlashGetResponses200MediaContainer() {
public LibrarySectionsMediaContainer() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
@@ -768,8 +768,8 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<RequestHandlerSlashGetResponses200Directory>> directory() {
return (Optional<List<RequestHandlerSlashGetResponses200Directory>>) directory;
public Optional<List<LibrarySectionsDirectory>> directory() {
return (Optional<List<LibrarySectionsDirectory>>) directory;
}
public static Builder builder() {
@@ -777,14 +777,14 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
}
public RequestHandlerSlashGetResponses200MediaContainer withIdentifier(String identifier) {
public LibrarySectionsMediaContainer withIdentifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = Optional.ofNullable(identifier);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withIdentifier(Optional<String> identifier) {
public LibrarySectionsMediaContainer withIdentifier(Optional<String> identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
@@ -793,7 +793,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
*/
public RequestHandlerSlashGetResponses200MediaContainer withOffset(long offset) {
public LibrarySectionsMediaContainer withOffset(long offset) {
Utils.checkNotNull(offset, "offset");
this.offset = Optional.ofNullable(offset);
return this;
@@ -803,20 +803,20 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
*/
public RequestHandlerSlashGetResponses200MediaContainer withOffset(Optional<Long> offset) {
public LibrarySectionsMediaContainer withOffset(Optional<Long> offset) {
Utils.checkNotNull(offset, "offset");
this.offset = offset;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withSize(long size) {
public LibrarySectionsMediaContainer withSize(long size) {
Utils.checkNotNull(size, "size");
this.size = Optional.ofNullable(size);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withSize(Optional<Long> size) {
public LibrarySectionsMediaContainer withSize(Optional<Long> size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
@@ -825,7 +825,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
*/
public RequestHandlerSlashGetResponses200MediaContainer withTotalSize(long totalSize) {
public LibrarySectionsMediaContainer withTotalSize(long totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = Optional.ofNullable(totalSize);
return this;
@@ -835,345 +835,345 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
*/
public RequestHandlerSlashGetResponses200MediaContainer withTotalSize(Optional<Long> totalSize) {
public LibrarySectionsMediaContainer withTotalSize(Optional<Long> totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = totalSize;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowCameraUpload(boolean allowCameraUpload) {
public LibrarySectionsMediaContainer withAllowCameraUpload(boolean allowCameraUpload) {
Utils.checkNotNull(allowCameraUpload, "allowCameraUpload");
this.allowCameraUpload = Optional.ofNullable(allowCameraUpload);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowCameraUpload(Optional<Boolean> allowCameraUpload) {
public LibrarySectionsMediaContainer withAllowCameraUpload(Optional<Boolean> allowCameraUpload) {
Utils.checkNotNull(allowCameraUpload, "allowCameraUpload");
this.allowCameraUpload = allowCameraUpload;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowChannelAccess(boolean allowChannelAccess) {
public LibrarySectionsMediaContainer withAllowChannelAccess(boolean allowChannelAccess) {
Utils.checkNotNull(allowChannelAccess, "allowChannelAccess");
this.allowChannelAccess = Optional.ofNullable(allowChannelAccess);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowChannelAccess(Optional<Boolean> allowChannelAccess) {
public LibrarySectionsMediaContainer withAllowChannelAccess(Optional<Boolean> allowChannelAccess) {
Utils.checkNotNull(allowChannelAccess, "allowChannelAccess");
this.allowChannelAccess = allowChannelAccess;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowMediaDeletion(boolean allowMediaDeletion) {
public LibrarySectionsMediaContainer withAllowMediaDeletion(boolean allowMediaDeletion) {
Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion");
this.allowMediaDeletion = Optional.ofNullable(allowMediaDeletion);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowMediaDeletion(Optional<Boolean> allowMediaDeletion) {
public LibrarySectionsMediaContainer withAllowMediaDeletion(Optional<Boolean> allowMediaDeletion) {
Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion");
this.allowMediaDeletion = allowMediaDeletion;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowSharing(boolean allowSharing) {
public LibrarySectionsMediaContainer withAllowSharing(boolean allowSharing) {
Utils.checkNotNull(allowSharing, "allowSharing");
this.allowSharing = Optional.ofNullable(allowSharing);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowSharing(Optional<Boolean> allowSharing) {
public LibrarySectionsMediaContainer withAllowSharing(Optional<Boolean> allowSharing) {
Utils.checkNotNull(allowSharing, "allowSharing");
this.allowSharing = allowSharing;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowSync(boolean allowSync) {
public LibrarySectionsMediaContainer withAllowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = Optional.ofNullable(allowSync);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowSync(Optional<Boolean> allowSync) {
public LibrarySectionsMediaContainer withAllowSync(Optional<Boolean> allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowTuners(boolean allowTuners) {
public LibrarySectionsMediaContainer withAllowTuners(boolean allowTuners) {
Utils.checkNotNull(allowTuners, "allowTuners");
this.allowTuners = Optional.ofNullable(allowTuners);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withAllowTuners(Optional<Boolean> allowTuners) {
public LibrarySectionsMediaContainer withAllowTuners(Optional<Boolean> allowTuners) {
Utils.checkNotNull(allowTuners, "allowTuners");
this.allowTuners = allowTuners;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withBackgroundProcessing(boolean backgroundProcessing) {
public LibrarySectionsMediaContainer withBackgroundProcessing(boolean backgroundProcessing) {
Utils.checkNotNull(backgroundProcessing, "backgroundProcessing");
this.backgroundProcessing = Optional.ofNullable(backgroundProcessing);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withBackgroundProcessing(Optional<Boolean> backgroundProcessing) {
public LibrarySectionsMediaContainer withBackgroundProcessing(Optional<Boolean> backgroundProcessing) {
Utils.checkNotNull(backgroundProcessing, "backgroundProcessing");
this.backgroundProcessing = backgroundProcessing;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCertificate(boolean certificate) {
public LibrarySectionsMediaContainer withCertificate(boolean certificate) {
Utils.checkNotNull(certificate, "certificate");
this.certificate = Optional.ofNullable(certificate);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCertificate(Optional<Boolean> certificate) {
public LibrarySectionsMediaContainer withCertificate(Optional<Boolean> certificate) {
Utils.checkNotNull(certificate, "certificate");
this.certificate = certificate;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCompanionProxy(boolean companionProxy) {
public LibrarySectionsMediaContainer withCompanionProxy(boolean companionProxy) {
Utils.checkNotNull(companionProxy, "companionProxy");
this.companionProxy = Optional.ofNullable(companionProxy);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCompanionProxy(Optional<Boolean> companionProxy) {
public LibrarySectionsMediaContainer withCompanionProxy(Optional<Boolean> companionProxy) {
Utils.checkNotNull(companionProxy, "companionProxy");
this.companionProxy = companionProxy;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCountryCode(String countryCode) {
public LibrarySectionsMediaContainer withCountryCode(String countryCode) {
Utils.checkNotNull(countryCode, "countryCode");
this.countryCode = Optional.ofNullable(countryCode);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withCountryCode(Optional<String> countryCode) {
public LibrarySectionsMediaContainer withCountryCode(Optional<String> countryCode) {
Utils.checkNotNull(countryCode, "countryCode");
this.countryCode = countryCode;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withDiagnostics(String diagnostics) {
public LibrarySectionsMediaContainer withDiagnostics(String diagnostics) {
Utils.checkNotNull(diagnostics, "diagnostics");
this.diagnostics = Optional.ofNullable(diagnostics);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withDiagnostics(Optional<String> diagnostics) {
public LibrarySectionsMediaContainer withDiagnostics(Optional<String> diagnostics) {
Utils.checkNotNull(diagnostics, "diagnostics");
this.diagnostics = diagnostics;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withEventStream(boolean eventStream) {
public LibrarySectionsMediaContainer withEventStream(boolean eventStream) {
Utils.checkNotNull(eventStream, "eventStream");
this.eventStream = Optional.ofNullable(eventStream);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withEventStream(Optional<Boolean> eventStream) {
public LibrarySectionsMediaContainer withEventStream(Optional<Boolean> eventStream) {
Utils.checkNotNull(eventStream, "eventStream");
this.eventStream = eventStream;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withFriendlyName(String friendlyName) {
public LibrarySectionsMediaContainer withFriendlyName(String friendlyName) {
Utils.checkNotNull(friendlyName, "friendlyName");
this.friendlyName = Optional.ofNullable(friendlyName);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withFriendlyName(Optional<String> friendlyName) {
public LibrarySectionsMediaContainer withFriendlyName(Optional<String> friendlyName) {
Utils.checkNotNull(friendlyName, "friendlyName");
this.friendlyName = friendlyName;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withHubSearch(boolean hubSearch) {
public LibrarySectionsMediaContainer withHubSearch(boolean hubSearch) {
Utils.checkNotNull(hubSearch, "hubSearch");
this.hubSearch = Optional.ofNullable(hubSearch);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withHubSearch(Optional<Boolean> hubSearch) {
public LibrarySectionsMediaContainer withHubSearch(Optional<Boolean> hubSearch) {
Utils.checkNotNull(hubSearch, "hubSearch");
this.hubSearch = hubSearch;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withItemClusters(boolean itemClusters) {
public LibrarySectionsMediaContainer withItemClusters(boolean itemClusters) {
Utils.checkNotNull(itemClusters, "itemClusters");
this.itemClusters = Optional.ofNullable(itemClusters);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withItemClusters(Optional<Boolean> itemClusters) {
public LibrarySectionsMediaContainer withItemClusters(Optional<Boolean> itemClusters) {
Utils.checkNotNull(itemClusters, "itemClusters");
this.itemClusters = itemClusters;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withLivetv(long livetv) {
public LibrarySectionsMediaContainer withLivetv(long livetv) {
Utils.checkNotNull(livetv, "livetv");
this.livetv = Optional.ofNullable(livetv);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withLivetv(Optional<Long> livetv) {
public LibrarySectionsMediaContainer withLivetv(Optional<Long> livetv) {
Utils.checkNotNull(livetv, "livetv");
this.livetv = livetv;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMachineIdentifier(Object machineIdentifier) {
public LibrarySectionsMediaContainer withMachineIdentifier(Object machineIdentifier) {
Utils.checkNotNull(machineIdentifier, "machineIdentifier");
this.machineIdentifier = Optional.ofNullable(machineIdentifier);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMachineIdentifier(Optional<? extends Object> machineIdentifier) {
public LibrarySectionsMediaContainer withMachineIdentifier(Optional<? extends Object> machineIdentifier) {
Utils.checkNotNull(machineIdentifier, "machineIdentifier");
this.machineIdentifier = machineIdentifier;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMediaProviders(boolean mediaProviders) {
public LibrarySectionsMediaContainer withMediaProviders(boolean mediaProviders) {
Utils.checkNotNull(mediaProviders, "mediaProviders");
this.mediaProviders = Optional.ofNullable(mediaProviders);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMediaProviders(Optional<Boolean> mediaProviders) {
public LibrarySectionsMediaContainer withMediaProviders(Optional<Boolean> mediaProviders) {
Utils.checkNotNull(mediaProviders, "mediaProviders");
this.mediaProviders = mediaProviders;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMultiuser(boolean multiuser) {
public LibrarySectionsMediaContainer withMultiuser(boolean multiuser) {
Utils.checkNotNull(multiuser, "multiuser");
this.multiuser = Optional.ofNullable(multiuser);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMultiuser(Optional<Boolean> multiuser) {
public LibrarySectionsMediaContainer withMultiuser(Optional<Boolean> multiuser) {
Utils.checkNotNull(multiuser, "multiuser");
this.multiuser = multiuser;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMusicAnalysis(long musicAnalysis) {
public LibrarySectionsMediaContainer withMusicAnalysis(long musicAnalysis) {
Utils.checkNotNull(musicAnalysis, "musicAnalysis");
this.musicAnalysis = Optional.ofNullable(musicAnalysis);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMusicAnalysis(Optional<Long> musicAnalysis) {
public LibrarySectionsMediaContainer withMusicAnalysis(Optional<Long> musicAnalysis) {
Utils.checkNotNull(musicAnalysis, "musicAnalysis");
this.musicAnalysis = musicAnalysis;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlex(boolean myPlex) {
public LibrarySectionsMediaContainer withMyPlex(boolean myPlex) {
Utils.checkNotNull(myPlex, "myPlex");
this.myPlex = Optional.ofNullable(myPlex);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlex(Optional<Boolean> myPlex) {
public LibrarySectionsMediaContainer withMyPlex(Optional<Boolean> myPlex) {
Utils.checkNotNull(myPlex, "myPlex");
this.myPlex = myPlex;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexMappingState(Object myPlexMappingState) {
public LibrarySectionsMediaContainer withMyPlexMappingState(Object myPlexMappingState) {
Utils.checkNotNull(myPlexMappingState, "myPlexMappingState");
this.myPlexMappingState = Optional.ofNullable(myPlexMappingState);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexMappingState(Optional<? extends Object> myPlexMappingState) {
public LibrarySectionsMediaContainer withMyPlexMappingState(Optional<? extends Object> myPlexMappingState) {
Utils.checkNotNull(myPlexMappingState, "myPlexMappingState");
this.myPlexMappingState = myPlexMappingState;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSigninState(Object myPlexSigninState) {
public LibrarySectionsMediaContainer withMyPlexSigninState(Object myPlexSigninState) {
Utils.checkNotNull(myPlexSigninState, "myPlexSigninState");
this.myPlexSigninState = Optional.ofNullable(myPlexSigninState);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSigninState(Optional<? extends Object> myPlexSigninState) {
public LibrarySectionsMediaContainer withMyPlexSigninState(Optional<? extends Object> myPlexSigninState) {
Utils.checkNotNull(myPlexSigninState, "myPlexSigninState");
this.myPlexSigninState = myPlexSigninState;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSubscription(boolean myPlexSubscription) {
public LibrarySectionsMediaContainer withMyPlexSubscription(boolean myPlexSubscription) {
Utils.checkNotNull(myPlexSubscription, "myPlexSubscription");
this.myPlexSubscription = Optional.ofNullable(myPlexSubscription);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSubscription(Optional<Boolean> myPlexSubscription) {
public LibrarySectionsMediaContainer withMyPlexSubscription(Optional<Boolean> myPlexSubscription) {
Utils.checkNotNull(myPlexSubscription, "myPlexSubscription");
this.myPlexSubscription = myPlexSubscription;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexUsername(String myPlexUsername) {
public LibrarySectionsMediaContainer withMyPlexUsername(String myPlexUsername) {
Utils.checkNotNull(myPlexUsername, "myPlexUsername");
this.myPlexUsername = Optional.ofNullable(myPlexUsername);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withMyPlexUsername(Optional<String> myPlexUsername) {
public LibrarySectionsMediaContainer withMyPlexUsername(Optional<String> myPlexUsername) {
Utils.checkNotNull(myPlexUsername, "myPlexUsername");
this.myPlexUsername = myPlexUsername;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withOfflineTranscode(Object offlineTranscode) {
public LibrarySectionsMediaContainer withOfflineTranscode(Object offlineTranscode) {
Utils.checkNotNull(offlineTranscode, "offlineTranscode");
this.offlineTranscode = Optional.ofNullable(offlineTranscode);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withOfflineTranscode(Optional<? extends Object> offlineTranscode) {
public LibrarySectionsMediaContainer withOfflineTranscode(Optional<? extends Object> offlineTranscode) {
Utils.checkNotNull(offlineTranscode, "offlineTranscode");
this.offlineTranscode = offlineTranscode;
return this;
@@ -1182,7 +1182,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* A comma-separated list of features which are enabled for the server owner
*/
public RequestHandlerSlashGetResponses200MediaContainer withOwnerFeatures(String ownerFeatures) {
public LibrarySectionsMediaContainer withOwnerFeatures(String ownerFeatures) {
Utils.checkNotNull(ownerFeatures, "ownerFeatures");
this.ownerFeatures = Optional.ofNullable(ownerFeatures);
return this;
@@ -1192,189 +1192,189 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* A comma-separated list of features which are enabled for the server owner
*/
public RequestHandlerSlashGetResponses200MediaContainer withOwnerFeatures(Optional<String> ownerFeatures) {
public LibrarySectionsMediaContainer withOwnerFeatures(Optional<String> ownerFeatures) {
Utils.checkNotNull(ownerFeatures, "ownerFeatures");
this.ownerFeatures = ownerFeatures;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPlatform(String platform) {
public LibrarySectionsMediaContainer withPlatform(String platform) {
Utils.checkNotNull(platform, "platform");
this.platform = Optional.ofNullable(platform);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPlatform(Optional<String> platform) {
public LibrarySectionsMediaContainer withPlatform(Optional<String> platform) {
Utils.checkNotNull(platform, "platform");
this.platform = platform;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPlatformVersion(String platformVersion) {
public LibrarySectionsMediaContainer withPlatformVersion(String platformVersion) {
Utils.checkNotNull(platformVersion, "platformVersion");
this.platformVersion = Optional.ofNullable(platformVersion);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPlatformVersion(Optional<String> platformVersion) {
public LibrarySectionsMediaContainer withPlatformVersion(Optional<String> platformVersion) {
Utils.checkNotNull(platformVersion, "platformVersion");
this.platformVersion = platformVersion;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPluginHost(boolean pluginHost) {
public LibrarySectionsMediaContainer withPluginHost(boolean pluginHost) {
Utils.checkNotNull(pluginHost, "pluginHost");
this.pluginHost = Optional.ofNullable(pluginHost);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPluginHost(Optional<Boolean> pluginHost) {
public LibrarySectionsMediaContainer withPluginHost(Optional<Boolean> pluginHost) {
Utils.checkNotNull(pluginHost, "pluginHost");
this.pluginHost = pluginHost;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPushNotifications(boolean pushNotifications) {
public LibrarySectionsMediaContainer withPushNotifications(boolean pushNotifications) {
Utils.checkNotNull(pushNotifications, "pushNotifications");
this.pushNotifications = Optional.ofNullable(pushNotifications);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withPushNotifications(Optional<Boolean> pushNotifications) {
public LibrarySectionsMediaContainer withPushNotifications(Optional<Boolean> pushNotifications) {
Utils.checkNotNull(pushNotifications, "pushNotifications");
this.pushNotifications = pushNotifications;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) {
public LibrarySectionsMediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) {
Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries");
this.readOnlyLibraries = Optional.ofNullable(readOnlyLibraries);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withReadOnlyLibraries(Optional<Boolean> readOnlyLibraries) {
public LibrarySectionsMediaContainer withReadOnlyLibraries(Optional<Boolean> readOnlyLibraries) {
Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries");
this.readOnlyLibraries = readOnlyLibraries;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainABRVersion(long streamingBrainABRVersion) {
public LibrarySectionsMediaContainer withStreamingBrainABRVersion(long streamingBrainABRVersion) {
Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion");
this.streamingBrainABRVersion = Optional.ofNullable(streamingBrainABRVersion);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainABRVersion(Optional<Long> streamingBrainABRVersion) {
public LibrarySectionsMediaContainer withStreamingBrainABRVersion(Optional<Long> streamingBrainABRVersion) {
Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion");
this.streamingBrainABRVersion = streamingBrainABRVersion;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainVersion(long streamingBrainVersion) {
public LibrarySectionsMediaContainer withStreamingBrainVersion(long streamingBrainVersion) {
Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion");
this.streamingBrainVersion = Optional.ofNullable(streamingBrainVersion);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainVersion(Optional<Long> streamingBrainVersion) {
public LibrarySectionsMediaContainer withStreamingBrainVersion(Optional<Long> streamingBrainVersion) {
Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion");
this.streamingBrainVersion = streamingBrainVersion;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withSync(boolean sync) {
public LibrarySectionsMediaContainer withSync(boolean sync) {
Utils.checkNotNull(sync, "sync");
this.sync = Optional.ofNullable(sync);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withSync(Optional<Boolean> sync) {
public LibrarySectionsMediaContainer withSync(Optional<Boolean> sync) {
Utils.checkNotNull(sync, "sync");
this.sync = sync;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderActiveVideoSessions(long transcoderActiveVideoSessions) {
public LibrarySectionsMediaContainer withTranscoderActiveVideoSessions(long transcoderActiveVideoSessions) {
Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions");
this.transcoderActiveVideoSessions = Optional.ofNullable(transcoderActiveVideoSessions);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderActiveVideoSessions(Optional<Long> transcoderActiveVideoSessions) {
public LibrarySectionsMediaContainer withTranscoderActiveVideoSessions(Optional<Long> transcoderActiveVideoSessions) {
Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions");
this.transcoderActiveVideoSessions = transcoderActiveVideoSessions;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderAudio(boolean transcoderAudio) {
public LibrarySectionsMediaContainer withTranscoderAudio(boolean transcoderAudio) {
Utils.checkNotNull(transcoderAudio, "transcoderAudio");
this.transcoderAudio = Optional.ofNullable(transcoderAudio);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderAudio(Optional<Boolean> transcoderAudio) {
public LibrarySectionsMediaContainer withTranscoderAudio(Optional<Boolean> transcoderAudio) {
Utils.checkNotNull(transcoderAudio, "transcoderAudio");
this.transcoderAudio = transcoderAudio;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderLyrics(boolean transcoderLyrics) {
public LibrarySectionsMediaContainer withTranscoderLyrics(boolean transcoderLyrics) {
Utils.checkNotNull(transcoderLyrics, "transcoderLyrics");
this.transcoderLyrics = Optional.ofNullable(transcoderLyrics);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderLyrics(Optional<Boolean> transcoderLyrics) {
public LibrarySectionsMediaContainer withTranscoderLyrics(Optional<Boolean> transcoderLyrics) {
Utils.checkNotNull(transcoderLyrics, "transcoderLyrics");
this.transcoderLyrics = transcoderLyrics;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderPhoto(boolean transcoderPhoto) {
public LibrarySectionsMediaContainer withTranscoderPhoto(boolean transcoderPhoto) {
Utils.checkNotNull(transcoderPhoto, "transcoderPhoto");
this.transcoderPhoto = Optional.ofNullable(transcoderPhoto);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderPhoto(Optional<Boolean> transcoderPhoto) {
public LibrarySectionsMediaContainer withTranscoderPhoto(Optional<Boolean> transcoderPhoto) {
Utils.checkNotNull(transcoderPhoto, "transcoderPhoto");
this.transcoderPhoto = transcoderPhoto;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) {
public LibrarySectionsMediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) {
Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles");
this.transcoderSubtitles = Optional.ofNullable(transcoderSubtitles);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderSubtitles(Optional<Boolean> transcoderSubtitles) {
public LibrarySectionsMediaContainer withTranscoderSubtitles(Optional<Boolean> transcoderSubtitles) {
Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles");
this.transcoderSubtitles = transcoderSubtitles;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideo(boolean transcoderVideo) {
public LibrarySectionsMediaContainer withTranscoderVideo(boolean transcoderVideo) {
Utils.checkNotNull(transcoderVideo, "transcoderVideo");
this.transcoderVideo = Optional.ofNullable(transcoderVideo);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideo(Optional<Boolean> transcoderVideo) {
public LibrarySectionsMediaContainer withTranscoderVideo(Optional<Boolean> transcoderVideo) {
Utils.checkNotNull(transcoderVideo, "transcoderVideo");
this.transcoderVideo = transcoderVideo;
return this;
@@ -1383,7 +1383,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The suggested video quality bitrates to present to the user
*/
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoBitrates(Object transcoderVideoBitrates) {
public LibrarySectionsMediaContainer withTranscoderVideoBitrates(Object transcoderVideoBitrates) {
Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates");
this.transcoderVideoBitrates = Optional.ofNullable(transcoderVideoBitrates);
return this;
@@ -1393,20 +1393,20 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The suggested video quality bitrates to present to the user
*/
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoBitrates(Optional<? extends Object> transcoderVideoBitrates) {
public LibrarySectionsMediaContainer withTranscoderVideoBitrates(Optional<? extends Object> transcoderVideoBitrates) {
Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates");
this.transcoderVideoBitrates = transcoderVideoBitrates;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) {
public LibrarySectionsMediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) {
Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities");
this.transcoderVideoQualities = Optional.ofNullable(transcoderVideoQualities);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoQualities(Optional<String> transcoderVideoQualities) {
public LibrarySectionsMediaContainer withTranscoderVideoQualities(Optional<String> transcoderVideoQualities) {
Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities");
this.transcoderVideoQualities = transcoderVideoQualities;
return this;
@@ -1415,7 +1415,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The suggested video resolutions to the above quality bitrates
*/
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoResolutions(Object transcoderVideoResolutions) {
public LibrarySectionsMediaContainer withTranscoderVideoResolutions(Object transcoderVideoResolutions) {
Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions");
this.transcoderVideoResolutions = Optional.ofNullable(transcoderVideoResolutions);
return this;
@@ -1425,72 +1425,72 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
/**
* The suggested video resolutions to the above quality bitrates
*/
public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoResolutions(Optional<? extends Object> transcoderVideoResolutions) {
public LibrarySectionsMediaContainer withTranscoderVideoResolutions(Optional<? extends Object> transcoderVideoResolutions) {
Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions");
this.transcoderVideoResolutions = transcoderVideoResolutions;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withUpdatedAt(long updatedAt) {
public LibrarySectionsMediaContainer withUpdatedAt(long updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = Optional.ofNullable(updatedAt);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withUpdatedAt(Optional<Long> updatedAt) {
public LibrarySectionsMediaContainer withUpdatedAt(Optional<Long> updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = updatedAt;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withUpdater(boolean updater) {
public LibrarySectionsMediaContainer withUpdater(boolean updater) {
Utils.checkNotNull(updater, "updater");
this.updater = Optional.ofNullable(updater);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withUpdater(Optional<Boolean> updater) {
public LibrarySectionsMediaContainer withUpdater(Optional<Boolean> updater) {
Utils.checkNotNull(updater, "updater");
this.updater = updater;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withVersion(String version) {
public LibrarySectionsMediaContainer withVersion(String version) {
Utils.checkNotNull(version, "version");
this.version = Optional.ofNullable(version);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withVersion(Optional<String> version) {
public LibrarySectionsMediaContainer withVersion(Optional<String> version) {
Utils.checkNotNull(version, "version");
this.version = version;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withVoiceSearch(boolean voiceSearch) {
public LibrarySectionsMediaContainer withVoiceSearch(boolean voiceSearch) {
Utils.checkNotNull(voiceSearch, "voiceSearch");
this.voiceSearch = Optional.ofNullable(voiceSearch);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withVoiceSearch(Optional<Boolean> voiceSearch) {
public LibrarySectionsMediaContainer withVoiceSearch(Optional<Boolean> voiceSearch) {
Utils.checkNotNull(voiceSearch, "voiceSearch");
this.voiceSearch = voiceSearch;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withDirectory(List<RequestHandlerSlashGetResponses200Directory> directory) {
public LibrarySectionsMediaContainer withDirectory(List<LibrarySectionsDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer withDirectory(Optional<? extends List<RequestHandlerSlashGetResponses200Directory>> directory) {
public LibrarySectionsMediaContainer withDirectory(Optional<? extends List<LibrarySectionsDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
@@ -1504,7 +1504,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
if (o == null || getClass() != o.getClass()) {
return false;
}
RequestHandlerSlashGetResponses200MediaContainer other = (RequestHandlerSlashGetResponses200MediaContainer) o;
LibrarySectionsMediaContainer other = (LibrarySectionsMediaContainer) o;
return
Utils.enhancedDeepEquals(this.identifier, other.identifier) &&
Utils.enhancedDeepEquals(this.offset, other.offset) &&
@@ -1586,7 +1586,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
@Override
public String toString() {
return Utils.toString(RequestHandlerSlashGetResponses200MediaContainer.class,
return Utils.toString(LibrarySectionsMediaContainer.class,
"identifier", identifier,
"offset", offset,
"size", size,
@@ -1749,7 +1749,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
private Optional<Boolean> voiceSearch = Optional.empty();
private Optional<? extends List<RequestHandlerSlashGetResponses200Directory>> directory = Optional.empty();
private Optional<? extends List<LibrarySectionsDirectory>> directory = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -2462,21 +2462,21 @@ public class RequestHandlerSlashGetResponses200MediaContainer {
}
public Builder directory(List<RequestHandlerSlashGetResponses200Directory> directory) {
public Builder directory(List<LibrarySectionsDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public Builder directory(Optional<? extends List<RequestHandlerSlashGetResponses200Directory>> directory) {
public Builder directory(Optional<? extends List<LibrarySectionsDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
public RequestHandlerSlashGetResponses200MediaContainer build() {
public LibrarySectionsMediaContainer build() {
return new RequestHandlerSlashGetResponses200MediaContainer(
return new LibrarySectionsMediaContainer(
identifier, offset, size,
totalSize, allowCameraUpload, allowChannelAccess,
allowMediaDeletion, allowSharing, allowSync,

View File

@@ -12,7 +12,7 @@ import dev.plexapi.sdk.SecuritySource;
import dev.plexapi.sdk.models.errors.SDKError;
import dev.plexapi.sdk.models.operations.GetSectionsPrefsRequest;
import dev.plexapi.sdk.models.operations.GetSectionsPrefsResponse;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.Blob;
import dev.plexapi.sdk.utils.Exceptions;
import dev.plexapi.sdk.utils.HTTPClient;
@@ -156,11 +156,11 @@ public class GetSectionsPrefs {
if (Utils.statusCodeMatches(response.statusCode(), "200")) {
if (Utils.contentTypeMatches(contentType, "application/json")) {
RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue(
LibrarySections out = Utils.mapper().readValue(
response.body(),
new TypeReference<>() {
});
res.withRequestHandlerSlashGetResponses200(out);
res.withLibrarySections(out);
return res;
} else {
throw new SDKError(
@@ -252,11 +252,11 @@ public class GetSectionsPrefs {
if (Utils.contentTypeMatches(contentType, "application/json")) {
return response.body().toByteArray().thenApply(bodyBytes -> {
try {
RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue(
LibrarySections out = Utils.mapper().readValue(
bodyBytes,
new TypeReference<>() {
});
res.withRequestHandlerSlashGetResponses200(out);
res.withLibrarySections(out);
return res;
} catch (Exception e) {
throw new RuntimeException(e);

View File

@@ -11,7 +11,7 @@ import dev.plexapi.sdk.SDKConfiguration;
import dev.plexapi.sdk.SecuritySource;
import dev.plexapi.sdk.models.errors.SDKError;
import dev.plexapi.sdk.models.operations.StopAllRefreshesResponse;
import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200;
import dev.plexapi.sdk.models.shared.LibrarySections;
import dev.plexapi.sdk.utils.Blob;
import dev.plexapi.sdk.utils.Exceptions;
import dev.plexapi.sdk.utils.HTTPClient;
@@ -149,11 +149,11 @@ public class StopAllRefreshes {
if (Utils.statusCodeMatches(response.statusCode(), "200")) {
if (Utils.contentTypeMatches(contentType, "application/json")) {
RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue(
LibrarySections out = Utils.mapper().readValue(
response.body(),
new TypeReference<>() {
});
res.withRequestHandlerSlashGetResponses200(out);
res.withLibrarySections(out);
return res;
} else {
throw new SDKError(
@@ -245,11 +245,11 @@ public class StopAllRefreshes {
if (Utils.contentTypeMatches(contentType, "application/json")) {
return response.body().toByteArray().thenApply(bodyBytes -> {
try {
RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue(
LibrarySections out = Utils.mapper().readValue(
bodyBytes,
new TypeReference<>() {
});
res.withRequestHandlerSlashGetResponses200(out);
res.withLibrarySections(out);
return res;
} catch (Exception e) {
throw new RuntimeException(e);