/* * 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.elastictranscoder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The captions to be created, if any. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InputCaptions implements Serializable, Cloneable, StructuredPojo { /** ** A policy that determines how Elastic Transcoder handles the existence of multiple captions. *
** MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions * for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the * sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions
* for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the
* embedded captions and ignores the sidecar captions for that language. If CaptionSources
is empty,
* Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*
* Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions,
* leave CaptionSources
blank.
*
* A policy that determines how Elastic Transcoder handles the existence of multiple captions. *
** MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions * for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the * sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions
* for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the
* embedded captions and ignores the sidecar captions for that language. If CaptionSources
is empty,
* Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*
* MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If * captions for a language are embedded in the input file and also appear in a sidecar file, Elastic * Transcoder uses the sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If
* captions for a language are embedded in the input file and also appear in a sidecar file, Elastic
* Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
* CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*/
public void setMergePolicy(String mergePolicy) {
this.mergePolicy = mergePolicy;
}
/**
*
* A policy that determines how Elastic Transcoder handles the existence of multiple captions. *
** MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions * for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the * sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions
* for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the
* embedded captions and ignores the sidecar captions for that language. If CaptionSources
is empty,
* Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*
* MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If * captions for a language are embedded in the input file and also appear in a sidecar file, Elastic * Transcoder uses the sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If
* captions for a language are embedded in the input file and also appear in a sidecar file, Elastic
* Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
* CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output
* files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*/
public String getMergePolicy() {
return this.mergePolicy;
}
/**
*
* A policy that determines how Elastic Transcoder handles the existence of multiple captions. *
** MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions * for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the * sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions
* for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the
* embedded captions and ignores the sidecar captions for that language. If CaptionSources
is empty,
* Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
*
* MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If * captions for a language are embedded in the input file and also appear in a sidecar file, Elastic * Transcoder uses the sidecar captions and ignores the embedded captions for that language. *
*
* MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If
* captions for a language are embedded in the input file and also appear in a sidecar file, Elastic
* Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
* CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files.
*
* Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
* CaptionSources
.
*
* MergePolicy
cannot be null.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputCaptions withMergePolicy(String mergePolicy) {
setMergePolicy(mergePolicy);
return this;
}
/**
*
* Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions,
* leave CaptionSources
blank.
*
CaptionSources
blank.
*/
public java.util.List
* Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions,
* leave CaptionSources
blank.
*
CaptionSources
blank.
*/
public void setCaptionSources(java.util.Collection
* Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions,
* leave CaptionSources
blank.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCaptionSources(java.util.Collection)} or {@link #withCaptionSources(java.util.Collection)} if you want * to override the existing values. *
* * @param captionSources * Source files for the input sidecar captions used during the transcoding process. To omit all sidecar * captions, leaveCaptionSources
blank.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputCaptions withCaptionSources(CaptionSource... captionSources) {
if (this.captionSources == null) {
setCaptionSources(new com.amazonaws.internal.SdkInternalList
* Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions,
* leave CaptionSources
blank.
*
CaptionSources
blank.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputCaptions withCaptionSources(java.util.Collection