/* * 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.Integer; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; public class GetMetadataChildrenMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentStudio") private Optional parentStudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTheme") private Optional parentTheme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedLeafCount") private Optional viewedLeafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("userRating") private Optional userRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("skipCount") private Optional skipCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastRatedAt") private Optional lastRatedAt; @JsonCreator public GetMetadataChildrenMetadata( @JsonProperty("ratingKey") Optional ratingKey, @JsonProperty("key") Optional key, @JsonProperty("parentRatingKey") Optional parentRatingKey, @JsonProperty("guid") Optional guid, @JsonProperty("parentGuid") Optional parentGuid, @JsonProperty("parentStudio") Optional parentStudio, @JsonProperty("type") Optional type, @JsonProperty("title") Optional title, @JsonProperty("parentKey") Optional parentKey, @JsonProperty("parentTitle") Optional parentTitle, @JsonProperty("summary") Optional summary, @JsonProperty("index") Optional index, @JsonProperty("parentIndex") Optional parentIndex, @JsonProperty("viewCount") Optional viewCount, @JsonProperty("lastViewedAt") Optional lastViewedAt, @JsonProperty("parentYear") Optional parentYear, @JsonProperty("thumb") Optional thumb, @JsonProperty("art") Optional art, @JsonProperty("parentThumb") Optional parentThumb, @JsonProperty("parentTheme") Optional parentTheme, @JsonProperty("leafCount") Optional leafCount, @JsonProperty("viewedLeafCount") Optional viewedLeafCount, @JsonProperty("addedAt") Optional addedAt, @JsonProperty("updatedAt") Optional updatedAt, @JsonProperty("userRating") Optional userRating, @JsonProperty("skipCount") Optional skipCount, @JsonProperty("lastRatedAt") Optional lastRatedAt) { Utils.checkNotNull(ratingKey, "ratingKey"); Utils.checkNotNull(key, "key"); Utils.checkNotNull(parentRatingKey, "parentRatingKey"); Utils.checkNotNull(guid, "guid"); Utils.checkNotNull(parentGuid, "parentGuid"); Utils.checkNotNull(parentStudio, "parentStudio"); Utils.checkNotNull(type, "type"); Utils.checkNotNull(title, "title"); Utils.checkNotNull(parentKey, "parentKey"); Utils.checkNotNull(parentTitle, "parentTitle"); Utils.checkNotNull(summary, "summary"); Utils.checkNotNull(index, "index"); Utils.checkNotNull(parentIndex, "parentIndex"); Utils.checkNotNull(viewCount, "viewCount"); Utils.checkNotNull(lastViewedAt, "lastViewedAt"); Utils.checkNotNull(parentYear, "parentYear"); Utils.checkNotNull(thumb, "thumb"); Utils.checkNotNull(art, "art"); Utils.checkNotNull(parentThumb, "parentThumb"); Utils.checkNotNull(parentTheme, "parentTheme"); Utils.checkNotNull(leafCount, "leafCount"); Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); Utils.checkNotNull(addedAt, "addedAt"); Utils.checkNotNull(updatedAt, "updatedAt"); Utils.checkNotNull(userRating, "userRating"); Utils.checkNotNull(skipCount, "skipCount"); Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.ratingKey = ratingKey; this.key = key; this.parentRatingKey = parentRatingKey; this.guid = guid; this.parentGuid = parentGuid; this.parentStudio = parentStudio; this.type = type; this.title = title; this.parentKey = parentKey; this.parentTitle = parentTitle; this.summary = summary; this.index = index; this.parentIndex = parentIndex; this.viewCount = viewCount; this.lastViewedAt = lastViewedAt; this.parentYear = parentYear; this.thumb = thumb; this.art = art; this.parentThumb = parentThumb; this.parentTheme = parentTheme; this.leafCount = leafCount; this.viewedLeafCount = viewedLeafCount; this.addedAt = addedAt; this.updatedAt = updatedAt; this.userRating = userRating; this.skipCount = skipCount; this.lastRatedAt = lastRatedAt; } public GetMetadataChildrenMetadata() { 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()); } @JsonIgnore public Optional ratingKey() { return ratingKey; } @JsonIgnore public Optional key() { return key; } @JsonIgnore public Optional parentRatingKey() { return parentRatingKey; } @JsonIgnore public Optional guid() { return guid; } @JsonIgnore public Optional parentGuid() { return parentGuid; } @JsonIgnore public Optional parentStudio() { return parentStudio; } @JsonIgnore public Optional type() { return type; } @JsonIgnore public Optional title() { return title; } @JsonIgnore public Optional parentKey() { return parentKey; } @JsonIgnore public Optional parentTitle() { return parentTitle; } @JsonIgnore public Optional summary() { return summary; } @JsonIgnore public Optional index() { return index; } @JsonIgnore public Optional parentIndex() { return parentIndex; } @JsonIgnore public Optional viewCount() { return viewCount; } @JsonIgnore public Optional lastViewedAt() { return lastViewedAt; } @JsonIgnore public Optional parentYear() { return parentYear; } @JsonIgnore public Optional thumb() { return thumb; } @JsonIgnore public Optional art() { return art; } @JsonIgnore public Optional parentThumb() { return parentThumb; } @JsonIgnore public Optional parentTheme() { return parentTheme; } @JsonIgnore public Optional leafCount() { return leafCount; } @JsonIgnore public Optional viewedLeafCount() { return viewedLeafCount; } @JsonIgnore public Optional addedAt() { return addedAt; } @JsonIgnore public Optional updatedAt() { return updatedAt; } @JsonIgnore public Optional userRating() { return userRating; } @JsonIgnore public Optional skipCount() { return skipCount; } @JsonIgnore public Optional lastRatedAt() { return lastRatedAt; } public final static Builder builder() { return new Builder(); } public GetMetadataChildrenMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = Optional.ofNullable(ratingKey); return this; } public GetMetadataChildrenMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; } public GetMetadataChildrenMetadata withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } public GetMetadataChildrenMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } public GetMetadataChildrenMetadata withParentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = Optional.ofNullable(parentRatingKey); return this; } public GetMetadataChildrenMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; } public GetMetadataChildrenMetadata withGuid(String guid) { Utils.checkNotNull(guid, "guid"); this.guid = Optional.ofNullable(guid); return this; } public GetMetadataChildrenMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; } public GetMetadataChildrenMetadata withParentGuid(String parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = Optional.ofNullable(parentGuid); return this; } public GetMetadataChildrenMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; } public GetMetadataChildrenMetadata withParentStudio(String parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = Optional.ofNullable(parentStudio); return this; } public GetMetadataChildrenMetadata withParentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; } public GetMetadataChildrenMetadata withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } public GetMetadataChildrenMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } public GetMetadataChildrenMetadata withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } public GetMetadataChildrenMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } public GetMetadataChildrenMetadata withParentKey(String parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = Optional.ofNullable(parentKey); return this; } public GetMetadataChildrenMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; } public GetMetadataChildrenMetadata withParentTitle(String parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = Optional.ofNullable(parentTitle); return this; } public GetMetadataChildrenMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; } public GetMetadataChildrenMetadata withSummary(String summary) { Utils.checkNotNull(summary, "summary"); this.summary = Optional.ofNullable(summary); return this; } public GetMetadataChildrenMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; } public GetMetadataChildrenMetadata withIndex(int index) { Utils.checkNotNull(index, "index"); this.index = Optional.ofNullable(index); return this; } public GetMetadataChildrenMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; } public GetMetadataChildrenMetadata withParentIndex(int parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = Optional.ofNullable(parentIndex); return this; } public GetMetadataChildrenMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; } public GetMetadataChildrenMetadata withViewCount(int viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = Optional.ofNullable(viewCount); return this; } public GetMetadataChildrenMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; } public GetMetadataChildrenMetadata withLastViewedAt(int lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = Optional.ofNullable(lastViewedAt); return this; } public GetMetadataChildrenMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; } public GetMetadataChildrenMetadata withParentYear(int parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = Optional.ofNullable(parentYear); return this; } public GetMetadataChildrenMetadata withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; } public GetMetadataChildrenMetadata withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } public GetMetadataChildrenMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } public GetMetadataChildrenMetadata withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } public GetMetadataChildrenMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } public GetMetadataChildrenMetadata withParentThumb(String parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = Optional.ofNullable(parentThumb); return this; } public GetMetadataChildrenMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; } public GetMetadataChildrenMetadata withParentTheme(String parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = Optional.ofNullable(parentTheme); return this; } public GetMetadataChildrenMetadata withParentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; } public GetMetadataChildrenMetadata withLeafCount(int leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = Optional.ofNullable(leafCount); return this; } public GetMetadataChildrenMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; } public GetMetadataChildrenMetadata withViewedLeafCount(int viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); return this; } public GetMetadataChildrenMetadata withViewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; } public GetMetadataChildrenMetadata withAddedAt(int addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = Optional.ofNullable(addedAt); return this; } public GetMetadataChildrenMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; } public GetMetadataChildrenMetadata withUpdatedAt(int updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } public GetMetadataChildrenMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } public GetMetadataChildrenMetadata withUserRating(int userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = Optional.ofNullable(userRating); return this; } public GetMetadataChildrenMetadata withUserRating(Optional userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = userRating; return this; } public GetMetadataChildrenMetadata withSkipCount(int skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = Optional.ofNullable(skipCount); return this; } public GetMetadataChildrenMetadata withSkipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; } public GetMetadataChildrenMetadata withLastRatedAt(int lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = Optional.ofNullable(lastRatedAt); return this; } public GetMetadataChildrenMetadata withLastRatedAt(Optional lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = lastRatedAt; return this; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetMetadataChildrenMetadata other = (GetMetadataChildrenMetadata) o; return Objects.deepEquals(this.ratingKey, other.ratingKey) && Objects.deepEquals(this.key, other.key) && Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && Objects.deepEquals(this.guid, other.guid) && Objects.deepEquals(this.parentGuid, other.parentGuid) && Objects.deepEquals(this.parentStudio, other.parentStudio) && Objects.deepEquals(this.type, other.type) && Objects.deepEquals(this.title, other.title) && Objects.deepEquals(this.parentKey, other.parentKey) && Objects.deepEquals(this.parentTitle, other.parentTitle) && Objects.deepEquals(this.summary, other.summary) && Objects.deepEquals(this.index, other.index) && Objects.deepEquals(this.parentIndex, other.parentIndex) && Objects.deepEquals(this.viewCount, other.viewCount) && Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && Objects.deepEquals(this.parentYear, other.parentYear) && Objects.deepEquals(this.thumb, other.thumb) && Objects.deepEquals(this.art, other.art) && Objects.deepEquals(this.parentThumb, other.parentThumb) && Objects.deepEquals(this.parentTheme, other.parentTheme) && Objects.deepEquals(this.leafCount, other.leafCount) && Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && Objects.deepEquals(this.addedAt, other.addedAt) && Objects.deepEquals(this.updatedAt, other.updatedAt) && Objects.deepEquals(this.userRating, other.userRating) && Objects.deepEquals(this.skipCount, other.skipCount) && Objects.deepEquals(this.lastRatedAt, other.lastRatedAt); } @Override public int hashCode() { return Objects.hash( ratingKey, key, parentRatingKey, guid, parentGuid, parentStudio, type, title, parentKey, parentTitle, summary, index, parentIndex, viewCount, lastViewedAt, parentYear, thumb, art, parentThumb, parentTheme, leafCount, viewedLeafCount, addedAt, updatedAt, userRating, skipCount, lastRatedAt); } @Override public String toString() { return Utils.toString(GetMetadataChildrenMetadata.class, "ratingKey", ratingKey, "key", key, "parentRatingKey", parentRatingKey, "guid", guid, "parentGuid", parentGuid, "parentStudio", parentStudio, "type", type, "title", title, "parentKey", parentKey, "parentTitle", parentTitle, "summary", summary, "index", index, "parentIndex", parentIndex, "viewCount", viewCount, "lastViewedAt", lastViewedAt, "parentYear", parentYear, "thumb", thumb, "art", art, "parentThumb", parentThumb, "parentTheme", parentTheme, "leafCount", leafCount, "viewedLeafCount", viewedLeafCount, "addedAt", addedAt, "updatedAt", updatedAt, "userRating", userRating, "skipCount", skipCount, "lastRatedAt", lastRatedAt); } public final static class Builder { private Optional ratingKey = Optional.empty(); private Optional key = Optional.empty(); private Optional parentRatingKey = Optional.empty(); private Optional guid = Optional.empty(); private Optional parentGuid = Optional.empty(); private Optional parentStudio = Optional.empty(); private Optional type = Optional.empty(); private Optional title = Optional.empty(); private Optional parentKey = Optional.empty(); private Optional parentTitle = Optional.empty(); private Optional summary = Optional.empty(); private Optional index = Optional.empty(); private Optional parentIndex = Optional.empty(); private Optional viewCount = Optional.empty(); private Optional lastViewedAt = Optional.empty(); private Optional parentYear = Optional.empty(); private Optional thumb = Optional.empty(); private Optional art = Optional.empty(); private Optional parentThumb = Optional.empty(); private Optional parentTheme = Optional.empty(); private Optional leafCount = Optional.empty(); private Optional viewedLeafCount = Optional.empty(); private Optional addedAt = Optional.empty(); private Optional updatedAt = Optional.empty(); private Optional userRating = Optional.empty(); private Optional skipCount = Optional.empty(); private Optional lastRatedAt = 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 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 key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } public Builder parentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = Optional.ofNullable(parentRatingKey); return this; } public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; } public Builder guid(String guid) { Utils.checkNotNull(guid, "guid"); this.guid = Optional.ofNullable(guid); return this; } public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; } public Builder parentGuid(String parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = Optional.ofNullable(parentGuid); return this; } public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; } public Builder parentStudio(String parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = Optional.ofNullable(parentStudio); return this; } public Builder parentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; } public Builder type(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } public Builder type(Optional 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 title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } public Builder parentKey(String parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = Optional.ofNullable(parentKey); return this; } public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; } public Builder parentTitle(String parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = Optional.ofNullable(parentTitle); return this; } public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; } public Builder summary(String summary) { Utils.checkNotNull(summary, "summary"); this.summary = Optional.ofNullable(summary); return this; } public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; } public Builder index(int index) { Utils.checkNotNull(index, "index"); this.index = Optional.ofNullable(index); return this; } public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; } public Builder parentIndex(int parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = Optional.ofNullable(parentIndex); return this; } public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; } public Builder viewCount(int viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = Optional.ofNullable(viewCount); return this; } public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; } public Builder lastViewedAt(int lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = Optional.ofNullable(lastViewedAt); return this; } public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; } public Builder parentYear(int parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = Optional.ofNullable(parentYear); return this; } public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; } public Builder thumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } public Builder thumb(Optional 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 art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } public Builder parentThumb(String parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = Optional.ofNullable(parentThumb); return this; } public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; } public Builder parentTheme(String parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = Optional.ofNullable(parentTheme); return this; } public Builder parentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; } public Builder leafCount(int leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = Optional.ofNullable(leafCount); return this; } public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; } public Builder viewedLeafCount(int viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); return this; } public Builder viewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; } public Builder addedAt(int addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = Optional.ofNullable(addedAt); return this; } public Builder addedAt(Optional 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 updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } public Builder userRating(int userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = Optional.ofNullable(userRating); return this; } public Builder userRating(Optional userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = userRating; return this; } public Builder skipCount(int skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = Optional.ofNullable(skipCount); return this; } public Builder skipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; } public Builder lastRatedAt(int lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = Optional.ofNullable(lastRatedAt); return this; } public Builder lastRatedAt(Optional lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = lastRatedAt; return this; } public GetMetadataChildrenMetadata build() { return new GetMetadataChildrenMetadata( ratingKey, key, parentRatingKey, guid, parentGuid, parentStudio, type, title, parentKey, parentTitle, summary, index, parentIndex, viewCount, lastViewedAt, parentYear, thumb, art, parentThumb, parentTheme, leafCount, viewedLeafCount, addedAt, updatedAt, userRating, skipCount, lastRatedAt); } } }