Files
plexjava/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java

705 lines
23 KiB
Java

/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class GetLibraryDetailsMediaContainer {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("size")
private Optional<Integer> size;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("allowSync")
private Optional<Boolean> allowSync;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("art")
private Optional<String> art;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("content")
private Optional<String> content;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("identifier")
private Optional<String> identifier;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("librarySectionID")
private Optional<Integer> librarySectionID;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("mediaTagPrefix")
private Optional<String> mediaTagPrefix;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("mediaTagVersion")
private Optional<Integer> mediaTagVersion;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("thumb")
private Optional<String> thumb;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("title1")
private Optional<String> title1;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("viewGroup")
private Optional<String> viewGroup;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("viewMode")
private Optional<Integer> viewMode;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Directory")
private Optional<? extends List<GetLibraryDetailsDirectory>> directory;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Type")
private Optional<? extends List<GetLibraryDetailsType>> type;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("FieldType")
private Optional<? extends List<GetLibraryDetailsFieldType>> fieldType;
@JsonCreator
public GetLibraryDetailsMediaContainer(
@JsonProperty("size") Optional<Integer> size,
@JsonProperty("allowSync") Optional<Boolean> allowSync,
@JsonProperty("art") Optional<String> art,
@JsonProperty("content") Optional<String> content,
@JsonProperty("identifier") Optional<String> identifier,
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
@JsonProperty("mediaTagVersion") Optional<Integer> mediaTagVersion,
@JsonProperty("thumb") Optional<String> thumb,
@JsonProperty("title1") Optional<String> title1,
@JsonProperty("viewGroup") Optional<String> viewGroup,
@JsonProperty("viewMode") Optional<Integer> viewMode,
@JsonProperty("Directory") Optional<? extends List<GetLibraryDetailsDirectory>> directory,
@JsonProperty("Type") Optional<? extends List<GetLibraryDetailsType>> type,
@JsonProperty("FieldType") Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
Utils.checkNotNull(size, "size");
Utils.checkNotNull(allowSync, "allowSync");
Utils.checkNotNull(art, "art");
Utils.checkNotNull(content, "content");
Utils.checkNotNull(identifier, "identifier");
Utils.checkNotNull(librarySectionID, "librarySectionID");
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(title1, "title1");
Utils.checkNotNull(viewGroup, "viewGroup");
Utils.checkNotNull(viewMode, "viewMode");
Utils.checkNotNull(directory, "directory");
Utils.checkNotNull(type, "type");
Utils.checkNotNull(fieldType, "fieldType");
this.size = size;
this.allowSync = allowSync;
this.art = art;
this.content = content;
this.identifier = identifier;
this.librarySectionID = librarySectionID;
this.mediaTagPrefix = mediaTagPrefix;
this.mediaTagVersion = mediaTagVersion;
this.thumb = thumb;
this.title1 = title1;
this.viewGroup = viewGroup;
this.viewMode = viewMode;
this.directory = directory;
this.type = type;
this.fieldType = fieldType;
}
public GetLibraryDetailsMediaContainer() {
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
@JsonIgnore
public Optional<Integer> size() {
return size;
}
@JsonIgnore
public Optional<Boolean> allowSync() {
return allowSync;
}
@JsonIgnore
public Optional<String> art() {
return art;
}
@JsonIgnore
public Optional<String> content() {
return content;
}
@JsonIgnore
public Optional<String> identifier() {
return identifier;
}
@JsonIgnore
public Optional<Integer> librarySectionID() {
return librarySectionID;
}
@JsonIgnore
public Optional<String> mediaTagPrefix() {
return mediaTagPrefix;
}
@JsonIgnore
public Optional<Integer> mediaTagVersion() {
return mediaTagVersion;
}
@JsonIgnore
public Optional<String> thumb() {
return thumb;
}
@JsonIgnore
public Optional<String> title1() {
return title1;
}
@JsonIgnore
public Optional<String> viewGroup() {
return viewGroup;
}
@JsonIgnore
public Optional<Integer> viewMode() {
return viewMode;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetLibraryDetailsDirectory>> directory() {
return (Optional<List<GetLibraryDetailsDirectory>>) directory;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetLibraryDetailsType>> type() {
return (Optional<List<GetLibraryDetailsType>>) type;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetLibraryDetailsFieldType>> fieldType() {
return (Optional<List<GetLibraryDetailsFieldType>>) fieldType;
}
public final static Builder builder() {
return new Builder();
}
public GetLibraryDetailsMediaContainer withSize(int size) {
Utils.checkNotNull(size, "size");
this.size = Optional.ofNullable(size);
return this;
}
public GetLibraryDetailsMediaContainer withSize(Optional<Integer> size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public GetLibraryDetailsMediaContainer withAllowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = Optional.ofNullable(allowSync);
return this;
}
public GetLibraryDetailsMediaContainer withAllowSync(Optional<Boolean> allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public GetLibraryDetailsMediaContainer withArt(String art) {
Utils.checkNotNull(art, "art");
this.art = Optional.ofNullable(art);
return this;
}
public GetLibraryDetailsMediaContainer withArt(Optional<String> art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public GetLibraryDetailsMediaContainer withContent(String content) {
Utils.checkNotNull(content, "content");
this.content = Optional.ofNullable(content);
return this;
}
public GetLibraryDetailsMediaContainer withContent(Optional<String> content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public GetLibraryDetailsMediaContainer withIdentifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = Optional.ofNullable(identifier);
return this;
}
public GetLibraryDetailsMediaContainer withIdentifier(Optional<String> identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public GetLibraryDetailsMediaContainer withLibrarySectionID(int librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = Optional.ofNullable(librarySectionID);
return this;
}
public GetLibraryDetailsMediaContainer withLibrarySectionID(Optional<Integer> librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = librarySectionID;
return this;
}
public GetLibraryDetailsMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
return this;
}
public GetLibraryDetailsMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public GetLibraryDetailsMediaContainer withMediaTagVersion(int mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
return this;
}
public GetLibraryDetailsMediaContainer withMediaTagVersion(Optional<Integer> mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public GetLibraryDetailsMediaContainer withThumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = Optional.ofNullable(thumb);
return this;
}
public GetLibraryDetailsMediaContainer withThumb(Optional<String> thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public GetLibraryDetailsMediaContainer withTitle1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = Optional.ofNullable(title1);
return this;
}
public GetLibraryDetailsMediaContainer withTitle1(Optional<String> title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public GetLibraryDetailsMediaContainer withViewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = Optional.ofNullable(viewGroup);
return this;
}
public GetLibraryDetailsMediaContainer withViewGroup(Optional<String> viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public GetLibraryDetailsMediaContainer withViewMode(int viewMode) {
Utils.checkNotNull(viewMode, "viewMode");
this.viewMode = Optional.ofNullable(viewMode);
return this;
}
public GetLibraryDetailsMediaContainer withViewMode(Optional<Integer> viewMode) {
Utils.checkNotNull(viewMode, "viewMode");
this.viewMode = viewMode;
return this;
}
public GetLibraryDetailsMediaContainer withDirectory(List<GetLibraryDetailsDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public GetLibraryDetailsMediaContainer withDirectory(Optional<? extends List<GetLibraryDetailsDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
public GetLibraryDetailsMediaContainer withType(List<GetLibraryDetailsType> type) {
Utils.checkNotNull(type, "type");
this.type = Optional.ofNullable(type);
return this;
}
public GetLibraryDetailsMediaContainer withType(Optional<? extends List<GetLibraryDetailsType>> type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public GetLibraryDetailsMediaContainer withFieldType(List<GetLibraryDetailsFieldType> fieldType) {
Utils.checkNotNull(fieldType, "fieldType");
this.fieldType = Optional.ofNullable(fieldType);
return this;
}
public GetLibraryDetailsMediaContainer withFieldType(Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
Utils.checkNotNull(fieldType, "fieldType");
this.fieldType = fieldType;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetLibraryDetailsMediaContainer other = (GetLibraryDetailsMediaContainer) o;
return
Objects.deepEquals(this.size, other.size) &&
Objects.deepEquals(this.allowSync, other.allowSync) &&
Objects.deepEquals(this.art, other.art) &&
Objects.deepEquals(this.content, other.content) &&
Objects.deepEquals(this.identifier, other.identifier) &&
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.title1, other.title1) &&
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
Objects.deepEquals(this.viewMode, other.viewMode) &&
Objects.deepEquals(this.directory, other.directory) &&
Objects.deepEquals(this.type, other.type) &&
Objects.deepEquals(this.fieldType, other.fieldType);
}
@Override
public int hashCode() {
return Objects.hash(
size,
allowSync,
art,
content,
identifier,
librarySectionID,
mediaTagPrefix,
mediaTagVersion,
thumb,
title1,
viewGroup,
viewMode,
directory,
type,
fieldType);
}
@Override
public String toString() {
return Utils.toString(GetLibraryDetailsMediaContainer.class,
"size", size,
"allowSync", allowSync,
"art", art,
"content", content,
"identifier", identifier,
"librarySectionID", librarySectionID,
"mediaTagPrefix", mediaTagPrefix,
"mediaTagVersion", mediaTagVersion,
"thumb", thumb,
"title1", title1,
"viewGroup", viewGroup,
"viewMode", viewMode,
"directory", directory,
"type", type,
"fieldType", fieldType);
}
public final static class Builder {
private Optional<Integer> size = Optional.empty();
private Optional<Boolean> allowSync = Optional.empty();
private Optional<String> art = Optional.empty();
private Optional<String> content = Optional.empty();
private Optional<String> identifier = Optional.empty();
private Optional<Integer> librarySectionID = Optional.empty();
private Optional<String> mediaTagPrefix = Optional.empty();
private Optional<Integer> mediaTagVersion = Optional.empty();
private Optional<String> thumb = Optional.empty();
private Optional<String> title1 = Optional.empty();
private Optional<String> viewGroup = Optional.empty();
private Optional<Integer> viewMode = Optional.empty();
private Optional<? extends List<GetLibraryDetailsDirectory>> directory = Optional.empty();
private Optional<? extends List<GetLibraryDetailsType>> type = Optional.empty();
private Optional<? extends List<GetLibraryDetailsFieldType>> fieldType = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder size(int size) {
Utils.checkNotNull(size, "size");
this.size = Optional.ofNullable(size);
return this;
}
public Builder size(Optional<Integer> size) {
Utils.checkNotNull(size, "size");
this.size = size;
return this;
}
public Builder allowSync(boolean allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = Optional.ofNullable(allowSync);
return this;
}
public Builder allowSync(Optional<Boolean> allowSync) {
Utils.checkNotNull(allowSync, "allowSync");
this.allowSync = allowSync;
return this;
}
public Builder art(String art) {
Utils.checkNotNull(art, "art");
this.art = Optional.ofNullable(art);
return this;
}
public Builder art(Optional<String> art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public Builder content(String content) {
Utils.checkNotNull(content, "content");
this.content = Optional.ofNullable(content);
return this;
}
public Builder content(Optional<String> content) {
Utils.checkNotNull(content, "content");
this.content = content;
return this;
}
public Builder identifier(String identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = Optional.ofNullable(identifier);
return this;
}
public Builder identifier(Optional<String> identifier) {
Utils.checkNotNull(identifier, "identifier");
this.identifier = identifier;
return this;
}
public Builder librarySectionID(int librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = Optional.ofNullable(librarySectionID);
return this;
}
public Builder librarySectionID(Optional<Integer> librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = librarySectionID;
return this;
}
public Builder mediaTagPrefix(String mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
return this;
}
public Builder mediaTagPrefix(Optional<String> mediaTagPrefix) {
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
this.mediaTagPrefix = mediaTagPrefix;
return this;
}
public Builder mediaTagVersion(int mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
return this;
}
public Builder mediaTagVersion(Optional<Integer> mediaTagVersion) {
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
this.mediaTagVersion = mediaTagVersion;
return this;
}
public Builder thumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = Optional.ofNullable(thumb);
return this;
}
public Builder thumb(Optional<String> thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public Builder title1(String title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = Optional.ofNullable(title1);
return this;
}
public Builder title1(Optional<String> title1) {
Utils.checkNotNull(title1, "title1");
this.title1 = title1;
return this;
}
public Builder viewGroup(String viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = Optional.ofNullable(viewGroup);
return this;
}
public Builder viewGroup(Optional<String> viewGroup) {
Utils.checkNotNull(viewGroup, "viewGroup");
this.viewGroup = viewGroup;
return this;
}
public Builder viewMode(int viewMode) {
Utils.checkNotNull(viewMode, "viewMode");
this.viewMode = Optional.ofNullable(viewMode);
return this;
}
public Builder viewMode(Optional<Integer> viewMode) {
Utils.checkNotNull(viewMode, "viewMode");
this.viewMode = viewMode;
return this;
}
public Builder directory(List<GetLibraryDetailsDirectory> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = Optional.ofNullable(directory);
return this;
}
public Builder directory(Optional<? extends List<GetLibraryDetailsDirectory>> directory) {
Utils.checkNotNull(directory, "directory");
this.directory = directory;
return this;
}
public Builder type(List<GetLibraryDetailsType> type) {
Utils.checkNotNull(type, "type");
this.type = Optional.ofNullable(type);
return this;
}
public Builder type(Optional<? extends List<GetLibraryDetailsType>> type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public Builder fieldType(List<GetLibraryDetailsFieldType> fieldType) {
Utils.checkNotNull(fieldType, "fieldType");
this.fieldType = Optional.ofNullable(fieldType);
return this;
}
public Builder fieldType(Optional<? extends List<GetLibraryDetailsFieldType>> fieldType) {
Utils.checkNotNull(fieldType, "fieldType");
this.fieldType = fieldType;
return this;
}
public GetLibraryDetailsMediaContainer build() {
return new GetLibraryDetailsMediaContainer(
size,
allowSync,
art,
content,
identifier,
librarySectionID,
mediaTagPrefix,
mediaTagVersion,
thumb,
title1,
viewGroup,
viewMode,
directory,
type,
fieldType);
}
}
}