ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1

This commit is contained in:
speakeasybot
2025-02-05 00:27:30 +00:00
parent 22654201f5
commit f33408b177
57 changed files with 4815 additions and 69 deletions

View File

@@ -0,0 +1,147 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
public class GetCountriesLibraryDirectory {
@JsonProperty("fastKey")
private String fastKey;
@JsonProperty("key")
private String key;
@JsonProperty("title")
private String title;
@JsonCreator
public GetCountriesLibraryDirectory(
@JsonProperty("fastKey") String fastKey,
@JsonProperty("key") String key,
@JsonProperty("title") String title) {
Utils.checkNotNull(fastKey, "fastKey");
Utils.checkNotNull(key, "key");
Utils.checkNotNull(title, "title");
this.fastKey = fastKey;
this.key = key;
this.title = title;
}
@JsonIgnore
public String fastKey() {
return fastKey;
}
@JsonIgnore
public String key() {
return key;
}
@JsonIgnore
public String title() {
return title;
}
public final static Builder builder() {
return new Builder();
}
public GetCountriesLibraryDirectory withFastKey(String fastKey) {
Utils.checkNotNull(fastKey, "fastKey");
this.fastKey = fastKey;
return this;
}
public GetCountriesLibraryDirectory withKey(String key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public GetCountriesLibraryDirectory withTitle(String title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetCountriesLibraryDirectory other = (GetCountriesLibraryDirectory) o;
return
Objects.deepEquals(this.fastKey, other.fastKey) &&
Objects.deepEquals(this.key, other.key) &&
Objects.deepEquals(this.title, other.title);
}
@Override
public int hashCode() {
return Objects.hash(
fastKey,
key,
title);
}
@Override
public String toString() {
return Utils.toString(GetCountriesLibraryDirectory.class,
"fastKey", fastKey,
"key", key,
"title", title);
}
public final static class Builder {
private String fastKey;
private String key;
private String title;
private Builder() {
// force use of static builder() method
}
public Builder fastKey(String fastKey) {
Utils.checkNotNull(fastKey, "fastKey");
this.fastKey = fastKey;
return this;
}
public Builder key(String key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public Builder title(String title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public GetCountriesLibraryDirectory build() {
return new GetCountriesLibraryDirectory(
fastKey,
key,
title);
}
}
}

View File

@@ -0,0 +1,560 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class GetCountriesLibraryMediaContainer {
@JsonProperty("size")
private double size;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("offset")
private Optional<Integer> offset;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("totalSize")
private Optional<Integer> totalSize;
@JsonProperty("identifier")
private String identifier;
@JsonProperty("allowSync")
private boolean allowSync;
@JsonProperty("art")
private String art;
@JsonProperty("content")
private String content;
@JsonProperty("mediaTagPrefix")
private String mediaTagPrefix;
@JsonProperty("mediaTagVersion")
private long mediaTagVersion;
@JsonProperty("nocache")
private boolean nocache;
@JsonProperty("thumb")
private String thumb;
@JsonProperty("title1")
private String title1;
@JsonProperty("title2")
private String title2;
@JsonProperty("viewGroup")
private String viewGroup;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Directory")
private Optional<? extends List<GetCountriesLibraryDirectory>> directory;
@JsonCreator
public GetCountriesLibraryMediaContainer(
@JsonProperty("size") double size,
@JsonProperty("offset") Optional<Integer> offset,
@JsonProperty("totalSize") Optional<Integer> totalSize,
@JsonProperty("identifier") String identifier,
@JsonProperty("allowSync") boolean allowSync,
@JsonProperty("art") String art,
@JsonProperty("content") String content,
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
@JsonProperty("mediaTagVersion") long mediaTagVersion,
@JsonProperty("nocache") boolean nocache,
@JsonProperty("thumb") String thumb,
@JsonProperty("title1") String title1,
@JsonProperty("title2") String title2,
@JsonProperty("viewGroup") String viewGroup,
@JsonProperty("Directory") Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
Utils.checkNotNull(size, "size");
Utils.checkNotNull(offset, "offset");
Utils.checkNotNull(totalSize, "totalSize");
Utils.checkNotNull(identifier, "identifier");
Utils.checkNotNull(allowSync, "allowSync");
Utils.checkNotNull(art, "art");
Utils.checkNotNull(content, "content");
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
Utils.checkNotNull(nocache, "nocache");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(title1, "title1");
Utils.checkNotNull(title2, "title2");
Utils.checkNotNull(viewGroup, "viewGroup");
Utils.checkNotNull(directory, "directory");
this.size = size;
this.offset = offset;
this.totalSize = totalSize;
this.identifier = identifier;
this.allowSync = allowSync;
this.art = art;
this.content = content;
this.mediaTagPrefix = mediaTagPrefix;
this.mediaTagVersion = mediaTagVersion;
this.nocache = nocache;
this.thumb = thumb;
this.title1 = title1;
this.title2 = title2;
this.viewGroup = viewGroup;
this.directory = directory;
}
public GetCountriesLibraryMediaContainer(
double size,
String identifier,
boolean allowSync,
String art,
String content,
String mediaTagPrefix,
long mediaTagVersion,
boolean nocache,
String thumb,
String title1,
String title2,
String viewGroup) {
this(size, Optional.empty(), Optional.empty(), identifier, allowSync, art, content, mediaTagPrefix, mediaTagVersion, nocache, thumb, title1, title2, viewGroup, Optional.empty());
}
@JsonIgnore
public double size() {
return size;
}
@JsonIgnore
public Optional<Integer> offset() {
return offset;
}
@JsonIgnore
public Optional<Integer> totalSize() {
return totalSize;
}
@JsonIgnore
public String identifier() {
return identifier;
}
@JsonIgnore
public boolean allowSync() {
return allowSync;
}
@JsonIgnore
public String art() {
return art;
}
@JsonIgnore
public String content() {
return content;
}
@JsonIgnore
public String mediaTagPrefix() {
return mediaTagPrefix;
}
@JsonIgnore
public long mediaTagVersion() {
return mediaTagVersion;
}
@JsonIgnore
public boolean nocache() {
return nocache;
}
@JsonIgnore
public String thumb() {
return thumb;
}
@JsonIgnore
public String title1() {
return title1;
}
@JsonIgnore
public String title2() {
return title2;
}
@JsonIgnore
public String viewGroup() {
return viewGroup;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetCountriesLibraryDirectory>> directory() {
return (Optional<List<GetCountriesLibraryDirectory>>) directory;
}
public final static Builder builder() {
return new Builder();
}
public GetCountriesLibraryMediaContainer withSize(double size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public GetCountriesLibraryMediaContainer withOffset(int offset) {
Utils.checkNotNull(offset, "offset");
this.offset = Optional.ofNullable(offset);
return this;
}
public GetCountriesLibraryMediaContainer withOffset(Optional<Integer> offset) {
Utils.checkNotNull(offset, "offset");
this.offset = offset;
return this;
}
public GetCountriesLibraryMediaContainer withTotalSize(int totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = Optional.ofNullable(totalSize);
return this;
}
public GetCountriesLibraryMediaContainer withTotalSize(Optional<Integer> totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = totalSize;
return this;
}
public GetCountriesLibraryMediaContainer withIdentifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public GetCountriesLibraryMediaContainer withAllowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public GetCountriesLibraryMediaContainer withArt(String art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public GetCountriesLibraryMediaContainer withContent(String content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public GetCountriesLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public GetCountriesLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public GetCountriesLibraryMediaContainer withNocache(boolean nocache) {
Utils.checkNotNull(nocache, "nocache");
this.nocache = nocache;
return this;
}
public GetCountriesLibraryMediaContainer withThumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public GetCountriesLibraryMediaContainer withTitle1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public GetCountriesLibraryMediaContainer withTitle2(String title2) {
Utils.checkNotNull(title2, "title2");
this.title2 = title2;
return this;
}
public GetCountriesLibraryMediaContainer withViewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public GetCountriesLibraryMediaContainer withDirectory(List<GetCountriesLibraryDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public GetCountriesLibraryMediaContainer withDirectory(Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetCountriesLibraryMediaContainer other = (GetCountriesLibraryMediaContainer) o;
return
Objects.deepEquals(this.size, other.size) &&
Objects.deepEquals(this.offset, other.offset) &&
Objects.deepEquals(this.totalSize, other.totalSize) &&
Objects.deepEquals(this.identifier, other.identifier) &&
Objects.deepEquals(this.allowSync, other.allowSync) &&
Objects.deepEquals(this.art, other.art) &&
Objects.deepEquals(this.content, other.content) &&
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
Objects.deepEquals(this.nocache, other.nocache) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.title1, other.title1) &&
Objects.deepEquals(this.title2, other.title2) &&
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
Objects.deepEquals(this.directory, other.directory);
}
@Override
public int hashCode() {
return Objects.hash(
size,
offset,
totalSize,
identifier,
allowSync,
art,
content,
mediaTagPrefix,
mediaTagVersion,
nocache,
thumb,
title1,
title2,
viewGroup,
directory);
}
@Override
public String toString() {
return Utils.toString(GetCountriesLibraryMediaContainer.class,
"size", size,
"offset", offset,
"totalSize", totalSize,
"identifier", identifier,
"allowSync", allowSync,
"art", art,
"content", content,
"mediaTagPrefix", mediaTagPrefix,
"mediaTagVersion", mediaTagVersion,
"nocache", nocache,
"thumb", thumb,
"title1", title1,
"title2", title2,
"viewGroup", viewGroup,
"directory", directory);
}
public final static class Builder {
private Double size;
private Optional<Integer> offset = Optional.empty();
private Optional<Integer> totalSize = Optional.empty();
private String identifier;
private Boolean allowSync;
private String art;
private String content;
private String mediaTagPrefix;
private Long mediaTagVersion;
private Boolean nocache;
private String thumb;
private String title1;
private String title2;
private String viewGroup;
private Optional<? extends List<GetCountriesLibraryDirectory>> directory = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder size(double size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public Builder offset(int offset) {
Utils.checkNotNull(offset, "offset");
this.offset = Optional.ofNullable(offset);
return this;
}
public Builder offset(Optional<Integer> offset) {
Utils.checkNotNull(offset, "offset");
this.offset = offset;
return this;
}
public Builder totalSize(int totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = Optional.ofNullable(totalSize);
return this;
}
public Builder totalSize(Optional<Integer> totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = totalSize;
return this;
}
public Builder identifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public Builder allowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public Builder art(String art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public Builder content(String content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public Builder mediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public Builder mediaTagVersion(long mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public Builder nocache(boolean nocache) {
Utils.checkNotNull(nocache, "nocache");
this.nocache = nocache;
return this;
}
public Builder thumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public Builder title1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public Builder title2(String title2) {
Utils.checkNotNull(title2, "title2");
this.title2 = title2;
return this;
}
public Builder viewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public Builder directory(List<GetCountriesLibraryDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public Builder directory(Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
public GetCountriesLibraryMediaContainer build() {
return new GetCountriesLibraryMediaContainer(
size,
offset,
totalSize,
identifier,
allowSync,
art,
content,
mediaTagPrefix,
mediaTagVersion,
nocache,
thumb,
title1,
title2,
viewGroup,
directory);
}
}
}

View File

@@ -0,0 +1,110 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
public class GetCountriesLibraryRequest {
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
private int sectionKey;
@JsonCreator
public GetCountriesLibraryRequest(
int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
@JsonIgnore
public int sectionKey() {
return sectionKey;
}
public final static Builder builder() {
return new Builder();
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
public GetCountriesLibraryRequest withSectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetCountriesLibraryRequest other = (GetCountriesLibraryRequest) o;
return
Objects.deepEquals(this.sectionKey, other.sectionKey);
}
@Override
public int hashCode() {
return Objects.hash(
sectionKey);
}
@Override
public String toString() {
return Utils.toString(GetCountriesLibraryRequest.class,
"sectionKey", sectionKey);
}
public final static class Builder {
private Integer sectionKey;
private Builder() {
// force use of static builder() method
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
public Builder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetCountriesLibraryRequest build() {
return new GetCountriesLibraryRequest(
sectionKey);
}
}
}

View File

@@ -0,0 +1,30 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Integer;
public class GetCountriesLibraryRequestBuilder {
private Integer sectionKey;
private final SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk;
public GetCountriesLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk) {
this.sdk = sdk;
}
public GetCountriesLibraryRequestBuilder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetCountriesLibraryResponse call() throws Exception {
return sdk.getCountriesLibrary(
sectionKey);
}
}

View File

@@ -0,0 +1,251 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.utils.Response;
import dev.plexapi.sdk.utils.Utils;
import java.io.InputStream;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.net.http.HttpResponse;
import java.util.Objects;
import java.util.Optional;
public class GetCountriesLibraryResponse implements Response {
/**
* HTTP response content type for this operation
*/
private String contentType;
/**
* HTTP response status code for this operation
*/
private int statusCode;
/**
* Raw HTTP response; suitable for custom response parsing
*/
private HttpResponse<InputStream> rawResponse;
/**
* Successful response containing media container data.
*/
private Optional<? extends GetCountriesLibraryResponseBody> object;
@JsonCreator
public GetCountriesLibraryResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse,
Optional<? extends GetCountriesLibraryResponseBody> object) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(object, "object");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.object = object;
}
public GetCountriesLibraryResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse) {
this(contentType, statusCode, rawResponse, Optional.empty());
}
/**
* HTTP response content type for this operation
*/
@JsonIgnore
public String contentType() {
return contentType;
}
/**
* HTTP response status code for this operation
*/
@JsonIgnore
public int statusCode() {
return statusCode;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
@JsonIgnore
public HttpResponse<InputStream> rawResponse() {
return rawResponse;
}
/**
* Successful response containing media container data.
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetCountriesLibraryResponseBody> object() {
return (Optional<GetCountriesLibraryResponseBody>) object;
}
public final static Builder builder() {
return new Builder();
}
/**
* HTTP response content type for this operation
*/
public GetCountriesLibraryResponse withContentType(String contentType) {
Utils.checkNotNull(contentType, "contentType");
this.contentType = contentType;
return this;
}
/**
* HTTP response status code for this operation
*/
public GetCountriesLibraryResponse withStatusCode(int statusCode) {
Utils.checkNotNull(statusCode, "statusCode");
this.statusCode = statusCode;
return this;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
public GetCountriesLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
Utils.checkNotNull(rawResponse, "rawResponse");
this.rawResponse = rawResponse;
return this;
}
/**
* Successful response containing media container data.
*/
public GetCountriesLibraryResponse withObject(GetCountriesLibraryResponseBody object) {
Utils.checkNotNull(object, "object");
this.object = Optional.ofNullable(object);
return this;
}
/**
* Successful response containing media container data.
*/
public GetCountriesLibraryResponse withObject(Optional<? extends GetCountriesLibraryResponseBody> object) {
Utils.checkNotNull(object, "object");
this.object = object;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetCountriesLibraryResponse other = (GetCountriesLibraryResponse) o;
return
Objects.deepEquals(this.contentType, other.contentType) &&
Objects.deepEquals(this.statusCode, other.statusCode) &&
Objects.deepEquals(this.rawResponse, other.rawResponse) &&
Objects.deepEquals(this.object, other.object);
}
@Override
public int hashCode() {
return Objects.hash(
contentType,
statusCode,
rawResponse,
object);
}
@Override
public String toString() {
return Utils.toString(GetCountriesLibraryResponse.class,
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"object", object);
}
public final static class Builder {
private String contentType;
private Integer statusCode;
private HttpResponse<InputStream> rawResponse;
private Optional<? extends GetCountriesLibraryResponseBody> object = Optional.empty();
private Builder() {
// force use of static builder() method
}
/**
* HTTP response content type for this operation
*/
public Builder contentType(String contentType) {
Utils.checkNotNull(contentType, "contentType");
this.contentType = contentType;
return this;
}
/**
* HTTP response status code for this operation
*/
public Builder statusCode(int statusCode) {
Utils.checkNotNull(statusCode, "statusCode");
this.statusCode = statusCode;
return this;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
Utils.checkNotNull(rawResponse, "rawResponse");
this.rawResponse = rawResponse;
return this;
}
/**
* Successful response containing media container data.
*/
public Builder object(GetCountriesLibraryResponseBody object) {
Utils.checkNotNull(object, "object");
this.object = Optional.ofNullable(object);
return this;
}
/**
* Successful response containing media container data.
*/
public Builder object(Optional<? extends GetCountriesLibraryResponseBody> object) {
Utils.checkNotNull(object, "object");
this.object = object;
return this;
}
public GetCountriesLibraryResponse build() {
return new GetCountriesLibraryResponse(
contentType,
statusCode,
rawResponse,
object);
}
}
}

View File

@@ -0,0 +1,114 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Objects;
import java.util.Optional;
/**
* GetCountriesLibraryResponseBody - Successful response containing media container data.
*/
public class GetCountriesLibraryResponseBody {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("MediaContainer")
private Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer;
@JsonCreator
public GetCountriesLibraryResponseBody(
@JsonProperty("MediaContainer") Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
}
public GetCountriesLibraryResponseBody() {
this(Optional.empty());
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetCountriesLibraryMediaContainer> mediaContainer() {
return (Optional<GetCountriesLibraryMediaContainer>) mediaContainer;
}
public final static Builder builder() {
return new Builder();
}
public GetCountriesLibraryResponseBody withMediaContainer(GetCountriesLibraryMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public GetCountriesLibraryResponseBody withMediaContainer(Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetCountriesLibraryResponseBody other = (GetCountriesLibraryResponseBody) o;
return
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
}
@Override
public int hashCode() {
return Objects.hash(
mediaContainer);
}
@Override
public String toString() {
return Utils.toString(GetCountriesLibraryResponseBody.class,
"mediaContainer", mediaContainer);
}
public final static class Builder {
private Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder mediaContainer(GetCountriesLibraryMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public Builder mediaContainer(Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
}
public GetCountriesLibraryResponseBody build() {
return new GetCountriesLibraryResponseBody(
mediaContainer);
}
}
}

View File

@@ -0,0 +1,176 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
public class GetGenresLibraryDirectory {
@JsonProperty("fastKey")
private String fastKey;
@JsonProperty("key")
private String key;
@JsonProperty("title")
private String title;
@JsonProperty("type")
private String type;
@JsonCreator
public GetGenresLibraryDirectory(
@JsonProperty("fastKey") String fastKey,
@JsonProperty("key") String key,
@JsonProperty("title") String title,
@JsonProperty("type") String type) {
Utils.checkNotNull(fastKey, "fastKey");
Utils.checkNotNull(key, "key");
Utils.checkNotNull(title, "title");
Utils.checkNotNull(type, "type");
this.fastKey = fastKey;
this.key = key;
this.title = title;
this.type = type;
}
@JsonIgnore
public String fastKey() {
return fastKey;
}
@JsonIgnore
public String key() {
return key;
}
@JsonIgnore
public String title() {
return title;
}
@JsonIgnore
public String type() {
return type;
}
public final static Builder builder() {
return new Builder();
}
public GetGenresLibraryDirectory withFastKey(String fastKey) {
Utils.checkNotNull(fastKey, "fastKey");
this.fastKey = fastKey;
return this;
}
public GetGenresLibraryDirectory withKey(String key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public GetGenresLibraryDirectory withTitle(String title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public GetGenresLibraryDirectory withType(String type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetGenresLibraryDirectory other = (GetGenresLibraryDirectory) o;
return
Objects.deepEquals(this.fastKey, other.fastKey) &&
Objects.deepEquals(this.key, other.key) &&
Objects.deepEquals(this.title, other.title) &&
Objects.deepEquals(this.type, other.type);
}
@Override
public int hashCode() {
return Objects.hash(
fastKey,
key,
title,
type);
}
@Override
public String toString() {
return Utils.toString(GetGenresLibraryDirectory.class,
"fastKey", fastKey,
"key", key,
"title", title,
"type", type);
}
public final static class Builder {
private String fastKey;
private String key;
private String title;
private String type;
private Builder() {
// force use of static builder() method
}
public Builder fastKey(String fastKey) {
Utils.checkNotNull(fastKey, "fastKey");
this.fastKey = fastKey;
return this;
}
public Builder key(String key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public Builder title(String title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public Builder type(String type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public GetGenresLibraryDirectory build() {
return new GetGenresLibraryDirectory(
fastKey,
key,
title,
type);
}
}
}

View File

@@ -0,0 +1,560 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class GetGenresLibraryMediaContainer {
@JsonProperty("size")
private double size;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("offset")
private Optional<Integer> offset;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("totalSize")
private Optional<Integer> totalSize;
@JsonProperty("identifier")
private String identifier;
@JsonProperty("allowSync")
private boolean allowSync;
@JsonProperty("art")
private String art;
@JsonProperty("content")
private String content;
@JsonProperty("mediaTagPrefix")
private String mediaTagPrefix;
@JsonProperty("mediaTagVersion")
private long mediaTagVersion;
@JsonProperty("nocache")
private boolean nocache;
@JsonProperty("thumb")
private String thumb;
@JsonProperty("title1")
private String title1;
@JsonProperty("title2")
private String title2;
@JsonProperty("viewGroup")
private String viewGroup;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Directory")
private Optional<? extends List<GetGenresLibraryDirectory>> directory;
@JsonCreator
public GetGenresLibraryMediaContainer(
@JsonProperty("size") double size,
@JsonProperty("offset") Optional<Integer> offset,
@JsonProperty("totalSize") Optional<Integer> totalSize,
@JsonProperty("identifier") String identifier,
@JsonProperty("allowSync") boolean allowSync,
@JsonProperty("art") String art,
@JsonProperty("content") String content,
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
@JsonProperty("mediaTagVersion") long mediaTagVersion,
@JsonProperty("nocache") boolean nocache,
@JsonProperty("thumb") String thumb,
@JsonProperty("title1") String title1,
@JsonProperty("title2") String title2,
@JsonProperty("viewGroup") String viewGroup,
@JsonProperty("Directory") Optional<? extends List<GetGenresLibraryDirectory>> directory) {
Utils.checkNotNull(size, "size");
Utils.checkNotNull(offset, "offset");
Utils.checkNotNull(totalSize, "totalSize");
Utils.checkNotNull(identifier, "identifier");
Utils.checkNotNull(allowSync, "allowSync");
Utils.checkNotNull(art, "art");
Utils.checkNotNull(content, "content");
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
Utils.checkNotNull(nocache, "nocache");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(title1, "title1");
Utils.checkNotNull(title2, "title2");
Utils.checkNotNull(viewGroup, "viewGroup");
Utils.checkNotNull(directory, "directory");
this.size = size;
this.offset = offset;
this.totalSize = totalSize;
this.identifier = identifier;
this.allowSync = allowSync;
this.art = art;
this.content = content;
this.mediaTagPrefix = mediaTagPrefix;
this.mediaTagVersion = mediaTagVersion;
this.nocache = nocache;
this.thumb = thumb;
this.title1 = title1;
this.title2 = title2;
this.viewGroup = viewGroup;
this.directory = directory;
}
public GetGenresLibraryMediaContainer(
double size,
String identifier,
boolean allowSync,
String art,
String content,
String mediaTagPrefix,
long mediaTagVersion,
boolean nocache,
String thumb,
String title1,
String title2,
String viewGroup) {
this(size, Optional.empty(), Optional.empty(), identifier, allowSync, art, content, mediaTagPrefix, mediaTagVersion, nocache, thumb, title1, title2, viewGroup, Optional.empty());
}
@JsonIgnore
public double size() {
return size;
}
@JsonIgnore
public Optional<Integer> offset() {
return offset;
}
@JsonIgnore
public Optional<Integer> totalSize() {
return totalSize;
}
@JsonIgnore
public String identifier() {
return identifier;
}
@JsonIgnore
public boolean allowSync() {
return allowSync;
}
@JsonIgnore
public String art() {
return art;
}
@JsonIgnore
public String content() {
return content;
}
@JsonIgnore
public String mediaTagPrefix() {
return mediaTagPrefix;
}
@JsonIgnore
public long mediaTagVersion() {
return mediaTagVersion;
}
@JsonIgnore
public boolean nocache() {
return nocache;
}
@JsonIgnore
public String thumb() {
return thumb;
}
@JsonIgnore
public String title1() {
return title1;
}
@JsonIgnore
public String title2() {
return title2;
}
@JsonIgnore
public String viewGroup() {
return viewGroup;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetGenresLibraryDirectory>> directory() {
return (Optional<List<GetGenresLibraryDirectory>>) directory;
}
public final static Builder builder() {
return new Builder();
}
public GetGenresLibraryMediaContainer withSize(double size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public GetGenresLibraryMediaContainer withOffset(int offset) {
Utils.checkNotNull(offset, "offset");
this.offset = Optional.ofNullable(offset);
return this;
}
public GetGenresLibraryMediaContainer withOffset(Optional<Integer> offset) {
Utils.checkNotNull(offset, "offset");
this.offset = offset;
return this;
}
public GetGenresLibraryMediaContainer withTotalSize(int totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = Optional.ofNullable(totalSize);
return this;
}
public GetGenresLibraryMediaContainer withTotalSize(Optional<Integer> totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = totalSize;
return this;
}
public GetGenresLibraryMediaContainer withIdentifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public GetGenresLibraryMediaContainer withAllowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public GetGenresLibraryMediaContainer withArt(String art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public GetGenresLibraryMediaContainer withContent(String content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public GetGenresLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public GetGenresLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public GetGenresLibraryMediaContainer withNocache(boolean nocache) {
Utils.checkNotNull(nocache, "nocache");
this.nocache = nocache;
return this;
}
public GetGenresLibraryMediaContainer withThumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public GetGenresLibraryMediaContainer withTitle1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public GetGenresLibraryMediaContainer withTitle2(String title2) {
Utils.checkNotNull(title2, "title2");
this.title2 = title2;
return this;
}
public GetGenresLibraryMediaContainer withViewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public GetGenresLibraryMediaContainer withDirectory(List<GetGenresLibraryDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public GetGenresLibraryMediaContainer withDirectory(Optional<? extends List<GetGenresLibraryDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetGenresLibraryMediaContainer other = (GetGenresLibraryMediaContainer) o;
return
Objects.deepEquals(this.size, other.size) &&
Objects.deepEquals(this.offset, other.offset) &&
Objects.deepEquals(this.totalSize, other.totalSize) &&
Objects.deepEquals(this.identifier, other.identifier) &&
Objects.deepEquals(this.allowSync, other.allowSync) &&
Objects.deepEquals(this.art, other.art) &&
Objects.deepEquals(this.content, other.content) &&
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
Objects.deepEquals(this.nocache, other.nocache) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.title1, other.title1) &&
Objects.deepEquals(this.title2, other.title2) &&
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
Objects.deepEquals(this.directory, other.directory);
}
@Override
public int hashCode() {
return Objects.hash(
size,
offset,
totalSize,
identifier,
allowSync,
art,
content,
mediaTagPrefix,
mediaTagVersion,
nocache,
thumb,
title1,
title2,
viewGroup,
directory);
}
@Override
public String toString() {
return Utils.toString(GetGenresLibraryMediaContainer.class,
"size", size,
"offset", offset,
"totalSize", totalSize,
"identifier", identifier,
"allowSync", allowSync,
"art", art,
"content", content,
"mediaTagPrefix", mediaTagPrefix,
"mediaTagVersion", mediaTagVersion,
"nocache", nocache,
"thumb", thumb,
"title1", title1,
"title2", title2,
"viewGroup", viewGroup,
"directory", directory);
}
public final static class Builder {
private Double size;
private Optional<Integer> offset = Optional.empty();
private Optional<Integer> totalSize = Optional.empty();
private String identifier;
private Boolean allowSync;
private String art;
private String content;
private String mediaTagPrefix;
private Long mediaTagVersion;
private Boolean nocache;
private String thumb;
private String title1;
private String title2;
private String viewGroup;
private Optional<? extends List<GetGenresLibraryDirectory>> directory = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder size(double size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public Builder offset(int offset) {
Utils.checkNotNull(offset, "offset");
this.offset = Optional.ofNullable(offset);
return this;
}
public Builder offset(Optional<Integer> offset) {
Utils.checkNotNull(offset, "offset");
this.offset = offset;
return this;
}
public Builder totalSize(int totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = Optional.ofNullable(totalSize);
return this;
}
public Builder totalSize(Optional<Integer> totalSize) {
Utils.checkNotNull(totalSize, "totalSize");
this.totalSize = totalSize;
return this;
}
public Builder identifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public Builder allowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public Builder art(String art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public Builder content(String content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public Builder mediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public Builder mediaTagVersion(long mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public Builder nocache(boolean nocache) {
Utils.checkNotNull(nocache, "nocache");
this.nocache = nocache;
return this;
}
public Builder thumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public Builder title1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public Builder title2(String title2) {
Utils.checkNotNull(title2, "title2");
this.title2 = title2;
return this;
}
public Builder viewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public Builder directory(List<GetGenresLibraryDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public Builder directory(Optional<? extends List<GetGenresLibraryDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
public GetGenresLibraryMediaContainer build() {
return new GetGenresLibraryMediaContainer(
size,
offset,
totalSize,
identifier,
allowSync,
art,
content,
mediaTagPrefix,
mediaTagVersion,
nocache,
thumb,
title1,
title2,
viewGroup,
directory);
}
}
}

View File

@@ -0,0 +1,110 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
public class GetGenresLibraryRequest {
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
private int sectionKey;
@JsonCreator
public GetGenresLibraryRequest(
int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
@JsonIgnore
public int sectionKey() {
return sectionKey;
}
public final static Builder builder() {
return new Builder();
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
public GetGenresLibraryRequest withSectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetGenresLibraryRequest other = (GetGenresLibraryRequest) o;
return
Objects.deepEquals(this.sectionKey, other.sectionKey);
}
@Override
public int hashCode() {
return Objects.hash(
sectionKey);
}
@Override
public String toString() {
return Utils.toString(GetGenresLibraryRequest.class,
"sectionKey", sectionKey);
}
public final static class Builder {
private Integer sectionKey;
private Builder() {
// force use of static builder() method
}
/**
* The unique key of the Plex library.
* Note: This is unique in the context of the Plex server.
*
*/
public Builder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetGenresLibraryRequest build() {
return new GetGenresLibraryRequest(
sectionKey);
}
}
}

View File

@@ -0,0 +1,30 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Integer;
public class GetGenresLibraryRequestBuilder {
private Integer sectionKey;
private final SDKMethodInterfaces.MethodCallGetGenresLibrary sdk;
public GetGenresLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetGenresLibrary sdk) {
this.sdk = sdk;
}
public GetGenresLibraryRequestBuilder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetGenresLibraryResponse call() throws Exception {
return sdk.getGenresLibrary(
sectionKey);
}
}

View File

@@ -0,0 +1,251 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.plexapi.sdk.utils.Response;
import dev.plexapi.sdk.utils.Utils;
import java.io.InputStream;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.net.http.HttpResponse;
import java.util.Objects;
import java.util.Optional;
public class GetGenresLibraryResponse implements Response {
/**
* HTTP response content type for this operation
*/
private String contentType;
/**
* HTTP response status code for this operation
*/
private int statusCode;
/**
* Raw HTTP response; suitable for custom response parsing
*/
private HttpResponse<InputStream> rawResponse;
/**
* Successful response containing media container data.
*/
private Optional<? extends GetGenresLibraryResponseBody> object;
@JsonCreator
public GetGenresLibraryResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse,
Optional<? extends GetGenresLibraryResponseBody> object) {
Utils.checkNotNull(contentType, "contentType");
Utils.checkNotNull(statusCode, "statusCode");
Utils.checkNotNull(rawResponse, "rawResponse");
Utils.checkNotNull(object, "object");
this.contentType = contentType;
this.statusCode = statusCode;
this.rawResponse = rawResponse;
this.object = object;
}
public GetGenresLibraryResponse(
String contentType,
int statusCode,
HttpResponse<InputStream> rawResponse) {
this(contentType, statusCode, rawResponse, Optional.empty());
}
/**
* HTTP response content type for this operation
*/
@JsonIgnore
public String contentType() {
return contentType;
}
/**
* HTTP response status code for this operation
*/
@JsonIgnore
public int statusCode() {
return statusCode;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
@JsonIgnore
public HttpResponse<InputStream> rawResponse() {
return rawResponse;
}
/**
* Successful response containing media container data.
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetGenresLibraryResponseBody> object() {
return (Optional<GetGenresLibraryResponseBody>) object;
}
public final static Builder builder() {
return new Builder();
}
/**
* HTTP response content type for this operation
*/
public GetGenresLibraryResponse withContentType(String contentType) {
Utils.checkNotNull(contentType, "contentType");
this.contentType = contentType;
return this;
}
/**
* HTTP response status code for this operation
*/
public GetGenresLibraryResponse withStatusCode(int statusCode) {
Utils.checkNotNull(statusCode, "statusCode");
this.statusCode = statusCode;
return this;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
public GetGenresLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
Utils.checkNotNull(rawResponse, "rawResponse");
this.rawResponse = rawResponse;
return this;
}
/**
* Successful response containing media container data.
*/
public GetGenresLibraryResponse withObject(GetGenresLibraryResponseBody object) {
Utils.checkNotNull(object, "object");
this.object = Optional.ofNullable(object);
return this;
}
/**
* Successful response containing media container data.
*/
public GetGenresLibraryResponse withObject(Optional<? extends GetGenresLibraryResponseBody> object) {
Utils.checkNotNull(object, "object");
this.object = object;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetGenresLibraryResponse other = (GetGenresLibraryResponse) o;
return
Objects.deepEquals(this.contentType, other.contentType) &&
Objects.deepEquals(this.statusCode, other.statusCode) &&
Objects.deepEquals(this.rawResponse, other.rawResponse) &&
Objects.deepEquals(this.object, other.object);
}
@Override
public int hashCode() {
return Objects.hash(
contentType,
statusCode,
rawResponse,
object);
}
@Override
public String toString() {
return Utils.toString(GetGenresLibraryResponse.class,
"contentType", contentType,
"statusCode", statusCode,
"rawResponse", rawResponse,
"object", object);
}
public final static class Builder {
private String contentType;
private Integer statusCode;
private HttpResponse<InputStream> rawResponse;
private Optional<? extends GetGenresLibraryResponseBody> object = Optional.empty();
private Builder() {
// force use of static builder() method
}
/**
* HTTP response content type for this operation
*/
public Builder contentType(String contentType) {
Utils.checkNotNull(contentType, "contentType");
this.contentType = contentType;
return this;
}
/**
* HTTP response status code for this operation
*/
public Builder statusCode(int statusCode) {
Utils.checkNotNull(statusCode, "statusCode");
this.statusCode = statusCode;
return this;
}
/**
* Raw HTTP response; suitable for custom response parsing
*/
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
Utils.checkNotNull(rawResponse, "rawResponse");
this.rawResponse = rawResponse;
return this;
}
/**
* Successful response containing media container data.
*/
public Builder object(GetGenresLibraryResponseBody object) {
Utils.checkNotNull(object, "object");
this.object = Optional.ofNullable(object);
return this;
}
/**
* Successful response containing media container data.
*/
public Builder object(Optional<? extends GetGenresLibraryResponseBody> object) {
Utils.checkNotNull(object, "object");
this.object = object;
return this;
}
public GetGenresLibraryResponse build() {
return new GetGenresLibraryResponse(
contentType,
statusCode,
rawResponse,
object);
}
}
}

View File

@@ -0,0 +1,114 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Objects;
import java.util.Optional;
/**
* GetGenresLibraryResponseBody - Successful response containing media container data.
*/
public class GetGenresLibraryResponseBody {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("MediaContainer")
private Optional<? extends GetGenresLibraryMediaContainer> mediaContainer;
@JsonCreator
public GetGenresLibraryResponseBody(
@JsonProperty("MediaContainer") Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
}
public GetGenresLibraryResponseBody() {
this(Optional.empty());
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetGenresLibraryMediaContainer> mediaContainer() {
return (Optional<GetGenresLibraryMediaContainer>) mediaContainer;
}
public final static Builder builder() {
return new Builder();
}
public GetGenresLibraryResponseBody withMediaContainer(GetGenresLibraryMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public GetGenresLibraryResponseBody withMediaContainer(Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetGenresLibraryResponseBody other = (GetGenresLibraryResponseBody) o;
return
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
}
@Override
public int hashCode() {
return Objects.hash(
mediaContainer);
}
@Override
public String toString() {
return Utils.toString(GetGenresLibraryResponseBody.class,
"mediaContainer", mediaContainer);
}
public final static class Builder {
private Optional<? extends GetGenresLibraryMediaContainer> mediaContainer = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder mediaContainer(GetGenresLibraryMediaContainer mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = Optional.ofNullable(mediaContainer);
return this;
}
public Builder mediaContainer(Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
Utils.checkNotNull(mediaContainer, "mediaContainer");
this.mediaContainer = mediaContainer;
return this;
}
public GetGenresLibraryResponseBody build() {
return new GetGenresLibraryResponseBody(
mediaContainer);
}
}
}

View File

@@ -283,6 +283,18 @@ public class SDKMethodInterfaces {
}
public interface MethodCallGetGenresLibrary {
GetGenresLibraryResponse getGenresLibrary(
int sectionKey) throws Exception;
}
public interface MethodCallGetCountriesLibrary {
GetCountriesLibraryResponse getCountriesLibrary(
int sectionKey) throws Exception;
}
public interface MethodCallGetSearchAllLibraries {
GetSearchAllLibrariesResponse getSearchAllLibraries(
GetSearchAllLibrariesRequest request) throws Exception;