public class CreatePresetRequest extends AmazonWebServiceRequest implements java.io.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 .
| コンストラクタと説明 |
|---|
CreatePresetRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
AudioParameters |
getAudio()
A section of the request body that specifies the audio parameters.
|
java.lang.String |
getContainer()
The container type for the output file.
|
java.lang.String |
getDescription()
A description of the preset.
|
java.lang.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(java.lang.String container)
The container type for the output file.
|
void |
setDescription(java.lang.String description)
A description of the preset.
|
void |
setName(java.lang.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.
|
java.lang.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(java.lang.String container)
The container type for the output file.
|
CreatePresetRequest |
withDescription(java.lang.String description)
A description of the preset.
|
CreatePresetRequest |
withName(java.lang.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, setRequestCredentialspublic java.lang.String getName()
Constraints:
Length: 1 - 40
public void setName(java.lang.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(java.lang.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 java.lang.String getDescription()
Constraints:
Length: 0 - 255
public void setDescription(java.lang.String description)
Constraints:
Length: 0 - 255
description - A description of the preset.public CreatePresetRequest withDescription(java.lang.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 java.lang.String getContainer()
mp4.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)
mp4.public void setContainer(java.lang.String container)
mp4.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)
container - The container type for the output file. This value must be
mp4.public CreatePresetRequest withContainer(java.lang.String container)
mp4.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)
container - The container type for the output file. This value must be
mp4.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object