public class Captions
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The captions to be created, if any.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<CaptionFormat> |
captionFormats
The array of file formats for the output captions.
|
private SdkInternalList<CaptionSource> |
captionSources
Source files for the input sidecar captions used during the transcoding
process.
|
private java.lang.String |
mergePolicy
A policy that determines how Elastic Transcoder handles the existence of
multiple captions.
|
Constructor and Description |
---|
Captions() |
Modifier and Type | Method and Description |
---|---|
Captions |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<CaptionFormat> |
getCaptionFormats()
The array of file formats for the output captions.
|
java.util.List<CaptionSource> |
getCaptionSources()
Source files for the input sidecar captions used during the transcoding
process.
|
java.lang.String |
getMergePolicy()
A policy that determines how Elastic Transcoder handles the existence of
multiple captions.
|
int |
hashCode() |
void |
setCaptionFormats(java.util.Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions.
|
void |
setCaptionSources(java.util.Collection<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding
process.
|
void |
setMergePolicy(java.lang.String mergePolicy)
A policy that determines how Elastic Transcoder handles the existence of
multiple captions.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Captions |
withCaptionFormats(CaptionFormat... captionFormats)
The array of file formats for the output captions.
|
Captions |
withCaptionFormats(java.util.Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions.
|
Captions |
withCaptionSources(CaptionSource... captionSources)
Source files for the input sidecar captions used during the transcoding
process.
|
Captions |
withCaptionSources(java.util.Collection<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding
process.
|
Captions |
withMergePolicy(java.lang.String mergePolicy)
A policy that determines how Elastic Transcoder handles the existence of
multiple captions.
|
private java.lang.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 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.
private SdkInternalList<CaptionSource> captionSources
Source files for the input sidecar captions used during the transcoding
process. To omit all sidecar captions, leave CaptionSources
blank.
private SdkInternalList<CaptionFormat> captionFormats
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
public void setMergePolicy(java.lang.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 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.
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.
public java.lang.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 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 Captions withMergePolicy(java.lang.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 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.
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.
public java.util.List<CaptionSource> getCaptionSources()
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<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding
process. To omit all sidecar captions, leave CaptionSources
blank.
captionSources
- Source files for the input sidecar captions used during the
transcoding process. To omit all sidecar captions, leave
CaptionSources
blank.public Captions withCaptionSources(CaptionSource... captionSources)
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 setCaptionSources(java.util.Collection)
or
withCaptionSources(java.util.Collection)
if you want to override
the existing values.
captionSources
- Source files for the input sidecar captions used during the
transcoding process. To omit all sidecar captions, leave
CaptionSources
blank.public Captions withCaptionSources(java.util.Collection<CaptionSource> captionSources)
Source files for the input sidecar captions used during the transcoding
process. To omit all sidecar captions, leave CaptionSources
blank.
captionSources
- Source files for the input sidecar captions used during the
transcoding process. To omit all sidecar captions, leave
CaptionSources
blank.public java.util.List<CaptionFormat> getCaptionFormats()
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
public void setCaptionFormats(java.util.Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
captionFormats
- The array of file formats for the output captions. If you leave
this value blank, Elastic Transcoder returns an error.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)
or
withCaptionFormats(java.util.Collection)
if you want to override
the existing values.
captionFormats
- The array of file formats for the output captions. If you leave
this value blank, Elastic Transcoder returns an error.public Captions withCaptionFormats(java.util.Collection<CaptionFormat> captionFormats)
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
captionFormats
- The array of file formats for the output captions. If you leave
this value blank, Elastic Transcoder returns an error.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Captions clone()
clone
in class java.lang.Object