Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elastictranscoder.model
Class AudioParameters

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

public class AudioParameters
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
AudioParameters()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBitRate()
          The bit rate of the audio stream in the output file, in kilobits/second.
 String getChannels()
          The number of audio channels in the output file.
 String getCodec()
          The audio codec for the output file.
 String getSampleRate()
          The sample rate of the audio stream in the output file, in Hertz.
 int hashCode()
           
 void setBitRate(String bitRate)
          The bit rate of the audio stream in the output file, in kilobits/second.
 void setChannels(String channels)
          The number of audio channels in the output file.
 void setCodec(String codec)
          The audio codec for the output file.
 void setSampleRate(String sampleRate)
          The sample rate of the audio stream in the output file, in Hertz.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AudioParameters withBitRate(String bitRate)
          The bit rate of the audio stream in the output file, in kilobits/second.
 AudioParameters withChannels(String channels)
          The number of audio channels in the output file.
 AudioParameters withCodec(String codec)
          The audio codec for the output file.
 AudioParameters withSampleRate(String sampleRate)
          The sample rate of the audio stream in the output file, in Hertz.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioParameters

public AudioParameters()
Method Detail

getCodec

public String getCodec()
The audio codec for the output file. This value must be AAC.

Constraints:
Pattern: (^AAC$)|(^vorbis$)

Returns:
The audio codec for the output file. This value must be AAC.

setCodec

public void setCodec(String codec)
The audio codec for the output file. This value must be AAC.

Constraints:
Pattern: (^AAC$)|(^vorbis$)

Parameters:
codec - The audio codec for the output file. This value must be AAC.

withCodec

public AudioParameters withCodec(String codec)
The audio codec for the output file. This value must be AAC.

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

Constraints:
Pattern: (^AAC$)|(^vorbis$)

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

getSampleRate

public String getSampleRate()
The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

Constraints:
Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)

Returns:
The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.


setSampleRate

public void setSampleRate(String sampleRate)
The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

Constraints:
Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)

Parameters:
sampleRate - The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.


withSampleRate

public AudioParameters withSampleRate(String sampleRate)
The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

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

Constraints:
Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)

Parameters:
sampleRate - The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

Returns:
A reference to this updated object so that method calls can be chained together.

getBitRate

public String getBitRate()
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.

Constraints:
Pattern: ^\d{1,3}$

Returns:
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.

setBitRate

public void setBitRate(String bitRate)
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.

Constraints:
Pattern: ^\d{1,3}$

Parameters:
bitRate - The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.

withBitRate

public AudioParameters withBitRate(String bitRate)
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.

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

Constraints:
Pattern: ^\d{1,3}$

Parameters:
bitRate - The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
Returns:
A reference to this updated object so that method calls can be chained together.

getChannels

public String getChannels()
The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.

Constraints:
Pattern: (^auto$)|(^0$)|(^1$)|(^2$)

Returns:
The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.


setChannels

public void setChannels(String channels)
The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.

Constraints:
Pattern: (^auto$)|(^0$)|(^1$)|(^2$)

Parameters:
channels - The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.


withChannels

public AudioParameters withChannels(String channels)
The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.

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

Constraints:
Pattern: (^auto$)|(^0$)|(^1$)|(^2$)

Parameters:
channels - The number of audio channels in the output file. Valid values include:

auto, 0, 1, 2

If you specify auto, Elastic Transcoder automatically detects the number of channels in the input file.

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.