com.amazonaws.services.mediaconvert.model.EmbeddedSourceSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconvert Show documentation
Show all versions of aws-java-sdk-mediaconvert Show documentation
The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service
/*
* Copyright 2013-2018 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.mediaconvert.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Settings for embedded captions Source
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class EmbeddedSourceSettings implements Serializable, Cloneable, StructuredPojo {
private String convert608To708;
/**
* Specifies the 608/708 channel number within the video track from which to extract captions. Unused for
* passthrough.
*/
private Integer source608ChannelNumber;
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so
* this should always be set to '1'.
*/
private Integer source608TrackNumber;
/**
* @param convert608To708
* @see EmbeddedConvert608To708
*/
public void setConvert608To708(String convert608To708) {
this.convert608To708 = convert608To708;
}
/**
* @return
* @see EmbeddedConvert608To708
*/
public String getConvert608To708() {
return this.convert608To708;
}
/**
* @param convert608To708
* @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;
}
/**
* @param convert608To708
* @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;
}
/**
* 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;
}
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so
* this should always be set to '1'.
*
* @param source608TrackNumber
* Specifies the video track index used for extracting captions. The system only supports one input video
* track, so this should always be set to '1'.
*/
public void setSource608TrackNumber(Integer source608TrackNumber) {
this.source608TrackNumber = source608TrackNumber;
}
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so
* this should always be set to '1'.
*
* @return Specifies the video track index used for extracting captions. The system only supports one input video
* track, so this should always be set to '1'.
*/
public Integer getSource608TrackNumber() {
return this.source608TrackNumber;
}
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so
* this should always be set to '1'.
*
* @param source608TrackNumber
* Specifies the video track index used for extracting captions. The system only supports one input video
* track, so this should always be set to '1'.
* @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; useful for testing and debugging.
*
* @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 (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.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 + ((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.mediaconvert.model.transform.EmbeddedSourceSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy