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

1769 lines
60 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.Double;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class GetMetaDataByRatingKeyMetadata {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("ratingKey")
private Optional<String> ratingKey;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("key")
private Optional<String> key;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("guid")
private Optional<String> guid;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("studio")
private Optional<String> studio;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("type")
private Optional<String> type;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("title")
private Optional<String> title;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("librarySectionTitle")
private Optional<String> librarySectionTitle;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("librarySectionID")
private Optional<Integer> librarySectionID;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("librarySectionKey")
private Optional<String> librarySectionKey;
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("grandparentTitle")
private Optional<String> grandparentTitle;
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("parentTitle")
private Optional<String> parentTitle;
/**
* The orginal untranslated name of the media item when non-english.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("originalTitle")
private Optional<String> originalTitle;
/**
* The index starting from 0 of this media item in the MetaData array.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("index")
private Optional<Long> index;
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("parentIndex")
private Optional<Long> parentIndex;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("contentRating")
private Optional<String> contentRating;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("summary")
private Optional<String> summary;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("rating")
private Optional<Double> rating;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("audienceRating")
private Optional<Double> audienceRating;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("year")
private Optional<Integer> year;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("tagline")
private Optional<String> tagline;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("thumb")
private Optional<String> thumb;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("art")
private Optional<String> art;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("duration")
private Optional<Integer> duration;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("originallyAvailableAt")
private Optional<LocalDate> originallyAvailableAt;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("addedAt")
private Optional<Integer> addedAt;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("updatedAt")
private Optional<Integer> updatedAt;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("audienceRatingImage")
private Optional<String> audienceRatingImage;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("hasPremiumPrimaryExtra")
private Optional<String> hasPremiumPrimaryExtra;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("ratingImage")
private Optional<String> ratingImage;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Media")
private Optional<? extends List<GetMetaDataByRatingKeyMedia>> media;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Genre")
private Optional<? extends List<GetMetaDataByRatingKeyGenre>> genre;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Country")
private Optional<? extends List<GetMetaDataByRatingKeyCountry>> country;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Guid")
private Optional<? extends List<Guids>> guids;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Rating")
private Optional<? extends List<Ratings>> ratings;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Director")
private Optional<? extends List<GetMetaDataByRatingKeyDirector>> director;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Writer")
private Optional<? extends List<GetMetaDataByRatingKeyWriter>> writer;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Role")
private Optional<? extends List<GetMetaDataByRatingKeyRole>> role;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Producer")
private Optional<? extends List<Producer>> producer;
@JsonCreator
public GetMetaDataByRatingKeyMetadata(
@JsonProperty("ratingKey") Optional<String> ratingKey,
@JsonProperty("key") Optional<String> key,
@JsonProperty("guid") Optional<String> guid,
@JsonProperty("studio") Optional<String> studio,
@JsonProperty("type") Optional<String> type,
@JsonProperty("title") Optional<String> title,
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
@JsonProperty("grandparentTitle") Optional<String> grandparentTitle,
@JsonProperty("parentTitle") Optional<String> parentTitle,
@JsonProperty("originalTitle") Optional<String> originalTitle,
@JsonProperty("index") Optional<Long> index,
@JsonProperty("parentIndex") Optional<Long> parentIndex,
@JsonProperty("contentRating") Optional<String> contentRating,
@JsonProperty("summary") Optional<String> summary,
@JsonProperty("rating") Optional<Double> rating,
@JsonProperty("audienceRating") Optional<Double> audienceRating,
@JsonProperty("year") Optional<Integer> year,
@JsonProperty("tagline") Optional<String> tagline,
@JsonProperty("thumb") Optional<String> thumb,
@JsonProperty("art") Optional<String> art,
@JsonProperty("duration") Optional<Integer> duration,
@JsonProperty("originallyAvailableAt") Optional<LocalDate> originallyAvailableAt,
@JsonProperty("addedAt") Optional<Integer> addedAt,
@JsonProperty("updatedAt") Optional<Integer> updatedAt,
@JsonProperty("audienceRatingImage") Optional<String> audienceRatingImage,
@JsonProperty("hasPremiumPrimaryExtra") Optional<String> hasPremiumPrimaryExtra,
@JsonProperty("ratingImage") Optional<String> ratingImage,
@JsonProperty("Media") Optional<? extends List<GetMetaDataByRatingKeyMedia>> media,
@JsonProperty("Genre") Optional<? extends List<GetMetaDataByRatingKeyGenre>> genre,
@JsonProperty("Country") Optional<? extends List<GetMetaDataByRatingKeyCountry>> country,
@JsonProperty("Guid") Optional<? extends List<Guids>> guids,
@JsonProperty("Rating") Optional<? extends List<Ratings>> ratings,
@JsonProperty("Director") Optional<? extends List<GetMetaDataByRatingKeyDirector>> director,
@JsonProperty("Writer") Optional<? extends List<GetMetaDataByRatingKeyWriter>> writer,
@JsonProperty("Role") Optional<? extends List<GetMetaDataByRatingKeyRole>> role,
@JsonProperty("Producer") Optional<? extends List<Producer>> producer) {
Utils.checkNotNull(ratingKey, "ratingKey");
Utils.checkNotNull(key, "key");
Utils.checkNotNull(guid, "guid");
Utils.checkNotNull(studio, "studio");
Utils.checkNotNull(type, "type");
Utils.checkNotNull(title, "title");
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
Utils.checkNotNull(librarySectionID, "librarySectionID");
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
Utils.checkNotNull(parentTitle, "parentTitle");
Utils.checkNotNull(originalTitle, "originalTitle");
Utils.checkNotNull(index, "index");
Utils.checkNotNull(parentIndex, "parentIndex");
Utils.checkNotNull(contentRating, "contentRating");
Utils.checkNotNull(summary, "summary");
Utils.checkNotNull(rating, "rating");
Utils.checkNotNull(audienceRating, "audienceRating");
Utils.checkNotNull(year, "year");
Utils.checkNotNull(tagline, "tagline");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(art, "art");
Utils.checkNotNull(duration, "duration");
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
Utils.checkNotNull(addedAt, "addedAt");
Utils.checkNotNull(updatedAt, "updatedAt");
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra");
Utils.checkNotNull(ratingImage, "ratingImage");
Utils.checkNotNull(media, "media");
Utils.checkNotNull(genre, "genre");
Utils.checkNotNull(country, "country");
Utils.checkNotNull(guids, "guids");
Utils.checkNotNull(ratings, "ratings");
Utils.checkNotNull(director, "director");
Utils.checkNotNull(writer, "writer");
Utils.checkNotNull(role, "role");
Utils.checkNotNull(producer, "producer");
this.ratingKey = ratingKey;
this.key = key;
this.guid = guid;
this.studio = studio;
this.type = type;
this.title = title;
this.librarySectionTitle = librarySectionTitle;
this.librarySectionID = librarySectionID;
this.librarySectionKey = librarySectionKey;
this.grandparentTitle = grandparentTitle;
this.parentTitle = parentTitle;
this.originalTitle = originalTitle;
this.index = index;
this.parentIndex = parentIndex;
this.contentRating = contentRating;
this.summary = summary;
this.rating = rating;
this.audienceRating = audienceRating;
this.year = year;
this.tagline = tagline;
this.thumb = thumb;
this.art = art;
this.duration = duration;
this.originallyAvailableAt = originallyAvailableAt;
this.addedAt = addedAt;
this.updatedAt = updatedAt;
this.audienceRatingImage = audienceRatingImage;
this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra;
this.ratingImage = ratingImage;
this.media = media;
this.genre = genre;
this.country = country;
this.guids = guids;
this.ratings = ratings;
this.director = director;
this.writer = writer;
this.role = role;
this.producer = producer;
}
public GetMetaDataByRatingKeyMetadata() {
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
@JsonIgnore
public Optional<String> ratingKey() {
return ratingKey;
}
@JsonIgnore
public Optional<String> key() {
return key;
}
@JsonIgnore
public Optional<String> guid() {
return guid;
}
@JsonIgnore
public Optional<String> studio() {
return studio;
}
@JsonIgnore
public Optional<String> type() {
return type;
}
@JsonIgnore
public Optional<String> title() {
return title;
}
@JsonIgnore
public Optional<String> librarySectionTitle() {
return librarySectionTitle;
}
@JsonIgnore
public Optional<Integer> librarySectionID() {
return librarySectionID;
}
@JsonIgnore
public Optional<String> librarySectionKey() {
return librarySectionKey;
}
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
@JsonIgnore
public Optional<String> grandparentTitle() {
return grandparentTitle;
}
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
@JsonIgnore
public Optional<String> parentTitle() {
return parentTitle;
}
/**
* The orginal untranslated name of the media item when non-english.
*/
@JsonIgnore
public Optional<String> originalTitle() {
return originalTitle;
}
/**
* The index starting from 0 of this media item in the MetaData array.
*/
@JsonIgnore
public Optional<Long> index() {
return index;
}
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
@JsonIgnore
public Optional<Long> parentIndex() {
return parentIndex;
}
@JsonIgnore
public Optional<String> contentRating() {
return contentRating;
}
@JsonIgnore
public Optional<String> summary() {
return summary;
}
@JsonIgnore
public Optional<Double> rating() {
return rating;
}
@JsonIgnore
public Optional<Double> audienceRating() {
return audienceRating;
}
@JsonIgnore
public Optional<Integer> year() {
return year;
}
@JsonIgnore
public Optional<String> tagline() {
return tagline;
}
@JsonIgnore
public Optional<String> thumb() {
return thumb;
}
@JsonIgnore
public Optional<String> art() {
return art;
}
@JsonIgnore
public Optional<Integer> duration() {
return duration;
}
@JsonIgnore
public Optional<LocalDate> originallyAvailableAt() {
return originallyAvailableAt;
}
@JsonIgnore
public Optional<Integer> addedAt() {
return addedAt;
}
@JsonIgnore
public Optional<Integer> updatedAt() {
return updatedAt;
}
@JsonIgnore
public Optional<String> audienceRatingImage() {
return audienceRatingImage;
}
@JsonIgnore
public Optional<String> hasPremiumPrimaryExtra() {
return hasPremiumPrimaryExtra;
}
@JsonIgnore
public Optional<String> ratingImage() {
return ratingImage;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyMedia>> media() {
return (Optional<List<GetMetaDataByRatingKeyMedia>>) media;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyGenre>> genre() {
return (Optional<List<GetMetaDataByRatingKeyGenre>>) genre;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyCountry>> country() {
return (Optional<List<GetMetaDataByRatingKeyCountry>>) country;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<Guids>> guids() {
return (Optional<List<Guids>>) guids;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<Ratings>> ratings() {
return (Optional<List<Ratings>>) ratings;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyDirector>> director() {
return (Optional<List<GetMetaDataByRatingKeyDirector>>) director;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyWriter>> writer() {
return (Optional<List<GetMetaDataByRatingKeyWriter>>) writer;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetMetaDataByRatingKeyRole>> role() {
return (Optional<List<GetMetaDataByRatingKeyRole>>) role;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<Producer>> producer() {
return (Optional<List<Producer>>) producer;
}
public final static Builder builder() {
return new Builder();
}
public GetMetaDataByRatingKeyMetadata withRatingKey(String ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = Optional.ofNullable(ratingKey);
return this;
}
public GetMetaDataByRatingKeyMetadata withRatingKey(Optional<String> ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
return this;
}
public GetMetaDataByRatingKeyMetadata withKey(String key) {
Utils.checkNotNull(key, "key");
this.key = Optional.ofNullable(key);
return this;
}
public GetMetaDataByRatingKeyMetadata withKey(Optional<String> key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public GetMetaDataByRatingKeyMetadata withGuid(String guid) {
Utils.checkNotNull(guid, "guid");
this.guid = Optional.ofNullable(guid);
return this;
}
public GetMetaDataByRatingKeyMetadata withGuid(Optional<String> guid) {
Utils.checkNotNull(guid, "guid");
this.guid = guid;
return this;
}
public GetMetaDataByRatingKeyMetadata withStudio(String studio) {
Utils.checkNotNull(studio, "studio");
this.studio = Optional.ofNullable(studio);
return this;
}
public GetMetaDataByRatingKeyMetadata withStudio(Optional<String> studio) {
Utils.checkNotNull(studio, "studio");
this.studio = studio;
return this;
}
public GetMetaDataByRatingKeyMetadata withType(String type) {
Utils.checkNotNull(type, "type");
this.type = Optional.ofNullable(type);
return this;
}
public GetMetaDataByRatingKeyMetadata withType(Optional<String> type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public GetMetaDataByRatingKeyMetadata withTitle(String title) {
Utils.checkNotNull(title, "title");
this.title = Optional.ofNullable(title);
return this;
}
public GetMetaDataByRatingKeyMetadata withTitle(Optional<String> title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionTitle(String librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionTitle(Optional<String> librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = librarySectionTitle;
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionID(int librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = Optional.ofNullable(librarySectionID);
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionID(Optional<Integer> librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = librarySectionID;
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionKey(String librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = Optional.ofNullable(librarySectionKey);
return this;
}
public GetMetaDataByRatingKeyMetadata withLibrarySectionKey(Optional<String> librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = librarySectionKey;
return this;
}
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(String grandparentTitle) {
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
return this;
}
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(Optional<String> grandparentTitle) {
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
this.grandparentTitle = grandparentTitle;
return this;
}
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
public GetMetaDataByRatingKeyMetadata withParentTitle(String parentTitle) {
Utils.checkNotNull(parentTitle, "parentTitle");
this.parentTitle = Optional.ofNullable(parentTitle);
return this;
}
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
public GetMetaDataByRatingKeyMetadata withParentTitle(Optional<String> parentTitle) {
Utils.checkNotNull(parentTitle, "parentTitle");
this.parentTitle = parentTitle;
return this;
}
/**
* The orginal untranslated name of the media item when non-english.
*/
public GetMetaDataByRatingKeyMetadata withOriginalTitle(String originalTitle) {
Utils.checkNotNull(originalTitle, "originalTitle");
this.originalTitle = Optional.ofNullable(originalTitle);
return this;
}
/**
* The orginal untranslated name of the media item when non-english.
*/
public GetMetaDataByRatingKeyMetadata withOriginalTitle(Optional<String> originalTitle) {
Utils.checkNotNull(originalTitle, "originalTitle");
this.originalTitle = originalTitle;
return this;
}
/**
* The index starting from 0 of this media item in the MetaData array.
*/
public GetMetaDataByRatingKeyMetadata withIndex(long index) {
Utils.checkNotNull(index, "index");
this.index = Optional.ofNullable(index);
return this;
}
/**
* The index starting from 0 of this media item in the MetaData array.
*/
public GetMetaDataByRatingKeyMetadata withIndex(Optional<Long> index) {
Utils.checkNotNull(index, "index");
this.index = index;
return this;
}
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
public GetMetaDataByRatingKeyMetadata withParentIndex(long parentIndex) {
Utils.checkNotNull(parentIndex, "parentIndex");
this.parentIndex = Optional.ofNullable(parentIndex);
return this;
}
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
public GetMetaDataByRatingKeyMetadata withParentIndex(Optional<Long> parentIndex) {
Utils.checkNotNull(parentIndex, "parentIndex");
this.parentIndex = parentIndex;
return this;
}
public GetMetaDataByRatingKeyMetadata withContentRating(String contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = Optional.ofNullable(contentRating);
return this;
}
public GetMetaDataByRatingKeyMetadata withContentRating(Optional<String> contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = contentRating;
return this;
}
public GetMetaDataByRatingKeyMetadata withSummary(String summary) {
Utils.checkNotNull(summary, "summary");
this.summary = Optional.ofNullable(summary);
return this;
}
public GetMetaDataByRatingKeyMetadata withSummary(Optional<String> summary) {
Utils.checkNotNull(summary, "summary");
this.summary = summary;
return this;
}
public GetMetaDataByRatingKeyMetadata withRating(double rating) {
Utils.checkNotNull(rating, "rating");
this.rating = Optional.ofNullable(rating);
return this;
}
public GetMetaDataByRatingKeyMetadata withRating(Optional<Double> rating) {
Utils.checkNotNull(rating, "rating");
this.rating = rating;
return this;
}
public GetMetaDataByRatingKeyMetadata withAudienceRating(double audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = Optional.ofNullable(audienceRating);
return this;
}
public GetMetaDataByRatingKeyMetadata withAudienceRating(Optional<Double> audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = audienceRating;
return this;
}
public GetMetaDataByRatingKeyMetadata withYear(int year) {
Utils.checkNotNull(year, "year");
this.year = Optional.ofNullable(year);
return this;
}
public GetMetaDataByRatingKeyMetadata withYear(Optional<Integer> year) {
Utils.checkNotNull(year, "year");
this.year = year;
return this;
}
public GetMetaDataByRatingKeyMetadata withTagline(String tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = Optional.ofNullable(tagline);
return this;
}
public GetMetaDataByRatingKeyMetadata withTagline(Optional<String> tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = tagline;
return this;
}
public GetMetaDataByRatingKeyMetadata withThumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = Optional.ofNullable(thumb);
return this;
}
public GetMetaDataByRatingKeyMetadata withThumb(Optional<String> thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public GetMetaDataByRatingKeyMetadata withArt(String art) {
Utils.checkNotNull(art, "art");
this.art = Optional.ofNullable(art);
return this;
}
public GetMetaDataByRatingKeyMetadata withArt(Optional<String> art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public GetMetaDataByRatingKeyMetadata withDuration(int duration) {
Utils.checkNotNull(duration, "duration");
this.duration = Optional.ofNullable(duration);
return this;
}
public GetMetaDataByRatingKeyMetadata withDuration(Optional<Integer> duration) {
Utils.checkNotNull(duration, "duration");
this.duration = duration;
return this;
}
public GetMetaDataByRatingKeyMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt);
return this;
}
public GetMetaDataByRatingKeyMetadata withOriginallyAvailableAt(Optional<LocalDate> originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = originallyAvailableAt;
return this;
}
public GetMetaDataByRatingKeyMetadata withAddedAt(int addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = Optional.ofNullable(addedAt);
return this;
}
public GetMetaDataByRatingKeyMetadata withAddedAt(Optional<Integer> addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = addedAt;
return this;
}
public GetMetaDataByRatingKeyMetadata withUpdatedAt(int updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = Optional.ofNullable(updatedAt);
return this;
}
public GetMetaDataByRatingKeyMetadata withUpdatedAt(Optional<Integer> updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = updatedAt;
return this;
}
public GetMetaDataByRatingKeyMetadata withAudienceRatingImage(String audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = Optional.ofNullable(audienceRatingImage);
return this;
}
public GetMetaDataByRatingKeyMetadata withAudienceRatingImage(Optional<String> audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = audienceRatingImage;
return this;
}
public GetMetaDataByRatingKeyMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) {
Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra");
this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra);
return this;
}
public GetMetaDataByRatingKeyMetadata withHasPremiumPrimaryExtra(Optional<String> hasPremiumPrimaryExtra) {
Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra");
this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra;
return this;
}
public GetMetaDataByRatingKeyMetadata withRatingImage(String ratingImage) {
Utils.checkNotNull(ratingImage, "ratingImage");
this.ratingImage = Optional.ofNullable(ratingImage);
return this;
}
public GetMetaDataByRatingKeyMetadata withRatingImage(Optional<String> ratingImage) {
Utils.checkNotNull(ratingImage, "ratingImage");
this.ratingImage = ratingImage;
return this;
}
public GetMetaDataByRatingKeyMetadata withMedia(List<GetMetaDataByRatingKeyMedia> media) {
Utils.checkNotNull(media, "media");
this.media = Optional.ofNullable(media);
return this;
}
public GetMetaDataByRatingKeyMetadata withMedia(Optional<? extends List<GetMetaDataByRatingKeyMedia>> media) {
Utils.checkNotNull(media, "media");
this.media = media;
return this;
}
public GetMetaDataByRatingKeyMetadata withGenre(List<GetMetaDataByRatingKeyGenre> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = Optional.ofNullable(genre);
return this;
}
public GetMetaDataByRatingKeyMetadata withGenre(Optional<? extends List<GetMetaDataByRatingKeyGenre>> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = genre;
return this;
}
public GetMetaDataByRatingKeyMetadata withCountry(List<GetMetaDataByRatingKeyCountry> country) {
Utils.checkNotNull(country, "country");
this.country = Optional.ofNullable(country);
return this;
}
public GetMetaDataByRatingKeyMetadata withCountry(Optional<? extends List<GetMetaDataByRatingKeyCountry>> country) {
Utils.checkNotNull(country, "country");
this.country = country;
return this;
}
public GetMetaDataByRatingKeyMetadata withGuids(List<Guids> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = Optional.ofNullable(guids);
return this;
}
public GetMetaDataByRatingKeyMetadata withGuids(Optional<? extends List<Guids>> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = guids;
return this;
}
public GetMetaDataByRatingKeyMetadata withRatings(List<Ratings> ratings) {
Utils.checkNotNull(ratings, "ratings");
this.ratings = Optional.ofNullable(ratings);
return this;
}
public GetMetaDataByRatingKeyMetadata withRatings(Optional<? extends List<Ratings>> ratings) {
Utils.checkNotNull(ratings, "ratings");
this.ratings = ratings;
return this;
}
public GetMetaDataByRatingKeyMetadata withDirector(List<GetMetaDataByRatingKeyDirector> director) {
Utils.checkNotNull(director, "director");
this.director = Optional.ofNullable(director);
return this;
}
public GetMetaDataByRatingKeyMetadata withDirector(Optional<? extends List<GetMetaDataByRatingKeyDirector>> director) {
Utils.checkNotNull(director, "director");
this.director = director;
return this;
}
public GetMetaDataByRatingKeyMetadata withWriter(List<GetMetaDataByRatingKeyWriter> writer) {
Utils.checkNotNull(writer, "writer");
this.writer = Optional.ofNullable(writer);
return this;
}
public GetMetaDataByRatingKeyMetadata withWriter(Optional<? extends List<GetMetaDataByRatingKeyWriter>> writer) {
Utils.checkNotNull(writer, "writer");
this.writer = writer;
return this;
}
public GetMetaDataByRatingKeyMetadata withRole(List<GetMetaDataByRatingKeyRole> role) {
Utils.checkNotNull(role, "role");
this.role = Optional.ofNullable(role);
return this;
}
public GetMetaDataByRatingKeyMetadata withRole(Optional<? extends List<GetMetaDataByRatingKeyRole>> role) {
Utils.checkNotNull(role, "role");
this.role = role;
return this;
}
public GetMetaDataByRatingKeyMetadata withProducer(List<Producer> producer) {
Utils.checkNotNull(producer, "producer");
this.producer = Optional.ofNullable(producer);
return this;
}
public GetMetaDataByRatingKeyMetadata withProducer(Optional<? extends List<Producer>> producer) {
Utils.checkNotNull(producer, "producer");
this.producer = producer;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetMetaDataByRatingKeyMetadata other = (GetMetaDataByRatingKeyMetadata) o;
return
Objects.deepEquals(this.ratingKey, other.ratingKey) &&
Objects.deepEquals(this.key, other.key) &&
Objects.deepEquals(this.guid, other.guid) &&
Objects.deepEquals(this.studio, other.studio) &&
Objects.deepEquals(this.type, other.type) &&
Objects.deepEquals(this.title, other.title) &&
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) &&
Objects.deepEquals(this.parentTitle, other.parentTitle) &&
Objects.deepEquals(this.originalTitle, other.originalTitle) &&
Objects.deepEquals(this.index, other.index) &&
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
Objects.deepEquals(this.contentRating, other.contentRating) &&
Objects.deepEquals(this.summary, other.summary) &&
Objects.deepEquals(this.rating, other.rating) &&
Objects.deepEquals(this.audienceRating, other.audienceRating) &&
Objects.deepEquals(this.year, other.year) &&
Objects.deepEquals(this.tagline, other.tagline) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.art, other.art) &&
Objects.deepEquals(this.duration, other.duration) &&
Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) &&
Objects.deepEquals(this.addedAt, other.addedAt) &&
Objects.deepEquals(this.updatedAt, other.updatedAt) &&
Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) &&
Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) &&
Objects.deepEquals(this.ratingImage, other.ratingImage) &&
Objects.deepEquals(this.media, other.media) &&
Objects.deepEquals(this.genre, other.genre) &&
Objects.deepEquals(this.country, other.country) &&
Objects.deepEquals(this.guids, other.guids) &&
Objects.deepEquals(this.ratings, other.ratings) &&
Objects.deepEquals(this.director, other.director) &&
Objects.deepEquals(this.writer, other.writer) &&
Objects.deepEquals(this.role, other.role) &&
Objects.deepEquals(this.producer, other.producer);
}
@Override
public int hashCode() {
return Objects.hash(
ratingKey,
key,
guid,
studio,
type,
title,
librarySectionTitle,
librarySectionID,
librarySectionKey,
grandparentTitle,
parentTitle,
originalTitle,
index,
parentIndex,
contentRating,
summary,
rating,
audienceRating,
year,
tagline,
thumb,
art,
duration,
originallyAvailableAt,
addedAt,
updatedAt,
audienceRatingImage,
hasPremiumPrimaryExtra,
ratingImage,
media,
genre,
country,
guids,
ratings,
director,
writer,
role,
producer);
}
@Override
public String toString() {
return Utils.toString(GetMetaDataByRatingKeyMetadata.class,
"ratingKey", ratingKey,
"key", key,
"guid", guid,
"studio", studio,
"type", type,
"title", title,
"librarySectionTitle", librarySectionTitle,
"librarySectionID", librarySectionID,
"librarySectionKey", librarySectionKey,
"grandparentTitle", grandparentTitle,
"parentTitle", parentTitle,
"originalTitle", originalTitle,
"index", index,
"parentIndex", parentIndex,
"contentRating", contentRating,
"summary", summary,
"rating", rating,
"audienceRating", audienceRating,
"year", year,
"tagline", tagline,
"thumb", thumb,
"art", art,
"duration", duration,
"originallyAvailableAt", originallyAvailableAt,
"addedAt", addedAt,
"updatedAt", updatedAt,
"audienceRatingImage", audienceRatingImage,
"hasPremiumPrimaryExtra", hasPremiumPrimaryExtra,
"ratingImage", ratingImage,
"media", media,
"genre", genre,
"country", country,
"guids", guids,
"ratings", ratings,
"director", director,
"writer", writer,
"role", role,
"producer", producer);
}
public final static class Builder {
private Optional<String> ratingKey = Optional.empty();
private Optional<String> key = Optional.empty();
private Optional<String> guid = Optional.empty();
private Optional<String> studio = Optional.empty();
private Optional<String> type = Optional.empty();
private Optional<String> title = Optional.empty();
private Optional<String> librarySectionTitle = Optional.empty();
private Optional<Integer> librarySectionID = Optional.empty();
private Optional<String> librarySectionKey = Optional.empty();
private Optional<String> grandparentTitle = Optional.empty();
private Optional<String> parentTitle = Optional.empty();
private Optional<String> originalTitle = Optional.empty();
private Optional<Long> index = Optional.empty();
private Optional<Long> parentIndex = Optional.empty();
private Optional<String> contentRating = Optional.empty();
private Optional<String> summary = Optional.empty();
private Optional<Double> rating = Optional.empty();
private Optional<Double> audienceRating = Optional.empty();
private Optional<Integer> year = Optional.empty();
private Optional<String> tagline = Optional.empty();
private Optional<String> thumb = Optional.empty();
private Optional<String> art = Optional.empty();
private Optional<Integer> duration = Optional.empty();
private Optional<LocalDate> originallyAvailableAt = Optional.empty();
private Optional<Integer> addedAt = Optional.empty();
private Optional<Integer> updatedAt = Optional.empty();
private Optional<String> audienceRatingImage = Optional.empty();
private Optional<String> hasPremiumPrimaryExtra = Optional.empty();
private Optional<String> ratingImage = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyMedia>> media = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyGenre>> genre = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyCountry>> country = Optional.empty();
private Optional<? extends List<Guids>> guids = Optional.empty();
private Optional<? extends List<Ratings>> ratings = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyDirector>> director = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyWriter>> writer = Optional.empty();
private Optional<? extends List<GetMetaDataByRatingKeyRole>> role = Optional.empty();
private Optional<? extends List<Producer>> producer = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder ratingKey(String ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = Optional.ofNullable(ratingKey);
return this;
}
public Builder ratingKey(Optional<String> ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
return this;
}
public Builder key(String key) {
Utils.checkNotNull(key, "key");
this.key = Optional.ofNullable(key);
return this;
}
public Builder key(Optional<String> key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public Builder guid(String guid) {
Utils.checkNotNull(guid, "guid");
this.guid = Optional.ofNullable(guid);
return this;
}
public Builder guid(Optional<String> guid) {
Utils.checkNotNull(guid, "guid");
this.guid = guid;
return this;
}
public Builder studio(String studio) {
Utils.checkNotNull(studio, "studio");
this.studio = Optional.ofNullable(studio);
return this;
}
public Builder studio(Optional<String> studio) {
Utils.checkNotNull(studio, "studio");
this.studio = studio;
return this;
}
public Builder type(String type) {
Utils.checkNotNull(type, "type");
this.type = Optional.ofNullable(type);
return this;
}
public Builder type(Optional<String> type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public Builder title(String title) {
Utils.checkNotNull(title, "title");
this.title = Optional.ofNullable(title);
return this;
}
public Builder title(Optional<String> title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public Builder librarySectionTitle(String librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
return this;
}
public Builder librarySectionTitle(Optional<String> librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = librarySectionTitle;
return this;
}
public Builder 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 librarySectionKey(String librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = Optional.ofNullable(librarySectionKey);
return this;
}
public Builder librarySectionKey(Optional<String> librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = librarySectionKey;
return this;
}
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
public Builder grandparentTitle(String grandparentTitle) {
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
return this;
}
/**
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
*/
public Builder grandparentTitle(Optional<String> grandparentTitle) {
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
this.grandparentTitle = grandparentTitle;
return this;
}
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
public Builder parentTitle(String parentTitle) {
Utils.checkNotNull(parentTitle, "parentTitle");
this.parentTitle = Optional.ofNullable(parentTitle);
return this;
}
/**
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
*/
public Builder parentTitle(Optional<String> parentTitle) {
Utils.checkNotNull(parentTitle, "parentTitle");
this.parentTitle = parentTitle;
return this;
}
/**
* The orginal untranslated name of the media item when non-english.
*/
public Builder originalTitle(String originalTitle) {
Utils.checkNotNull(originalTitle, "originalTitle");
this.originalTitle = Optional.ofNullable(originalTitle);
return this;
}
/**
* The orginal untranslated name of the media item when non-english.
*/
public Builder originalTitle(Optional<String> originalTitle) {
Utils.checkNotNull(originalTitle, "originalTitle");
this.originalTitle = originalTitle;
return this;
}
/**
* The index starting from 0 of this media item in the MetaData array.
*/
public Builder index(long index) {
Utils.checkNotNull(index, "index");
this.index = Optional.ofNullable(index);
return this;
}
/**
* The index starting from 0 of this media item in the MetaData array.
*/
public Builder index(Optional<Long> index) {
Utils.checkNotNull(index, "index");
this.index = index;
return this;
}
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
public Builder parentIndex(long parentIndex) {
Utils.checkNotNull(parentIndex, "parentIndex");
this.parentIndex = Optional.ofNullable(parentIndex);
return this;
}
/**
* The parent index starting from 0 of this media item in the parent MetaData array.
*/
public Builder parentIndex(Optional<Long> parentIndex) {
Utils.checkNotNull(parentIndex, "parentIndex");
this.parentIndex = parentIndex;
return this;
}
public Builder contentRating(String contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = Optional.ofNullable(contentRating);
return this;
}
public Builder contentRating(Optional<String> contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = contentRating;
return this;
}
public Builder summary(String summary) {
Utils.checkNotNull(summary, "summary");
this.summary = Optional.ofNullable(summary);
return this;
}
public Builder summary(Optional<String> summary) {
Utils.checkNotNull(summary, "summary");
this.summary = summary;
return this;
}
public Builder rating(double rating) {
Utils.checkNotNull(rating, "rating");
this.rating = Optional.ofNullable(rating);
return this;
}
public Builder rating(Optional<Double> rating) {
Utils.checkNotNull(rating, "rating");
this.rating = rating;
return this;
}
public Builder audienceRating(double audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = Optional.ofNullable(audienceRating);
return this;
}
public Builder audienceRating(Optional<Double> audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = audienceRating;
return this;
}
public Builder year(int year) {
Utils.checkNotNull(year, "year");
this.year = Optional.ofNullable(year);
return this;
}
public Builder year(Optional<Integer> year) {
Utils.checkNotNull(year, "year");
this.year = year;
return this;
}
public Builder tagline(String tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = Optional.ofNullable(tagline);
return this;
}
public Builder tagline(Optional<String> tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = tagline;
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 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 duration(int duration) {
Utils.checkNotNull(duration, "duration");
this.duration = Optional.ofNullable(duration);
return this;
}
public Builder duration(Optional<Integer> duration) {
Utils.checkNotNull(duration, "duration");
this.duration = duration;
return this;
}
public Builder originallyAvailableAt(LocalDate originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt);
return this;
}
public Builder originallyAvailableAt(Optional<LocalDate> originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = originallyAvailableAt;
return this;
}
public Builder addedAt(int addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = Optional.ofNullable(addedAt);
return this;
}
public Builder addedAt(Optional<Integer> addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = addedAt;
return this;
}
public Builder updatedAt(int updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = Optional.ofNullable(updatedAt);
return this;
}
public Builder updatedAt(Optional<Integer> updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = updatedAt;
return this;
}
public Builder audienceRatingImage(String audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = Optional.ofNullable(audienceRatingImage);
return this;
}
public Builder audienceRatingImage(Optional<String> audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = audienceRatingImage;
return this;
}
public Builder hasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) {
Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra");
this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra);
return this;
}
public Builder hasPremiumPrimaryExtra(Optional<String> hasPremiumPrimaryExtra) {
Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra");
this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra;
return this;
}
public Builder ratingImage(String ratingImage) {
Utils.checkNotNull(ratingImage, "ratingImage");
this.ratingImage = Optional.ofNullable(ratingImage);
return this;
}
public Builder ratingImage(Optional<String> ratingImage) {
Utils.checkNotNull(ratingImage, "ratingImage");
this.ratingImage = ratingImage;
return this;
}
public Builder media(List<GetMetaDataByRatingKeyMedia> media) {
Utils.checkNotNull(media, "media");
this.media = Optional.ofNullable(media);
return this;
}
public Builder media(Optional<? extends List<GetMetaDataByRatingKeyMedia>> media) {
Utils.checkNotNull(media, "media");
this.media = media;
return this;
}
public Builder genre(List<GetMetaDataByRatingKeyGenre> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = Optional.ofNullable(genre);
return this;
}
public Builder genre(Optional<? extends List<GetMetaDataByRatingKeyGenre>> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = genre;
return this;
}
public Builder country(List<GetMetaDataByRatingKeyCountry> country) {
Utils.checkNotNull(country, "country");
this.country = Optional.ofNullable(country);
return this;
}
public Builder country(Optional<? extends List<GetMetaDataByRatingKeyCountry>> country) {
Utils.checkNotNull(country, "country");
this.country = country;
return this;
}
public Builder guids(List<Guids> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = Optional.ofNullable(guids);
return this;
}
public Builder guids(Optional<? extends List<Guids>> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = guids;
return this;
}
public Builder ratings(List<Ratings> ratings) {
Utils.checkNotNull(ratings, "ratings");
this.ratings = Optional.ofNullable(ratings);
return this;
}
public Builder ratings(Optional<? extends List<Ratings>> ratings) {
Utils.checkNotNull(ratings, "ratings");
this.ratings = ratings;
return this;
}
public Builder director(List<GetMetaDataByRatingKeyDirector> director) {
Utils.checkNotNull(director, "director");
this.director = Optional.ofNullable(director);
return this;
}
public Builder director(Optional<? extends List<GetMetaDataByRatingKeyDirector>> director) {
Utils.checkNotNull(director, "director");
this.director = director;
return this;
}
public Builder writer(List<GetMetaDataByRatingKeyWriter> writer) {
Utils.checkNotNull(writer, "writer");
this.writer = Optional.ofNullable(writer);
return this;
}
public Builder writer(Optional<? extends List<GetMetaDataByRatingKeyWriter>> writer) {
Utils.checkNotNull(writer, "writer");
this.writer = writer;
return this;
}
public Builder role(List<GetMetaDataByRatingKeyRole> role) {
Utils.checkNotNull(role, "role");
this.role = Optional.ofNullable(role);
return this;
}
public Builder role(Optional<? extends List<GetMetaDataByRatingKeyRole>> role) {
Utils.checkNotNull(role, "role");
this.role = role;
return this;
}
public Builder producer(List<Producer> producer) {
Utils.checkNotNull(producer, "producer");
this.producer = Optional.ofNullable(producer);
return this;
}
public Builder producer(Optional<? extends List<Producer>> producer) {
Utils.checkNotNull(producer, "producer");
this.producer = producer;
return this;
}
public GetMetaDataByRatingKeyMetadata build() {
return new GetMetaDataByRatingKeyMetadata(
ratingKey,
key,
guid,
studio,
type,
title,
librarySectionTitle,
librarySectionID,
librarySectionKey,
grandparentTitle,
parentTitle,
originalTitle,
index,
parentIndex,
contentRating,
summary,
rating,
audienceRating,
year,
tagline,
thumb,
art,
duration,
originallyAvailableAt,
addedAt,
updatedAt,
audienceRatingImage,
hasPremiumPrimaryExtra,
ratingImage,
media,
genre,
country,
guids,
ratings,
director,
writer,
role,
producer);
}
}
}