Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elastictranscoder.model
Class CreatePresetRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elastictranscoder.model.CreatePresetRequest
All Implemented Interfaces:
Serializable

public class CreatePresetRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreatePreset operation.

To create a preset, send a POST request to the /2012-09-25/presets resource.

IMPORTANT:Elastic Transcoder checks the settings that you specify 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 .

See Also:
AmazonElasticTranscoder.createPreset(CreatePresetRequest), Serialized Form

Constructor Summary
CreatePresetRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreatePresetRequest

public CreatePresetRequest()
Method Detail

getName

public String getName()
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

Constraints:
Length: 1 - 40

Returns:
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

setName

public void setName(String name)
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

Constraints:
Length: 1 - 40

Parameters:
name - The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

withName

public CreatePresetRequest withName(String name)
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 40

Parameters:
name - The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
A description of the preset.

Constraints:
Length: 0 - 255

Returns:
A description of the preset.

setDescription

public void setDescription(String description)
A description of the preset.

Constraints:
Length: 0 - 255

Parameters:
description - A description of the preset.

withDescription

public CreatePresetRequest withDescription(String description)
A description of the preset.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
description - A description of the preset.
Returns:
A reference to this updated object so that method calls can be chained together.

getContainer

public String getContainer()
The container type for the output file. This value must be mp4.

Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)

Returns:
The container type for the output file. This value must be mp4.

setContainer

public void setContainer(String container)
The container type for the output file. This value must be mp4.

Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)

Parameters:
container - The container type for the output file. This value must be mp4.

withContainer

public CreatePresetRequest withContainer(String container)
The container type for the output file. This value must be mp4.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^mp4$)|(^ts$)|(^webm$)

Parameters:
container - The container type for the output file. This value must be mp4.
Returns:
A reference to this updated object so that method calls can be chained together.

getVideo

public VideoParameters getVideo()
A section of the request body that specifies the video parameters.

Returns:
A section of the request body that specifies the video parameters.

setVideo

public void setVideo(VideoParameters video)
A section of the request body that specifies the video parameters.

Parameters:
video - A section of the request body that specifies the video parameters.

withVideo

public CreatePresetRequest withVideo(VideoParameters video)
A section of the request body that specifies the video parameters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
video - A section of the request body that specifies the video parameters.
Returns:
A reference to this updated object so that method calls can be chained together.

getAudio

public AudioParameters getAudio()
A section of the request body that specifies the audio parameters.

Returns:
A section of the request body that specifies the audio parameters.

setAudio

public void setAudio(AudioParameters audio)
A section of the request body that specifies the audio parameters.

Parameters:
audio - A section of the request body that specifies the audio parameters.

withAudio

public CreatePresetRequest withAudio(AudioParameters audio)
A section of the request body that specifies the audio parameters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
audio - A section of the request body that specifies the audio parameters.
Returns:
A reference to this updated object so that method calls can be chained together.

getThumbnails

public Thumbnails getThumbnails()
A section of the request body that specifies the thumbnail parameters, if any.

Returns:
A section of the request body that specifies the thumbnail parameters, if any.

setThumbnails

public void setThumbnails(Thumbnails thumbnails)
A section of the request body that specifies the thumbnail parameters, if any.

Parameters:
thumbnails - A section of the request body that specifies the thumbnail parameters, if any.

withThumbnails

public CreatePresetRequest withThumbnails(Thumbnails thumbnails)
A section of the request body that specifies the thumbnail parameters, if any.

Returns a reference to this object so that method calls can be chained together.

Parameters:
thumbnails - A section of the request body that specifies the thumbnail parameters, if any.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.