Class Preset
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.Preset
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Preset extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Preset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Presetclone()booleanequals(Object obj)StringgetArn()The Amazon Resource Name (ARN) for the preset.AudioParametersgetAudio()A section of the response body that provides information about the audio preset values.StringgetContainer()The container type for the output file.StringgetDescription()A description of the preset.StringgetId()Identifier for the new preset.StringgetName()The name of the preset.ThumbnailsgetThumbnails()A section of the response body that provides information about the thumbnail preset values, if any.StringgetType()Whether the preset is a default preset provided by Elastic Transcoder (System) or a preset that you have defined (Custom).VideoParametersgetVideo()A section of the response body that provides information about the video preset values.inthashCode()voidsetArn(String arn)The Amazon Resource Name (ARN) for the preset.voidsetAudio(AudioParameters audio)A section of the response body that provides information about the audio preset values.voidsetContainer(String container)The container type for the output file.voidsetDescription(String description)A description of the preset.voidsetId(String id)Identifier for the new preset.voidsetName(String name)The name of the preset.voidsetThumbnails(Thumbnails thumbnails)A section of the response body that provides information about the thumbnail preset values, if any.voidsetType(String type)Whether the preset is a default preset provided by Elastic Transcoder (System) or a preset that you have defined (Custom).voidsetVideo(VideoParameters video)A section of the response body that provides information about the video preset values.StringtoString()Returns a string representation of this object; useful for testing and debugging.PresetwithArn(String arn)The Amazon Resource Name (ARN) for the preset.PresetwithAudio(AudioParameters audio)A section of the response body that provides information about the audio preset values.PresetwithContainer(String container)The container type for the output file.PresetwithDescription(String description)A description of the preset.PresetwithId(String id)Identifier for the new preset.PresetwithName(String name)The name of the preset.PresetwithThumbnails(Thumbnails thumbnails)A section of the response body that provides information about the thumbnail preset values, if any.PresetwithType(String type)Whether the preset is a default preset provided by Elastic Transcoder (System) or a preset that you have defined (Custom).PresetwithVideo(VideoParameters video)A section of the response body that provides information about the video preset values.
-
-
-
Method Detail
-
setId
public void setId(String id)
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
public String 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
public Preset withId(String id)
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
public void setArn(String arn)
The Amazon Resource Name (ARN) for the preset.
- Parameters:
arn- The Amazon Resource Name (ARN) for the preset.
-
getArn
public String getArn()
The Amazon Resource Name (ARN) for the preset.
- Returns:
- The Amazon Resource Name (ARN) for the preset.
-
withArn
public Preset withArn(String arn)
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
public void setName(String name)
The name of the preset.
- Parameters:
name- The name of the preset.
-
getName
public String getName()
The name of the preset.
- Returns:
- The name of the preset.
-
withName
public Preset withName(String name)
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
public void setDescription(String description)
A description of the preset.
- Parameters:
description- A description of the preset.
-
getDescription
public String getDescription()
A description of the preset.
- Returns:
- A description of the preset.
-
withDescription
public Preset withDescription(String description)
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
public void setContainer(String container)
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
public String 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
public Preset withContainer(String container)
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
public void setAudio(AudioParameters audio)
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
public AudioParameters 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
public Preset withAudio(AudioParameters audio)
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
public void setVideo(VideoParameters video)
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
public VideoParameters 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
public Preset withVideo(VideoParameters video)
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
public void setThumbnails(Thumbnails thumbnails)
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
public Thumbnails 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
public Preset withThumbnails(Thumbnails thumbnails)
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
public void setType(String type)
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
public String 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
public Preset withType(String type)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-