/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.medialive.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * Embedded Source Settings * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/EmbeddedSourceSettings" target="_top">AWS * API Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EmbeddedSourceSettings implements Serializable, Cloneable, StructuredPojo { /** * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well * as translated into 708. 708 data present in the source content will be discarded. */ private String convert608To708; /** Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. */ private String scte20Detection; /** * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. */ private Integer source608ChannelNumber; /** This field is unused and deprecated. */ private Integer source608TrackNumber; /** * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well * as translated into 708. 708 data present in the source content will be discarded. * * @param convert608To708 * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper * as well as translated into 708. 708 data present in the source content will be discarded. * @see EmbeddedConvert608To708 */ public void setConvert608To708(String convert608To708) { this.convert608To708 = convert608To708; } /** * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well * as translated into 708. 708 data present in the source content will be discarded. * * @return If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper * as well as translated into 708. 708 data present in the source content will be discarded. * @see EmbeddedConvert608To708 */ public String getConvert608To708() { return this.convert608To708; } /** * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well * as translated into 708. 708 data present in the source content will be discarded. * * @param convert608To708 * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper * as well as translated into 708. 708 data present in the source content will be discarded. * @return Returns a reference to this object so that method calls can be chained together. * @see EmbeddedConvert608To708 */ public EmbeddedSourceSettings withConvert608To708(String convert608To708) { setConvert608To708(convert608To708); return this; } /** * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well * as translated into 708. 708 data present in the source content will be discarded. * * @param convert608To708 * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper * as well as translated into 708. 708 data present in the source content will be discarded. * @return Returns a reference to this object so that method calls can be chained together. * @see EmbeddedConvert608To708 */ public EmbeddedSourceSettings withConvert608To708(EmbeddedConvert608To708 convert608To708) { this.convert608To708 = convert608To708.toString(); return this; } /** * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * * @param scte20Detection * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * @see EmbeddedScte20Detection */ public void setScte20Detection(String scte20Detection) { this.scte20Detection = scte20Detection; } /** * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * * @return Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * @see EmbeddedScte20Detection */ public String getScte20Detection() { return this.scte20Detection; } /** * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * * @param scte20Detection * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * @return Returns a reference to this object so that method calls can be chained together. * @see EmbeddedScte20Detection */ public EmbeddedSourceSettings withScte20Detection(String scte20Detection) { setScte20Detection(scte20Detection); return this; } /** * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * * @param scte20Detection * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. * @return Returns a reference to this object so that method calls can be chained together. * @see EmbeddedScte20Detection */ public EmbeddedSourceSettings withScte20Detection(EmbeddedScte20Detection scte20Detection) { this.scte20Detection = scte20Detection.toString(); return this; } /** * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. * * @param source608ChannelNumber * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. */ public void setSource608ChannelNumber(Integer source608ChannelNumber) { this.source608ChannelNumber = source608ChannelNumber; } /** * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. * * @return Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. */ public Integer getSource608ChannelNumber() { return this.source608ChannelNumber; } /** * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. * * @param source608ChannelNumber * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for * passthrough. * @return Returns a reference to this object so that method calls can be chained together. */ public EmbeddedSourceSettings withSource608ChannelNumber(Integer source608ChannelNumber) { setSource608ChannelNumber(source608ChannelNumber); return this; } /** * This field is unused and deprecated. * * @param source608TrackNumber * This field is unused and deprecated. */ public void setSource608TrackNumber(Integer source608TrackNumber) { this.source608TrackNumber = source608TrackNumber; } /** * This field is unused and deprecated. * * @return This field is unused and deprecated. */ public Integer getSource608TrackNumber() { return this.source608TrackNumber; } /** * This field is unused and deprecated. * * @param source608TrackNumber * This field is unused and deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public EmbeddedSourceSettings withSource608TrackNumber(Integer source608TrackNumber) { setSource608TrackNumber(source608TrackNumber); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConvert608To708() != null) sb.append("Convert608To708: ").append(getConvert608To708()).append(","); if (getScte20Detection() != null) sb.append("Scte20Detection: ").append(getScte20Detection()).append(","); if (getSource608ChannelNumber() != null) sb.append("Source608ChannelNumber: ").append(getSource608ChannelNumber()).append(","); if (getSource608TrackNumber() != null) sb.append("Source608TrackNumber: ").append(getSource608TrackNumber()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EmbeddedSourceSettings == false) return false; EmbeddedSourceSettings other = (EmbeddedSourceSettings) obj; if (other.getConvert608To708() == null ^ this.getConvert608To708() == null) return false; if (other.getConvert608To708() != null && other.getConvert608To708().equals(this.getConvert608To708()) == false) return false; if (other.getScte20Detection() == null ^ this.getScte20Detection() == null) return false; if (other.getScte20Detection() != null && other.getScte20Detection().equals(this.getScte20Detection()) == false) return false; if (other.getSource608ChannelNumber() == null ^ this.getSource608ChannelNumber() == null) return false; if (other.getSource608ChannelNumber() != null && other.getSource608ChannelNumber().equals(this.getSource608ChannelNumber()) == false) return false; if (other.getSource608TrackNumber() == null ^ this.getSource608TrackNumber() == null) return false; if (other.getSource608TrackNumber() != null && other.getSource608TrackNumber().equals(this.getSource608TrackNumber()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConvert608To708() == null) ? 0 : getConvert608To708().hashCode()); hashCode = prime * hashCode + ((getScte20Detection() == null) ? 0 : getScte20Detection().hashCode()); hashCode = prime * hashCode + ((getSource608ChannelNumber() == null) ? 0 : getSource608ChannelNumber().hashCode()); hashCode = prime * hashCode + ((getSource608TrackNumber() == null) ? 0 : getSource608TrackNumber().hashCode()); return hashCode; } @Override public EmbeddedSourceSettings clone() { try { return (EmbeddedSourceSettings) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.medialive.model.transform.EmbeddedSourceSettingsMarshaller.getInstance().marshall(this, protocolMarshaller); } }