Class Captions
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.Captions
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Captions extends Object implements Serializable, Cloneable
The captions to be created, if any.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Captions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Captionsclone()booleanequals(Object obj)List<CaptionFormat>getCaptionFormats()The array of file formats for the output captions.List<CaptionSource>getCaptionSources()Source files for the input sidecar captions used during the transcoding process.StringgetMergePolicy()A policy that determines how Elastic Transcoder handles the existence of multiple captions.inthashCode()voidsetCaptionFormats(Collection<CaptionFormat> captionFormats)The array of file formats for the output captions.voidsetCaptionSources(Collection<CaptionSource> captionSources)Source files for the input sidecar captions used during the transcoding process.voidsetMergePolicy(String mergePolicy)A policy that determines how Elastic Transcoder handles the existence of multiple captions.StringtoString()Returns a string representation of this object; useful for testing and debugging.CaptionswithCaptionFormats(CaptionFormat... captionFormats)The array of file formats for the output captions.CaptionswithCaptionFormats(Collection<CaptionFormat> captionFormats)The array of file formats for the output captions.CaptionswithCaptionSources(CaptionSource... captionSources)Source files for the input sidecar captions used during the transcoding process.CaptionswithCaptionSources(Collection<CaptionSource> captionSources)Source files for the input sidecar captions used during the transcoding process.CaptionswithMergePolicy(String mergePolicy)A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
-
-
Method Detail
-
setMergePolicy
public void setMergePolicy(String 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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null.- Parameters:
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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null.-
-
-
getMergePolicy
public String getMergePolicy()
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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null.- Returns:
- 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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null. -
-
-
withMergePolicy
public Captions withMergePolicy(String 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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null.- Parameters:
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
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicycannot be null.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
getCaptionSources
public List<CaptionSource> getCaptionSources()
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave
CaptionSourcesblank.- Returns:
- Source files for the input sidecar captions used during the
transcoding process. To omit all sidecar captions, leave
CaptionSourcesblank.
-
setCaptionSources
public void setCaptionSources(Collection<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave
CaptionSourcesblank.- Parameters:
captionSources- Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leaveCaptionSourcesblank.
-
withCaptionSources
public Captions withCaptionSources(CaptionSource... captionSources)
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave
CaptionSourcesblank.NOTE: This method appends the values to the existing list (if any). Use
setCaptionSources(java.util.Collection)orwithCaptionSources(java.util.Collection)if you want to override the existing values.- Parameters:
captionSources- Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leaveCaptionSourcesblank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCaptionSources
public Captions withCaptionSources(Collection<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave
CaptionSourcesblank.- Parameters:
captionSources- Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leaveCaptionSourcesblank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCaptionFormats
public List<CaptionFormat> getCaptionFormats()
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
- Returns:
- The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
-
setCaptionFormats
public void setCaptionFormats(Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
- Parameters:
captionFormats- The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
-
withCaptionFormats
public Captions withCaptionFormats(CaptionFormat... captionFormats)
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
NOTE: This method appends the values to the existing list (if any). Use
setCaptionFormats(java.util.Collection)orwithCaptionFormats(java.util.Collection)if you want to override the existing values.- Parameters:
captionFormats- The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCaptionFormats
public Captions withCaptionFormats(Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
- Parameters:
captionFormats- The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-