public class Preset extends Object implements Serializable
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.
Constructor and Description |
---|
Preset() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
String |
getContainer()
The container type for the output file.
|
String |
getDescription()
A description of the preset.
|
String |
getId()
Identifier for the new preset.
|
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.
|
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(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(String container)
The container type for the output file.
|
void |
setDescription(String description)
A description of the preset.
|
void |
setId(String id)
Identifier for the new preset.
|
void |
setName(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(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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Preset |
withArn(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(String container)
The container type for the output file.
|
Preset |
withDescription(String description)
A description of the preset.
|
Preset |
withId(String id)
Identifier for the new preset.
|
Preset |
withName(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(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.
|
public String getId()
Constraints:
Pattern: ^\d{13}-\w{6}$
public void setId(String id)
Constraints:
Pattern: ^\d{13}-\w{6}$
id
- Identifier for the new preset. You use this value to get settings for
the preset or to delete it.public Preset withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^\d{13}-\w{6}$
id
- Identifier for the new preset. You use this value to get settings for
the preset or to delete it.public String getArn()
public void setArn(String arn)
arn
- The Amazon Resource Name (ARN) for the preset.public Preset withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
arn
- The Amazon Resource Name (ARN) for the preset.public String getName()
Constraints:
Length: 1 - 40
public void setName(String name)
Constraints:
Length: 1 - 40
name
- The name of the preset.public Preset withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 40
name
- The name of the preset.public String getDescription()
Constraints:
Length: 0 - 255
public void setDescription(String description)
Constraints:
Length: 0 - 255
description
- A description of the preset.public Preset withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
description
- A description of the preset.public String getContainer()
mp3
, mp4
, ogg
, ts
,
and webm
.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)|(^mp3$)|(^ogg$)
mp3
, mp4
, ogg
, ts
,
and webm
.public void setContainer(String container)
mp3
, mp4
, ogg
, ts
,
and webm
.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)|(^mp3$)|(^ogg$)
container
- The container type for the output file. Valid values include
mp3
, mp4
, ogg
, ts
,
and webm
.public Preset withContainer(String container)
mp3
, mp4
, ogg
, ts
,
and webm
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)|(^mp3$)|(^ogg$)
container
- The container type for the output file. Valid values include
mp3
, mp4
, ogg
, ts
,
and webm
.public AudioParameters getAudio()
public void setAudio(AudioParameters audio)
audio
- A section of the response body that provides information about the
audio preset values.public Preset withAudio(AudioParameters audio)
Returns a reference to this object so that method calls can be chained together.
audio
- A section of the response body that provides information about the
audio preset values.public VideoParameters getVideo()
public void setVideo(VideoParameters video)
video
- A section of the response body that provides information about the
video preset values.public Preset withVideo(VideoParameters video)
Returns a reference to this object so that method calls can be chained together.
video
- A section of the response body that provides information about the
video preset values.public Thumbnails getThumbnails()
public void setThumbnails(Thumbnails thumbnails)
thumbnails
- A section of the response body that provides information about the
thumbnail preset values, if any.public Preset withThumbnails(Thumbnails thumbnails)
Returns a reference to this object so that method calls can be chained together.
thumbnails
- A section of the response body that provides information about the
thumbnail preset values, if any.public String getType()
System
) or a preset that you have defined
(Custom
).
Constraints:
Pattern: (^System$)|(^Custom$)
System
) or a preset that you have defined
(Custom
).public void setType(String type)
System
) or a preset that you have defined
(Custom
).
Constraints:
Pattern: (^System$)|(^Custom$)
type
- Whether the preset is a default preset provided by Elastic Transcoder
(System
) or a preset that you have defined
(Custom
).public Preset withType(String type)
System
) or a preset that you have defined
(Custom
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^System$)|(^Custom$)
type
- Whether the preset is a default preset provided by Elastic Transcoder
(System
) or a preset that you have defined
(Custom
).public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.