/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package dev.plexapi.sdk.models.operations; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import dev.plexapi.sdk.utils.Utils; import java.lang.Boolean; import java.lang.Double; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; public class GetOnDeckStream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamType") private Optional streamType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("default") private Optional default_; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("language") private Optional language; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageTag") private Optional languageTag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageCode") private Optional languageCode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitDepth") private Optional bitDepth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaLocation") private Optional chromaLocation; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaSubsampling") private Optional chromaSubsampling; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedHeight") private Optional codedHeight; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedWidth") private Optional codedWidth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorRange") private Optional colorRange; @JsonInclude(Include.NON_ABSENT) @JsonProperty("frameRate") private Optional frameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("level") private Optional level; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") private Optional profile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("refFrames") private Optional refFrames; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("displayTitle") private Optional displayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("extendedDisplayTitle") private Optional extendedDisplayTitle; @JsonCreator public GetOnDeckStream( @JsonProperty("id") Optional id, @JsonProperty("streamType") Optional streamType, @JsonProperty("default") Optional default_, @JsonProperty("codec") Optional codec, @JsonProperty("index") Optional index, @JsonProperty("bitrate") Optional bitrate, @JsonProperty("language") Optional language, @JsonProperty("languageTag") Optional languageTag, @JsonProperty("languageCode") Optional languageCode, @JsonProperty("bitDepth") Optional bitDepth, @JsonProperty("chromaLocation") Optional chromaLocation, @JsonProperty("chromaSubsampling") Optional chromaSubsampling, @JsonProperty("codedHeight") Optional codedHeight, @JsonProperty("codedWidth") Optional codedWidth, @JsonProperty("colorRange") Optional colorRange, @JsonProperty("frameRate") Optional frameRate, @JsonProperty("height") Optional height, @JsonProperty("level") Optional level, @JsonProperty("profile") Optional profile, @JsonProperty("refFrames") Optional refFrames, @JsonProperty("width") Optional width, @JsonProperty("displayTitle") Optional displayTitle, @JsonProperty("extendedDisplayTitle") Optional extendedDisplayTitle) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(streamType, "streamType"); Utils.checkNotNull(default_, "default_"); Utils.checkNotNull(codec, "codec"); Utils.checkNotNull(index, "index"); Utils.checkNotNull(bitrate, "bitrate"); Utils.checkNotNull(language, "language"); Utils.checkNotNull(languageTag, "languageTag"); Utils.checkNotNull(languageCode, "languageCode"); Utils.checkNotNull(bitDepth, "bitDepth"); Utils.checkNotNull(chromaLocation, "chromaLocation"); Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); Utils.checkNotNull(codedHeight, "codedHeight"); Utils.checkNotNull(codedWidth, "codedWidth"); Utils.checkNotNull(colorRange, "colorRange"); Utils.checkNotNull(frameRate, "frameRate"); Utils.checkNotNull(height, "height"); Utils.checkNotNull(level, "level"); Utils.checkNotNull(profile, "profile"); Utils.checkNotNull(refFrames, "refFrames"); Utils.checkNotNull(width, "width"); Utils.checkNotNull(displayTitle, "displayTitle"); Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.id = id; this.streamType = streamType; this.default_ = default_; this.codec = codec; this.index = index; this.bitrate = bitrate; this.language = language; this.languageTag = languageTag; this.languageCode = languageCode; this.bitDepth = bitDepth; this.chromaLocation = chromaLocation; this.chromaSubsampling = chromaSubsampling; this.codedHeight = codedHeight; this.codedWidth = codedWidth; this.colorRange = colorRange; this.frameRate = frameRate; this.height = height; this.level = level; this.profile = profile; this.refFrames = refFrames; this.width = width; this.displayTitle = displayTitle; this.extendedDisplayTitle = extendedDisplayTitle; } public GetOnDeckStream() { 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()); } @JsonIgnore public Optional id() { return id; } @JsonIgnore public Optional streamType() { return streamType; } @JsonIgnore public Optional default_() { return default_; } @JsonIgnore public Optional codec() { return codec; } @JsonIgnore public Optional index() { return index; } @JsonIgnore public Optional bitrate() { return bitrate; } @JsonIgnore public Optional language() { return language; } @JsonIgnore public Optional languageTag() { return languageTag; } @JsonIgnore public Optional languageCode() { return languageCode; } @JsonIgnore public Optional bitDepth() { return bitDepth; } @JsonIgnore public Optional chromaLocation() { return chromaLocation; } @JsonIgnore public Optional chromaSubsampling() { return chromaSubsampling; } @JsonIgnore public Optional codedHeight() { return codedHeight; } @JsonIgnore public Optional codedWidth() { return codedWidth; } @JsonIgnore public Optional colorRange() { return colorRange; } @JsonIgnore public Optional frameRate() { return frameRate; } @JsonIgnore public Optional height() { return height; } @JsonIgnore public Optional level() { return level; } @JsonIgnore public Optional profile() { return profile; } @JsonIgnore public Optional refFrames() { return refFrames; } @JsonIgnore public Optional width() { return width; } @JsonIgnore public Optional displayTitle() { return displayTitle; } @JsonIgnore public Optional extendedDisplayTitle() { return extendedDisplayTitle; } public final static Builder builder() { return new Builder(); } public GetOnDeckStream withId(double id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } public GetOnDeckStream withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } public GetOnDeckStream withStreamType(double streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = Optional.ofNullable(streamType); return this; } public GetOnDeckStream withStreamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; } public GetOnDeckStream withDefault(boolean default_) { Utils.checkNotNull(default_, "default_"); this.default_ = Optional.ofNullable(default_); return this; } public GetOnDeckStream withDefault(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; } public GetOnDeckStream withCodec(String codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); return this; } public GetOnDeckStream withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } public GetOnDeckStream withIndex(double index) { Utils.checkNotNull(index, "index"); this.index = Optional.ofNullable(index); return this; } public GetOnDeckStream withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; } public GetOnDeckStream withBitrate(double bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = Optional.ofNullable(bitrate); return this; } public GetOnDeckStream withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; } public GetOnDeckStream withLanguage(String language) { Utils.checkNotNull(language, "language"); this.language = Optional.ofNullable(language); return this; } public GetOnDeckStream withLanguage(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; } public GetOnDeckStream withLanguageTag(String languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = Optional.ofNullable(languageTag); return this; } public GetOnDeckStream withLanguageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; } public GetOnDeckStream withLanguageCode(String languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = Optional.ofNullable(languageCode); return this; } public GetOnDeckStream withLanguageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; } public GetOnDeckStream withBitDepth(double bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = Optional.ofNullable(bitDepth); return this; } public GetOnDeckStream withBitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; } public GetOnDeckStream withChromaLocation(String chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = Optional.ofNullable(chromaLocation); return this; } public GetOnDeckStream withChromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; } public GetOnDeckStream withChromaSubsampling(String chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); return this; } public GetOnDeckStream withChromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; } public GetOnDeckStream withCodedHeight(double codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = Optional.ofNullable(codedHeight); return this; } public GetOnDeckStream withCodedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; } public GetOnDeckStream withCodedWidth(double codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = Optional.ofNullable(codedWidth); return this; } public GetOnDeckStream withCodedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; } public GetOnDeckStream withColorRange(String colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = Optional.ofNullable(colorRange); return this; } public GetOnDeckStream withColorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; } public GetOnDeckStream withFrameRate(double frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = Optional.ofNullable(frameRate); return this; } public GetOnDeckStream withFrameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; } public GetOnDeckStream withHeight(double height) { Utils.checkNotNull(height, "height"); this.height = Optional.ofNullable(height); return this; } public GetOnDeckStream withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; } public GetOnDeckStream withLevel(double level) { Utils.checkNotNull(level, "level"); this.level = Optional.ofNullable(level); return this; } public GetOnDeckStream withLevel(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; } public GetOnDeckStream withProfile(String profile) { Utils.checkNotNull(profile, "profile"); this.profile = Optional.ofNullable(profile); return this; } public GetOnDeckStream withProfile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; } public GetOnDeckStream withRefFrames(double refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = Optional.ofNullable(refFrames); return this; } public GetOnDeckStream withRefFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; } public GetOnDeckStream withWidth(double width) { Utils.checkNotNull(width, "width"); this.width = Optional.ofNullable(width); return this; } public GetOnDeckStream withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; } public GetOnDeckStream withDisplayTitle(String displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = Optional.ofNullable(displayTitle); return this; } public GetOnDeckStream withDisplayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; } public GetOnDeckStream withExtendedDisplayTitle(String extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); return this; } public GetOnDeckStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetOnDeckStream other = (GetOnDeckStream) o; return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.streamType, other.streamType) && Objects.deepEquals(this.default_, other.default_) && Objects.deepEquals(this.codec, other.codec) && Objects.deepEquals(this.index, other.index) && Objects.deepEquals(this.bitrate, other.bitrate) && Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.languageTag, other.languageTag) && Objects.deepEquals(this.languageCode, other.languageCode) && Objects.deepEquals(this.bitDepth, other.bitDepth) && Objects.deepEquals(this.chromaLocation, other.chromaLocation) && Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) && Objects.deepEquals(this.codedHeight, other.codedHeight) && Objects.deepEquals(this.codedWidth, other.codedWidth) && Objects.deepEquals(this.colorRange, other.colorRange) && Objects.deepEquals(this.frameRate, other.frameRate) && Objects.deepEquals(this.height, other.height) && Objects.deepEquals(this.level, other.level) && Objects.deepEquals(this.profile, other.profile) && Objects.deepEquals(this.refFrames, other.refFrames) && Objects.deepEquals(this.width, other.width) && Objects.deepEquals(this.displayTitle, other.displayTitle) && Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle); } @Override public int hashCode() { return Objects.hash( id, streamType, default_, codec, index, bitrate, language, languageTag, languageCode, bitDepth, chromaLocation, chromaSubsampling, codedHeight, codedWidth, colorRange, frameRate, height, level, profile, refFrames, width, displayTitle, extendedDisplayTitle); } @Override public String toString() { return Utils.toString(GetOnDeckStream.class, "id", id, "streamType", streamType, "default_", default_, "codec", codec, "index", index, "bitrate", bitrate, "language", language, "languageTag", languageTag, "languageCode", languageCode, "bitDepth", bitDepth, "chromaLocation", chromaLocation, "chromaSubsampling", chromaSubsampling, "codedHeight", codedHeight, "codedWidth", codedWidth, "colorRange", colorRange, "frameRate", frameRate, "height", height, "level", level, "profile", profile, "refFrames", refFrames, "width", width, "displayTitle", displayTitle, "extendedDisplayTitle", extendedDisplayTitle); } public final static class Builder { private Optional id = Optional.empty(); private Optional streamType = Optional.empty(); private Optional default_ = Optional.empty(); private Optional codec = Optional.empty(); private Optional index = Optional.empty(); private Optional bitrate = Optional.empty(); private Optional language = Optional.empty(); private Optional languageTag = Optional.empty(); private Optional languageCode = Optional.empty(); private Optional bitDepth = Optional.empty(); private Optional chromaLocation = Optional.empty(); private Optional chromaSubsampling = Optional.empty(); private Optional codedHeight = Optional.empty(); private Optional codedWidth = Optional.empty(); private Optional colorRange = Optional.empty(); private Optional frameRate = Optional.empty(); private Optional height = Optional.empty(); private Optional level = Optional.empty(); private Optional profile = Optional.empty(); private Optional refFrames = Optional.empty(); private Optional width = Optional.empty(); private Optional displayTitle = Optional.empty(); private Optional extendedDisplayTitle = Optional.empty(); private Builder() { // force use of static builder() method } public Builder id(double id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } public Builder streamType(double streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = Optional.ofNullable(streamType); return this; } public Builder streamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; } public Builder default_(boolean default_) { Utils.checkNotNull(default_, "default_"); this.default_ = Optional.ofNullable(default_); return this; } public Builder default_(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; } public Builder codec(String codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); return this; } public Builder codec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } public Builder index(double 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 bitrate(double bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = Optional.ofNullable(bitrate); return this; } public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; } public Builder language(String language) { Utils.checkNotNull(language, "language"); this.language = Optional.ofNullable(language); return this; } public Builder language(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; } public Builder languageTag(String languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = Optional.ofNullable(languageTag); return this; } public Builder languageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; } public Builder languageCode(String languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = Optional.ofNullable(languageCode); return this; } public Builder languageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; } public Builder bitDepth(double bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = Optional.ofNullable(bitDepth); return this; } public Builder bitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; } public Builder chromaLocation(String chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = Optional.ofNullable(chromaLocation); return this; } public Builder chromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; } public Builder chromaSubsampling(String chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); return this; } public Builder chromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; } public Builder codedHeight(double codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = Optional.ofNullable(codedHeight); return this; } public Builder codedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; } public Builder codedWidth(double codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = Optional.ofNullable(codedWidth); return this; } public Builder codedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; } public Builder colorRange(String colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = Optional.ofNullable(colorRange); return this; } public Builder colorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; } public Builder frameRate(double frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = Optional.ofNullable(frameRate); return this; } public Builder frameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; } public Builder height(double height) { Utils.checkNotNull(height, "height"); this.height = Optional.ofNullable(height); return this; } public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; } public Builder level(double level) { Utils.checkNotNull(level, "level"); this.level = Optional.ofNullable(level); return this; } public Builder level(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; } public Builder profile(String profile) { Utils.checkNotNull(profile, "profile"); this.profile = Optional.ofNullable(profile); return this; } public Builder profile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; } public Builder refFrames(double refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = Optional.ofNullable(refFrames); return this; } public Builder refFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; } public Builder width(double width) { Utils.checkNotNull(width, "width"); this.width = Optional.ofNullable(width); return this; } public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; } public Builder displayTitle(String displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = Optional.ofNullable(displayTitle); return this; } public Builder displayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; } public Builder extendedDisplayTitle(String extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); return this; } public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; } public GetOnDeckStream build() { return new GetOnDeckStream( id, streamType, default_, codec, index, bitrate, language, languageTag, languageCode, bitDepth, chromaLocation, chromaSubsampling, codedHeight, codedWidth, colorRange, frameRate, height, level, profile, refFrames, width, displayTitle, extendedDisplayTitle); } } }