public class CreatePresetRequest extends AmazonWebServiceRequest implements Serializable
CreatePreset operation
.
The CreatePreset operation creates a preset with settings that you specify.
IMPORTANT:Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements and to determine whether they comply with H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException) and does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message in the response. This helps you determine whether your settings comply with the H.264 standard while giving you greater flexibility with respect to the video that Elastic Transcoder produces.
Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services .
Constructor and Description |
---|
CreatePresetRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AudioParameters |
getAudio()
A section of the request body that specifies the audio parameters.
|
String |
getContainer()
The container type for the output file.
|
String |
getDescription()
A description of the preset.
|
String |
getName()
The name of the preset.
|
Thumbnails |
getThumbnails()
A section of the request body that specifies the thumbnail parameters,
if any.
|
VideoParameters |
getVideo()
A section of the request body that specifies the video parameters.
|
int |
hashCode() |
void |
setAudio(AudioParameters audio)
A section of the request body that specifies the audio parameters.
|
void |
setContainer(String container)
The container type for the output file.
|
void |
setDescription(String description)
A description of the preset.
|
void |
setName(String name)
The name of the preset.
|
void |
setThumbnails(Thumbnails thumbnails)
A section of the request body that specifies the thumbnail parameters,
if any.
|
void |
setVideo(VideoParameters video)
A section of the request body that specifies the video parameters.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePresetRequest |
withAudio(AudioParameters audio)
A section of the request body that specifies the audio parameters.
|
CreatePresetRequest |
withContainer(String container)
The container type for the output file.
|
CreatePresetRequest |
withDescription(String description)
A description of the preset.
|
CreatePresetRequest |
withName(String name)
The name of the preset.
|
CreatePresetRequest |
withThumbnails(Thumbnails thumbnails)
A section of the request body that specifies the thumbnail parameters,
if any.
|
CreatePresetRequest |
withVideo(VideoParameters video)
A section of the request body that specifies the video parameters.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getName()
Constraints:
Length: 1 - 40
public void setName(String name)
Constraints:
Length: 1 - 40
name
- The name of the preset. We recommend that the name be unique within
the AWS account, but uniqueness is not enforced.public CreatePresetRequest 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. We recommend that the name be unique within
the AWS account, but uniqueness is not enforced.public String getDescription()
Constraints:
Length: 0 - 255
public void setDescription(String description)
Constraints:
Length: 0 - 255
description
- A description of the preset.public CreatePresetRequest 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 CreatePresetRequest 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 VideoParameters getVideo()
public void setVideo(VideoParameters video)
video
- A section of the request body that specifies the video parameters.public CreatePresetRequest withVideo(VideoParameters video)
Returns a reference to this object so that method calls can be chained together.
video
- A section of the request body that specifies the video parameters.public AudioParameters getAudio()
public void setAudio(AudioParameters audio)
audio
- A section of the request body that specifies the audio parameters.public CreatePresetRequest withAudio(AudioParameters audio)
Returns a reference to this object so that method calls can be chained together.
audio
- A section of the request body that specifies the audio parameters.public Thumbnails getThumbnails()
public void setThumbnails(Thumbnails thumbnails)
thumbnails
- A section of the request body that specifies the thumbnail parameters,
if any.public CreatePresetRequest withThumbnails(Thumbnails thumbnails)
Returns a reference to this object so that method calls can be chained together.
thumbnails
- A section of the request body that specifies the thumbnail parameters,
if any.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.