Class Preset
- All Implemented Interfaces:
Serializable
,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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The Amazon Resource Name (ARN) for the preset.getAudio()
A section of the response body that provides information about the audio preset values.The container type for the output file.A description of the preset.getId()
Identifier for the new preset.getName()
The name of the preset.A section of the response body that provides information about the thumbnail preset values, if any.getType()
Whether the preset is a default preset provided by Elastic Transcoder (System
) or a preset that you have defined (Custom
).getVideo()
A section of the response body that provides information about the video preset values.int
hashCode()
void
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
Identifier for the new preset.void
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
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.toString()
Returns a string representation of this object; useful for testing and debugging.The Amazon Resource Name (ARN) for the preset.withAudio
(AudioParameters audio) A section of the response body that provides information about the audio preset values.withContainer
(String container) The container type for the output file.withDescription
(String description) A description of the preset.Identifier for the new preset.The name of the preset.withThumbnails
(Thumbnails thumbnails) A section of the response body that provides information about the thumbnail preset values, if any.Whether the preset is a default preset provided by Elastic Transcoder (System
) or a preset that you have defined (Custom
).withVideo
(VideoParameters video) A section of the response body that provides information about the video preset values.
-
Constructor Details
-
Preset
public Preset()
-
-
Method Details
-
setId
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
- Parameters:
id
- Identifier for the new preset. You use this value to get settings for the preset or to delete it.
-
getId
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
- Returns:
- Identifier for the new preset. You use this value to get settings for the preset or to delete it.
-
withId
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
- Parameters:
id
- Identifier for the new preset. You use this value to get settings for the preset or to delete it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
The Amazon Resource Name (ARN) for the preset.
- Parameters:
arn
- The Amazon Resource Name (ARN) for the preset.
-
getArn
The Amazon Resource Name (ARN) for the preset.
- Returns:
- The Amazon Resource Name (ARN) for the preset.
-
withArn
The Amazon Resource Name (ARN) for the preset.
- Parameters:
arn
- The Amazon Resource Name (ARN) for the preset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the preset.
- Parameters:
name
- The name of the preset.
-
getName
The name of the preset.
- Returns:
- The name of the preset.
-
withName
The name of the preset.
- Parameters:
name
- The name of the preset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description of the preset.
- Parameters:
description
- A description of the preset.
-
getDescription
A description of the preset.
- Returns:
- A description of the preset.
-
withDescription
A description of the preset.
- Parameters:
description
- A description of the preset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainer
The container type for the output file. Valid values include
flac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.- Parameters:
container
- The container type for the output file. Valid values includeflac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.
-
getContainer
The container type for the output file. Valid values include
flac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.- Returns:
- The container type for the output file. Valid values include
flac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.
-
withContainer
The container type for the output file. Valid values include
flac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.- Parameters:
container
- The container type for the output file. Valid values includeflac
,flv
,fmp4
,gif
,mp3
,mp4
,mpg
,mxf
,oga
,ogg
,ts
, andwebm
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAudio
A section of the response body that provides information about the audio preset values.
- Parameters:
audio
- A section of the response body that provides information about the audio preset values.
-
getAudio
A section of the response body that provides information about the audio preset values.
- Returns:
- A section of the response body that provides information about the audio preset values.
-
withAudio
A section of the response body that provides information about the audio preset values.
- Parameters:
audio
- A section of the response body that provides information about the audio preset values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVideo
A section of the response body that provides information about the video preset values.
- Parameters:
video
- A section of the response body that provides information about the video preset values.
-
getVideo
A section of the response body that provides information about the video preset values.
- Returns:
- A section of the response body that provides information about the video preset values.
-
withVideo
A section of the response body that provides information about the video preset values.
- Parameters:
video
- A section of the response body that provides information about the video preset values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setThumbnails
A section of the response body that provides information about the thumbnail preset values, if any.
- Parameters:
thumbnails
- A section of the response body that provides information about the thumbnail preset values, if any.
-
getThumbnails
A section of the response body that provides information about the thumbnail preset values, if any.
- Returns:
- A section of the response body that provides information about the thumbnail preset values, if any.
-
withThumbnails
A section of the response body that provides information about the thumbnail preset values, if any.
- Parameters:
thumbnails
- A section of the response body that provides information about the thumbnail preset values, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (Custom
).- Parameters:
type
- Whether the preset is a default preset provided by Elastic Transcoder (System
) or a preset that you have defined (Custom
).
-
getType
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (Custom
).- Returns:
- Whether the preset is a default preset provided by Elastic
Transcoder (
System
) or a preset that you have defined (Custom
).
-
withType
Whether the preset is a default preset provided by Elastic Transcoder (
System
) or a preset that you have defined (Custom
).- Parameters:
type
- Whether the preset is a default preset provided by Elastic Transcoder (System
) or a preset that you have defined (Custom
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-