public class Preset
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Presets are templates that contain most of the settings for transcoding media files from one format to another. Elastic Transcoder includes some default presets for common formats, for example, several iPod and iPhone versions. You can also create your own presets for formats that aren't included among the default presets. You specify which preset you want to use when you create a job.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) for the preset.
|
private AudioParameters |
audio
A section of the response body that provides information about the audio
preset values.
|
private java.lang.String |
container
The container type for the output file.
|
private java.lang.String |
description
A description of the preset.
|
private java.lang.String |
id
Identifier for the new preset.
|
private java.lang.String |
name
The name of the preset.
|
private Thumbnails |
thumbnails
A section of the response body that provides information about the
thumbnail preset values, if any.
|
private java.lang.String |
type
Whether the preset is a default preset provided by Elastic Transcoder (
System ) or a preset that you have defined (
Custom ). |
private VideoParameters |
video
A section of the response body that provides information about the video
preset values.
|
Constructor and Description |
---|
Preset() |
Modifier and Type | Method and Description |
---|---|
Preset |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) for the preset.
|
AudioParameters |
getAudio()
A section of the response body that provides information about the audio
preset values.
|
java.lang.String |
getContainer()
The container type for the output file.
|
java.lang.String |
getDescription()
A description of the preset.
|
java.lang.String |
getId()
Identifier for the new preset.
|
java.lang.String |
getName()
The name of the preset.
|
Thumbnails |
getThumbnails()
A section of the response body that provides information about the
thumbnail preset values, if any.
|
java.lang.String |
getType()
Whether the preset is a default preset provided by Elastic Transcoder (
System ) or a preset that you have defined (
Custom ). |
VideoParameters |
getVideo()
A section of the response body that provides information about the video
preset values.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the preset.
|
void |
setAudio(AudioParameters audio)
A section of the response body that provides information about the audio
preset values.
|
void |
setContainer(java.lang.String container)
The container type for the output file.
|
void |
setDescription(java.lang.String description)
A description of the preset.
|
void |
setId(java.lang.String id)
Identifier for the new preset.
|
void |
setName(java.lang.String name)
The name of the preset.
|
void |
setThumbnails(Thumbnails thumbnails)
A section of the response body that provides information about the
thumbnail preset values, if any.
|
void |
setType(java.lang.String type)
Whether the preset is a default preset provided by Elastic Transcoder (
System ) or a preset that you have defined (
Custom ). |
void |
setVideo(VideoParameters video)
A section of the response body that provides information about the video
preset values.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Preset |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the preset.
|
Preset |
withAudio(AudioParameters audio)
A section of the response body that provides information about the audio
preset values.
|
Preset |
withContainer(java.lang.String container)
The container type for the output file.
|
Preset |
withDescription(java.lang.String description)
A description of the preset.
|
Preset |
withId(java.lang.String id)
Identifier for the new preset.
|
Preset |
withName(java.lang.String name)
The name of the preset.
|
Preset |
withThumbnails(Thumbnails thumbnails)
A section of the response body that provides information about the
thumbnail preset values, if any.
|
Preset |
withType(java.lang.String type)
Whether the preset is a default preset provided by Elastic Transcoder (
System ) or a preset that you have defined (
Custom ). |
Preset |
withVideo(VideoParameters video)
A section of the response body that provides information about the video
preset values.
|
private java.lang.String id
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
private java.lang.String arn
The Amazon Resource Name (ARN) for the preset.
private java.lang.String name
The name of the preset.
private java.lang.String description
A description of the preset.
private java.lang.String container
The container type for the output file. Valid values include
flac
, flv
, fmp4
, gif
,
mp3
, mp4
, mpg
, mxf
,
oga
, ogg
, ts
, and
webm
.
private AudioParameters audio
A section of the response body that provides information about the audio preset values.
private VideoParameters video
A section of the response body that provides information about the video preset values.
private Thumbnails thumbnails
A section of the response body that provides information about the thumbnail preset values, if any.
private java.lang.String type
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (
Custom
).
public void setId(java.lang.String id)
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
id
- Identifier for the new preset. You use this value to get settings
for the preset or to delete it.public java.lang.String getId()
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
public Preset withId(java.lang.String id)
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
id
- Identifier for the new preset. You use this value to get settings
for the preset or to delete it.public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the preset.
arn
- The Amazon Resource Name (ARN) for the preset.public java.lang.String getArn()
The Amazon Resource Name (ARN) for the preset.
public Preset withArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the preset.
arn
- The Amazon Resource Name (ARN) for the preset.public void setName(java.lang.String name)
The name of the preset.
name
- The name of the preset.public java.lang.String getName()
The name of the preset.
public Preset withName(java.lang.String name)
The name of the preset.
name
- The name of the preset.public void setDescription(java.lang.String description)
A description of the preset.
description
- A description of the preset.public java.lang.String getDescription()
A description of the preset.
public Preset withDescription(java.lang.String description)
A description of the preset.
description
- A description of the preset.public void setContainer(java.lang.String container)
The container type for the output file. Valid values include
flac
, flv
, fmp4
, gif
,
mp3
, mp4
, mpg
, mxf
,
oga
, ogg
, ts
, and
webm
.
container
- The container type for the output file. Valid values include
flac
, flv
, fmp4
,
gif
, mp3
, mp4
,
mpg
, mxf
, oga
,
ogg
, ts
, and webm
.public java.lang.String getContainer()
The container type for the output file. Valid values include
flac
, flv
, fmp4
, gif
,
mp3
, mp4
, mpg
, mxf
,
oga
, ogg
, ts
, and
webm
.
flac
, flv
, fmp4
,
gif
, mp3
, mp4
,
mpg
, mxf
, oga
,
ogg
, ts
, and webm
.public Preset withContainer(java.lang.String container)
The container type for the output file. Valid values include
flac
, flv
, fmp4
, gif
,
mp3
, mp4
, mpg
, mxf
,
oga
, ogg
, ts
, and
webm
.
container
- The container type for the output file. Valid values include
flac
, flv
, fmp4
,
gif
, mp3
, mp4
,
mpg
, mxf
, oga
,
ogg
, ts
, and webm
.public void setAudio(AudioParameters audio)
A section of the response body that provides information about the audio preset values.
audio
- A section of the response body that provides information about the
audio preset values.public AudioParameters getAudio()
A section of the response body that provides information about the audio preset values.
public Preset withAudio(AudioParameters audio)
A section of the response body that provides information about the audio preset values.
audio
- A section of the response body that provides information about the
audio preset values.public void setVideo(VideoParameters video)
A section of the response body that provides information about the video preset values.
video
- A section of the response body that provides information about the
video preset values.public VideoParameters getVideo()
A section of the response body that provides information about the video preset values.
public Preset withVideo(VideoParameters video)
A section of the response body that provides information about the video preset values.
video
- A section of the response body that provides information about the
video preset values.public void setThumbnails(Thumbnails thumbnails)
A section of the response body that provides information about the thumbnail preset values, if any.
thumbnails
- A section of the response body that provides information about the
thumbnail preset values, if any.public Thumbnails getThumbnails()
A section of the response body that provides information about the thumbnail preset values, if any.
public Preset withThumbnails(Thumbnails thumbnails)
A section of the response body that provides information about the thumbnail preset values, if any.
thumbnails
- A section of the response body that provides information about the
thumbnail preset values, if any.public void setType(java.lang.String type)
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (
Custom
).
type
- Whether the preset is a default preset provided by Elastic
Transcoder (System
) or a preset that you have defined
(Custom
).public java.lang.String getType()
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (
Custom
).
System
) or a preset that you have
defined (Custom
).public Preset withType(java.lang.String type)
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (
Custom
).
type
- Whether the preset is a default preset provided by Elastic
Transcoder (System
) or a preset that you have defined
(Custom
).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 Preset clone()
clone
in class java.lang.Object