Class CreateJobOutput
- java.lang.Object
-
- software.amazon.awssdk.services.elastictranscoder.model.CreateJobOutput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CreateJobOutput.Builder,CreateJobOutput>
@Generated("software.amazon.awssdk:codegen") public final class CreateJobOutput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateJobOutput.Builder,CreateJobOutput>
The
CreateJobOutputstructure.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateJobOutput.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JobAlbumArtalbumArt()Information about the album art that you want Elastic Transcoder to add to the file during transcoding.static CreateJobOutput.Builderbuilder()Captionscaptions()You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another.List<Clip>composition()Deprecated.Encryptionencryption()You can specify encryption settings for any output files that you want to use for a transcoding job.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasComposition()Deprecated.inthashCode()booleanhasWatermarks()For responses, this returns true if the service returned a value for the Watermarks property.Stringkey()The name to assign to the transcoded file.StringpresetId()TheIdof the preset to use for this job.Stringrotate()The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input.List<SdkField<?>>sdkFields()StringsegmentDuration()static Class<? extends CreateJobOutput.Builder>serializableBuilderClass()EncryptionthumbnailEncryption()The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail.StringthumbnailPattern()Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.CreateJobOutput.BuildertoBuilder()StringtoString()Returns a string representation of this object.List<JobWatermark>watermarks()Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
key
public final String key()
The name to assign to the transcoded file. Elastic Transcoder saves the file in the Amazon S3 bucket specified by the
OutputBucketobject in the pipeline that is specified by the pipeline ID. If a file with the specified name already exists in the output bucket, the job fails.- Returns:
- The name to assign to the transcoded file. Elastic Transcoder saves the file in the Amazon S3 bucket
specified by the
OutputBucketobject in the pipeline that is specified by the pipeline ID. If a file with the specified name already exists in the output bucket, the job fails.
-
thumbnailPattern
public final String thumbnailPattern()
Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.
If you don't want Elastic Transcoder to create thumbnails, specify "".
If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:
-
{count}(Required): If you want to create thumbnails, you must include{count}in theThumbnailPatternobject. Wherever you specify{count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.If you specify a literal value and/or
{resolution}but you omit{count}, Elastic Transcoder returns a validation error and does not create the job. -
Literal values (Optional): You can specify literal values anywhere in the
ThumbnailPatternobject. For example, you can include them as a file name prefix or as a delimiter between{resolution}and{count}. -
{resolution}(Optional): If you want Elastic Transcoder to include the resolution in the file name, include{resolution}in theThumbnailPatternobject.
When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the
PresetIDvalue ofCreateJobOutput. Elastic Transcoder also appends the applicable file name extension.- Returns:
- Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic
Transcoder to name the files.
If you don't want Elastic Transcoder to create thumbnails, specify "".
If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:
-
{count}(Required): If you want to create thumbnails, you must include{count}in theThumbnailPatternobject. Wherever you specify{count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.If you specify a literal value and/or
{resolution}but you omit{count}, Elastic Transcoder returns a validation error and does not create the job. -
Literal values (Optional): You can specify literal values anywhere in the
ThumbnailPatternobject. For example, you can include them as a file name prefix or as a delimiter between{resolution}and{count}. -
{resolution}(Optional): If you want Elastic Transcoder to include the resolution in the file name, include{resolution}in theThumbnailPatternobject.
When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the
PresetIDvalue ofCreateJobOutput. Elastic Transcoder also appends the applicable file name extension. -
-
-
thumbnailEncryption
public final Encryption thumbnailEncryption()
The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail.
- Returns:
- The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail.
-
rotate
public final String rotate()
The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values:
auto,0,90,180,270. The valueautogenerally works only if the file that you're transcoding contains rotation metadata.- Returns:
- The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the
input. Enter one of the following values:
auto,0,90,180,270. The valueautogenerally works only if the file that you're transcoding contains rotation metadata.
-
presetId
public final String presetId()
The
Idof the preset to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding.- Returns:
- The
Idof the preset to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding.
-
segmentDuration
public final String segmentDuration()
(Outputs in Fragmented MP4 or MPEG-TS format only.
If you specify a preset in
PresetIdfor which the value ofContainerisfmp4(Fragmented MP4) orts(MPEG-TS),SegmentDurationis the target maximum duration of each segment in seconds. ForHLSv3format playlists, each media segment is stored in a separate.tsfile. ForHLSv4andSmoothplaylists, all media segments for an output are stored in a single file. Each segment is approximately the length of theSegmentDuration, though individual segments might be shorter or longer.The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by
SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.Elastic Transcoder creates an output-specific playlist for each output
HLSoutput that you specify in OutputKeys. To add an output to the master playlist for this job, include it in theOutputKeysof the associated playlist.- Returns:
(Outputs in Fragmented MP4 or MPEG-TS format only.
If you specify a preset in
PresetIdfor which the value ofContainerisfmp4(Fragmented MP4) orts(MPEG-TS),SegmentDurationis the target maximum duration of each segment in seconds. ForHLSv3format playlists, each media segment is stored in a separate.tsfile. ForHLSv4andSmoothplaylists, all media segments for an output are stored in a single file. Each segment is approximately the length of theSegmentDuration, though individual segments might be shorter or longer.The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by
SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.Elastic Transcoder creates an output-specific playlist for each output
HLSoutput that you specify in OutputKeys. To add an output to the master playlist for this job, include it in theOutputKeysof the associated playlist.
-
hasWatermarks
public final boolean hasWatermarks()
For responses, this returns true if the service returned a value for the Watermarks property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
watermarks
public final List<JobWatermark> watermarks()
Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset for the current output.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasWatermarks()method.- Returns:
- Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset for the current output.
-
albumArt
public final JobAlbumArt albumArt()
Information about the album art that you want Elastic Transcoder to add to the file during transcoding. You can specify up to twenty album artworks for each output. Settings for each artwork must be defined in the job for the current output.
- Returns:
- Information about the album art that you want Elastic Transcoder to add to the file during transcoding. You can specify up to twenty album artworks for each output. Settings for each artwork must be defined in the job for the current output.
-
hasComposition
@Deprecated public final boolean hasComposition()
Deprecated.For responses, this returns true if the service returned a value for the Composition property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
composition
@Deprecated public final List<Clip> composition()
Deprecated.You can create an output file that contains an excerpt from the input file. This excerpt, called a clip, can come from the beginning, middle, or end of the file. The Composition object contains settings for the clips that make up an output file. For the current release, you can only specify settings for a single clip per output file. The Composition object cannot be null.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasComposition()method.- Returns:
- You can create an output file that contains an excerpt from the input file. This excerpt, called a clip, can come from the beginning, middle, or end of the file. The Composition object contains settings for the clips that make up an output file. For the current release, you can only specify settings for a single clip per output file. The Composition object cannot be null.
-
captions
public final Captions captions()
You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608, first non-empty channel only),CEA-708 (EIA-708, first non-empty channel only), andmov-textValid outputs include:
mov-textElastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp(first div element only),ebu-tt,scc,smpt,srt,ttml(first div element only), andwebvttValid outputs include:
dfxp(first div element only),scc,srt, andwebvtt.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set
Captionsto null. To pass through existing captions unchanged, set theMergePolicytoMergeRetain, and pass in a nullCaptionSourcesarray.For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
- Returns:
- You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All
captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608, first non-empty channel only),CEA-708 (EIA-708, first non-empty channel only), andmov-textValid outputs include:
mov-textElastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp(first div element only),ebu-tt,scc,smpt,srt,ttml(first div element only), andwebvttValid outputs include:
dfxp(first div element only),scc,srt, andwebvtt.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set
Captionsto null. To pass through existing captions unchanged, set theMergePolicytoMergeRetain, and pass in a nullCaptionSourcesarray.For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
-
-
-
encryption
public final Encryption encryption()
You can specify encryption settings for any output files that you want to use for a transcoding job. This includes the output file and any watermarks, thumbnails, album art, or captions that you want to use. You must specify encryption settings for each file individually.
- Returns:
- You can specify encryption settings for any output files that you want to use for a transcoding job. This includes the output file and any watermarks, thumbnails, album art, or captions that you want to use. You must specify encryption settings for each file individually.
-
toBuilder
public CreateJobOutput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateJobOutput.Builder,CreateJobOutput>
-
builder
public static CreateJobOutput.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateJobOutput.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
-