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

1423 lines
47 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 GetTopWatchedContentMetadata {
@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("slug")
private Optional<String> slug;
@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;
@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("index")
private Optional<Long> index;
@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("leafCount")
private Optional<Long> leafCount;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("viewedLeafCount")
private Optional<Long> viewedLeafCount;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("childCount")
private Optional<Long> childCount;
@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("globalViewCount")
private Optional<Long> globalViewCount;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("audienceRatingImage")
private Optional<String> audienceRatingImage;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Genre")
private Optional<? extends List<GetTopWatchedContentGenre>> genre;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Country")
private Optional<? extends List<GetTopWatchedContentCountry>> country;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Guid")
private Optional<? extends List<GetTopWatchedContentGuids>> guids;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("Role")
private Optional<? extends List<GetTopWatchedContentRole>> role;
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("User")
private Optional<? extends List<GetTopWatchedContentUser>> user;
@JsonCreator
public GetTopWatchedContentMetadata(
@JsonProperty("ratingKey") Optional<String> ratingKey,
@JsonProperty("key") Optional<String> key,
@JsonProperty("guid") Optional<String> guid,
@JsonProperty("slug") Optional<String> slug,
@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("contentRating") Optional<String> contentRating,
@JsonProperty("summary") Optional<String> summary,
@JsonProperty("index") Optional<Long> index,
@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("leafCount") Optional<Long> leafCount,
@JsonProperty("viewedLeafCount") Optional<Long> viewedLeafCount,
@JsonProperty("childCount") Optional<Long> childCount,
@JsonProperty("addedAt") Optional<Integer> addedAt,
@JsonProperty("updatedAt") Optional<Integer> updatedAt,
@JsonProperty("globalViewCount") Optional<Long> globalViewCount,
@JsonProperty("audienceRatingImage") Optional<String> audienceRatingImage,
@JsonProperty("Genre") Optional<? extends List<GetTopWatchedContentGenre>> genre,
@JsonProperty("Country") Optional<? extends List<GetTopWatchedContentCountry>> country,
@JsonProperty("Guid") Optional<? extends List<GetTopWatchedContentGuids>> guids,
@JsonProperty("Role") Optional<? extends List<GetTopWatchedContentRole>> role,
@JsonProperty("User") Optional<? extends List<GetTopWatchedContentUser>> user) {
Utils.checkNotNull(ratingKey, "ratingKey");
Utils.checkNotNull(key, "key");
Utils.checkNotNull(guid, "guid");
Utils.checkNotNull(slug, "slug");
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(contentRating, "contentRating");
Utils.checkNotNull(summary, "summary");
Utils.checkNotNull(index, "index");
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(leafCount, "leafCount");
Utils.checkNotNull(viewedLeafCount, "viewedLeafCount");
Utils.checkNotNull(childCount, "childCount");
Utils.checkNotNull(addedAt, "addedAt");
Utils.checkNotNull(updatedAt, "updatedAt");
Utils.checkNotNull(globalViewCount, "globalViewCount");
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
Utils.checkNotNull(genre, "genre");
Utils.checkNotNull(country, "country");
Utils.checkNotNull(guids, "guids");
Utils.checkNotNull(role, "role");
Utils.checkNotNull(user, "user");
this.ratingKey = ratingKey;
this.key = key;
this.guid = guid;
this.slug = slug;
this.studio = studio;
this.type = type;
this.title = title;
this.librarySectionTitle = librarySectionTitle;
this.librarySectionID = librarySectionID;
this.librarySectionKey = librarySectionKey;
this.contentRating = contentRating;
this.summary = summary;
this.index = index;
this.audienceRating = audienceRating;
this.year = year;
this.tagline = tagline;
this.thumb = thumb;
this.art = art;
this.duration = duration;
this.originallyAvailableAt = originallyAvailableAt;
this.leafCount = leafCount;
this.viewedLeafCount = viewedLeafCount;
this.childCount = childCount;
this.addedAt = addedAt;
this.updatedAt = updatedAt;
this.globalViewCount = globalViewCount;
this.audienceRatingImage = audienceRatingImage;
this.genre = genre;
this.country = country;
this.guids = guids;
this.role = role;
this.user = user;
}
public GetTopWatchedContentMetadata() {
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());
}
@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> slug() {
return slug;
}
@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;
}
@JsonIgnore
public Optional<String> contentRating() {
return contentRating;
}
@JsonIgnore
public Optional<String> summary() {
return summary;
}
@JsonIgnore
public Optional<Long> index() {
return index;
}
@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<Long> leafCount() {
return leafCount;
}
@JsonIgnore
public Optional<Long> viewedLeafCount() {
return viewedLeafCount;
}
@JsonIgnore
public Optional<Long> childCount() {
return childCount;
}
@JsonIgnore
public Optional<Integer> addedAt() {
return addedAt;
}
@JsonIgnore
public Optional<Integer> updatedAt() {
return updatedAt;
}
@JsonIgnore
public Optional<Long> globalViewCount() {
return globalViewCount;
}
@JsonIgnore
public Optional<String> audienceRatingImage() {
return audienceRatingImage;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetTopWatchedContentGenre>> genre() {
return (Optional<List<GetTopWatchedContentGenre>>) genre;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetTopWatchedContentCountry>> country() {
return (Optional<List<GetTopWatchedContentCountry>>) country;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetTopWatchedContentGuids>> guids() {
return (Optional<List<GetTopWatchedContentGuids>>) guids;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetTopWatchedContentRole>> role() {
return (Optional<List<GetTopWatchedContentRole>>) role;
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<GetTopWatchedContentUser>> user() {
return (Optional<List<GetTopWatchedContentUser>>) user;
}
public final static Builder builder() {
return new Builder();
}
public GetTopWatchedContentMetadata withRatingKey(String ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = Optional.ofNullable(ratingKey);
return this;
}
public GetTopWatchedContentMetadata withRatingKey(Optional<String> ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
return this;
}
public GetTopWatchedContentMetadata withKey(String key) {
Utils.checkNotNull(key, "key");
this.key = Optional.ofNullable(key);
return this;
}
public GetTopWatchedContentMetadata withKey(Optional<String> key) {
Utils.checkNotNull(key, "key");
this.key = key;
return this;
}
public GetTopWatchedContentMetadata withGuid(String guid) {
Utils.checkNotNull(guid, "guid");
this.guid = Optional.ofNullable(guid);
return this;
}
public GetTopWatchedContentMetadata withGuid(Optional<String> guid) {
Utils.checkNotNull(guid, "guid");
this.guid = guid;
return this;
}
public GetTopWatchedContentMetadata withSlug(String slug) {
Utils.checkNotNull(slug, "slug");
this.slug = Optional.ofNullable(slug);
return this;
}
public GetTopWatchedContentMetadata withSlug(Optional<String> slug) {
Utils.checkNotNull(slug, "slug");
this.slug = slug;
return this;
}
public GetTopWatchedContentMetadata withStudio(String studio) {
Utils.checkNotNull(studio, "studio");
this.studio = Optional.ofNullable(studio);
return this;
}
public GetTopWatchedContentMetadata withStudio(Optional<String> studio) {
Utils.checkNotNull(studio, "studio");
this.studio = studio;
return this;
}
public GetTopWatchedContentMetadata withType(String type) {
Utils.checkNotNull(type, "type");
this.type = Optional.ofNullable(type);
return this;
}
public GetTopWatchedContentMetadata withType(Optional<String> type) {
Utils.checkNotNull(type, "type");
this.type = type;
return this;
}
public GetTopWatchedContentMetadata withTitle(String title) {
Utils.checkNotNull(title, "title");
this.title = Optional.ofNullable(title);
return this;
}
public GetTopWatchedContentMetadata withTitle(Optional<String> title) {
Utils.checkNotNull(title, "title");
this.title = title;
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionTitle(String librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = Optional.ofNullable(librarySectionTitle);
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionTitle(Optional<String> librarySectionTitle) {
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
this.librarySectionTitle = librarySectionTitle;
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionID(int librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = Optional.ofNullable(librarySectionID);
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionID(Optional<Integer> librarySectionID) {
Utils.checkNotNull(librarySectionID, "librarySectionID");
this.librarySectionID = librarySectionID;
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionKey(String librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = Optional.ofNullable(librarySectionKey);
return this;
}
public GetTopWatchedContentMetadata withLibrarySectionKey(Optional<String> librarySectionKey) {
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
this.librarySectionKey = librarySectionKey;
return this;
}
public GetTopWatchedContentMetadata withContentRating(String contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = Optional.ofNullable(contentRating);
return this;
}
public GetTopWatchedContentMetadata withContentRating(Optional<String> contentRating) {
Utils.checkNotNull(contentRating, "contentRating");
this.contentRating = contentRating;
return this;
}
public GetTopWatchedContentMetadata withSummary(String summary) {
Utils.checkNotNull(summary, "summary");
this.summary = Optional.ofNullable(summary);
return this;
}
public GetTopWatchedContentMetadata withSummary(Optional<String> summary) {
Utils.checkNotNull(summary, "summary");
this.summary = summary;
return this;
}
public GetTopWatchedContentMetadata withIndex(long index) {
Utils.checkNotNull(index, "index");
this.index = Optional.ofNullable(index);
return this;
}
public GetTopWatchedContentMetadata withIndex(Optional<Long> index) {
Utils.checkNotNull(index, "index");
this.index = index;
return this;
}
public GetTopWatchedContentMetadata withAudienceRating(double audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = Optional.ofNullable(audienceRating);
return this;
}
public GetTopWatchedContentMetadata withAudienceRating(Optional<Double> audienceRating) {
Utils.checkNotNull(audienceRating, "audienceRating");
this.audienceRating = audienceRating;
return this;
}
public GetTopWatchedContentMetadata withYear(int year) {
Utils.checkNotNull(year, "year");
this.year = Optional.ofNullable(year);
return this;
}
public GetTopWatchedContentMetadata withYear(Optional<Integer> year) {
Utils.checkNotNull(year, "year");
this.year = year;
return this;
}
public GetTopWatchedContentMetadata withTagline(String tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = Optional.ofNullable(tagline);
return this;
}
public GetTopWatchedContentMetadata withTagline(Optional<String> tagline) {
Utils.checkNotNull(tagline, "tagline");
this.tagline = tagline;
return this;
}
public GetTopWatchedContentMetadata withThumb(String thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = Optional.ofNullable(thumb);
return this;
}
public GetTopWatchedContentMetadata withThumb(Optional<String> thumb) {
Utils.checkNotNull(thumb, "thumb");
this.thumb = thumb;
return this;
}
public GetTopWatchedContentMetadata withArt(String art) {
Utils.checkNotNull(art, "art");
this.art = Optional.ofNullable(art);
return this;
}
public GetTopWatchedContentMetadata withArt(Optional<String> art) {
Utils.checkNotNull(art, "art");
this.art = art;
return this;
}
public GetTopWatchedContentMetadata withDuration(int duration) {
Utils.checkNotNull(duration, "duration");
this.duration = Optional.ofNullable(duration);
return this;
}
public GetTopWatchedContentMetadata withDuration(Optional<Integer> duration) {
Utils.checkNotNull(duration, "duration");
this.duration = duration;
return this;
}
public GetTopWatchedContentMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt);
return this;
}
public GetTopWatchedContentMetadata withOriginallyAvailableAt(Optional<LocalDate> originallyAvailableAt) {
Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt");
this.originallyAvailableAt = originallyAvailableAt;
return this;
}
public GetTopWatchedContentMetadata withLeafCount(long leafCount) {
Utils.checkNotNull(leafCount, "leafCount");
this.leafCount = Optional.ofNullable(leafCount);
return this;
}
public GetTopWatchedContentMetadata withLeafCount(Optional<Long> leafCount) {
Utils.checkNotNull(leafCount, "leafCount");
this.leafCount = leafCount;
return this;
}
public GetTopWatchedContentMetadata withViewedLeafCount(long viewedLeafCount) {
Utils.checkNotNull(viewedLeafCount, "viewedLeafCount");
this.viewedLeafCount = Optional.ofNullable(viewedLeafCount);
return this;
}
public GetTopWatchedContentMetadata withViewedLeafCount(Optional<Long> viewedLeafCount) {
Utils.checkNotNull(viewedLeafCount, "viewedLeafCount");
this.viewedLeafCount = viewedLeafCount;
return this;
}
public GetTopWatchedContentMetadata withChildCount(long childCount) {
Utils.checkNotNull(childCount, "childCount");
this.childCount = Optional.ofNullable(childCount);
return this;
}
public GetTopWatchedContentMetadata withChildCount(Optional<Long> childCount) {
Utils.checkNotNull(childCount, "childCount");
this.childCount = childCount;
return this;
}
public GetTopWatchedContentMetadata withAddedAt(int addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = Optional.ofNullable(addedAt);
return this;
}
public GetTopWatchedContentMetadata withAddedAt(Optional<Integer> addedAt) {
Utils.checkNotNull(addedAt, "addedAt");
this.addedAt = addedAt;
return this;
}
public GetTopWatchedContentMetadata withUpdatedAt(int updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = Optional.ofNullable(updatedAt);
return this;
}
public GetTopWatchedContentMetadata withUpdatedAt(Optional<Integer> updatedAt) {
Utils.checkNotNull(updatedAt, "updatedAt");
this.updatedAt = updatedAt;
return this;
}
public GetTopWatchedContentMetadata withGlobalViewCount(long globalViewCount) {
Utils.checkNotNull(globalViewCount, "globalViewCount");
this.globalViewCount = Optional.ofNullable(globalViewCount);
return this;
}
public GetTopWatchedContentMetadata withGlobalViewCount(Optional<Long> globalViewCount) {
Utils.checkNotNull(globalViewCount, "globalViewCount");
this.globalViewCount = globalViewCount;
return this;
}
public GetTopWatchedContentMetadata withAudienceRatingImage(String audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = Optional.ofNullable(audienceRatingImage);
return this;
}
public GetTopWatchedContentMetadata withAudienceRatingImage(Optional<String> audienceRatingImage) {
Utils.checkNotNull(audienceRatingImage, "audienceRatingImage");
this.audienceRatingImage = audienceRatingImage;
return this;
}
public GetTopWatchedContentMetadata withGenre(List<GetTopWatchedContentGenre> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = Optional.ofNullable(genre);
return this;
}
public GetTopWatchedContentMetadata withGenre(Optional<? extends List<GetTopWatchedContentGenre>> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = genre;
return this;
}
public GetTopWatchedContentMetadata withCountry(List<GetTopWatchedContentCountry> country) {
Utils.checkNotNull(country, "country");
this.country = Optional.ofNullable(country);
return this;
}
public GetTopWatchedContentMetadata withCountry(Optional<? extends List<GetTopWatchedContentCountry>> country) {
Utils.checkNotNull(country, "country");
this.country = country;
return this;
}
public GetTopWatchedContentMetadata withGuids(List<GetTopWatchedContentGuids> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = Optional.ofNullable(guids);
return this;
}
public GetTopWatchedContentMetadata withGuids(Optional<? extends List<GetTopWatchedContentGuids>> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = guids;
return this;
}
public GetTopWatchedContentMetadata withRole(List<GetTopWatchedContentRole> role) {
Utils.checkNotNull(role, "role");
this.role = Optional.ofNullable(role);
return this;
}
public GetTopWatchedContentMetadata withRole(Optional<? extends List<GetTopWatchedContentRole>> role) {
Utils.checkNotNull(role, "role");
this.role = role;
return this;
}
public GetTopWatchedContentMetadata withUser(List<GetTopWatchedContentUser> user) {
Utils.checkNotNull(user, "user");
this.user = Optional.ofNullable(user);
return this;
}
public GetTopWatchedContentMetadata withUser(Optional<? extends List<GetTopWatchedContentUser>> user) {
Utils.checkNotNull(user, "user");
this.user = user;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetTopWatchedContentMetadata other = (GetTopWatchedContentMetadata) o;
return
Objects.deepEquals(this.ratingKey, other.ratingKey) &&
Objects.deepEquals(this.key, other.key) &&
Objects.deepEquals(this.guid, other.guid) &&
Objects.deepEquals(this.slug, other.slug) &&
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.contentRating, other.contentRating) &&
Objects.deepEquals(this.summary, other.summary) &&
Objects.deepEquals(this.index, other.index) &&
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.leafCount, other.leafCount) &&
Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) &&
Objects.deepEquals(this.childCount, other.childCount) &&
Objects.deepEquals(this.addedAt, other.addedAt) &&
Objects.deepEquals(this.updatedAt, other.updatedAt) &&
Objects.deepEquals(this.globalViewCount, other.globalViewCount) &&
Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) &&
Objects.deepEquals(this.genre, other.genre) &&
Objects.deepEquals(this.country, other.country) &&
Objects.deepEquals(this.guids, other.guids) &&
Objects.deepEquals(this.role, other.role) &&
Objects.deepEquals(this.user, other.user);
}
@Override
public int hashCode() {
return Objects.hash(
ratingKey,
key,
guid,
slug,
studio,
type,
title,
librarySectionTitle,
librarySectionID,
librarySectionKey,
contentRating,
summary,
index,
audienceRating,
year,
tagline,
thumb,
art,
duration,
originallyAvailableAt,
leafCount,
viewedLeafCount,
childCount,
addedAt,
updatedAt,
globalViewCount,
audienceRatingImage,
genre,
country,
guids,
role,
user);
}
@Override
public String toString() {
return Utils.toString(GetTopWatchedContentMetadata.class,
"ratingKey", ratingKey,
"key", key,
"guid", guid,
"slug", slug,
"studio", studio,
"type", type,
"title", title,
"librarySectionTitle", librarySectionTitle,
"librarySectionID", librarySectionID,
"librarySectionKey", librarySectionKey,
"contentRating", contentRating,
"summary", summary,
"index", index,
"audienceRating", audienceRating,
"year", year,
"tagline", tagline,
"thumb", thumb,
"art", art,
"duration", duration,
"originallyAvailableAt", originallyAvailableAt,
"leafCount", leafCount,
"viewedLeafCount", viewedLeafCount,
"childCount", childCount,
"addedAt", addedAt,
"updatedAt", updatedAt,
"globalViewCount", globalViewCount,
"audienceRatingImage", audienceRatingImage,
"genre", genre,
"country", country,
"guids", guids,
"role", role,
"user", user);
}
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> slug = 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> contentRating = Optional.empty();
private Optional<String> summary = Optional.empty();
private Optional<Long> index = 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<Long> leafCount = Optional.empty();
private Optional<Long> viewedLeafCount = Optional.empty();
private Optional<Long> childCount = Optional.empty();
private Optional<Integer> addedAt = Optional.empty();
private Optional<Integer> updatedAt = Optional.empty();
private Optional<Long> globalViewCount = Optional.empty();
private Optional<String> audienceRatingImage = Optional.empty();
private Optional<? extends List<GetTopWatchedContentGenre>> genre = Optional.empty();
private Optional<? extends List<GetTopWatchedContentCountry>> country = Optional.empty();
private Optional<? extends List<GetTopWatchedContentGuids>> guids = Optional.empty();
private Optional<? extends List<GetTopWatchedContentRole>> role = Optional.empty();
private Optional<? extends List<GetTopWatchedContentUser>> user = 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 slug(String slug) {
Utils.checkNotNull(slug, "slug");
this.slug = Optional.ofNullable(slug);
return this;
}
public Builder slug(Optional<String> slug) {
Utils.checkNotNull(slug, "slug");
this.slug = slug;
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;
}
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 index(long index) {
Utils.checkNotNull(index, "index");
this.index = Optional.ofNullable(index);
return this;
}
public Builder index(Optional<Long> index) {
Utils.checkNotNull(index, "index");
this.index = index;
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 leafCount(long leafCount) {
Utils.checkNotNull(leafCount, "leafCount");
this.leafCount = Optional.ofNullable(leafCount);
return this;
}
public Builder leafCount(Optional<Long> leafCount) {
Utils.checkNotNull(leafCount, "leafCount");
this.leafCount = leafCount;
return this;
}
public Builder viewedLeafCount(long viewedLeafCount) {
Utils.checkNotNull(viewedLeafCount, "viewedLeafCount");
this.viewedLeafCount = Optional.ofNullable(viewedLeafCount);
return this;
}
public Builder viewedLeafCount(Optional<Long> viewedLeafCount) {
Utils.checkNotNull(viewedLeafCount, "viewedLeafCount");
this.viewedLeafCount = viewedLeafCount;
return this;
}
public Builder childCount(long childCount) {
Utils.checkNotNull(childCount, "childCount");
this.childCount = Optional.ofNullable(childCount);
return this;
}
public Builder childCount(Optional<Long> childCount) {
Utils.checkNotNull(childCount, "childCount");
this.childCount = childCount;
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 globalViewCount(long globalViewCount) {
Utils.checkNotNull(globalViewCount, "globalViewCount");
this.globalViewCount = Optional.ofNullable(globalViewCount);
return this;
}
public Builder globalViewCount(Optional<Long> globalViewCount) {
Utils.checkNotNull(globalViewCount, "globalViewCount");
this.globalViewCount = globalViewCount;
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 genre(List<GetTopWatchedContentGenre> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = Optional.ofNullable(genre);
return this;
}
public Builder genre(Optional<? extends List<GetTopWatchedContentGenre>> genre) {
Utils.checkNotNull(genre, "genre");
this.genre = genre;
return this;
}
public Builder country(List<GetTopWatchedContentCountry> country) {
Utils.checkNotNull(country, "country");
this.country = Optional.ofNullable(country);
return this;
}
public Builder country(Optional<? extends List<GetTopWatchedContentCountry>> country) {
Utils.checkNotNull(country, "country");
this.country = country;
return this;
}
public Builder guids(List<GetTopWatchedContentGuids> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = Optional.ofNullable(guids);
return this;
}
public Builder guids(Optional<? extends List<GetTopWatchedContentGuids>> guids) {
Utils.checkNotNull(guids, "guids");
this.guids = guids;
return this;
}
public Builder role(List<GetTopWatchedContentRole> role) {
Utils.checkNotNull(role, "role");
this.role = Optional.ofNullable(role);
return this;
}
public Builder role(Optional<? extends List<GetTopWatchedContentRole>> role) {
Utils.checkNotNull(role, "role");
this.role = role;
return this;
}
public Builder user(List<GetTopWatchedContentUser> user) {
Utils.checkNotNull(user, "user");
this.user = Optional.ofNullable(user);
return this;
}
public Builder user(Optional<? extends List<GetTopWatchedContentUser>> user) {
Utils.checkNotNull(user, "user");
this.user = user;
return this;
}
public GetTopWatchedContentMetadata build() {
return new GetTopWatchedContentMetadata(
ratingKey,
key,
guid,
slug,
studio,
type,
title,
librarySectionTitle,
librarySectionID,
librarySectionKey,
contentRating,
summary,
index,
audienceRating,
year,
tagline,
thumb,
art,
duration,
originallyAvailableAt,
leafCount,
viewedLeafCount,
childCount,
addedAt,
updatedAt,
globalViewCount,
audienceRatingImage,
genre,
country,
guids,
role,
user);
}
}
}