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

Parameters required for transcoding audio.

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.
 AudioCodecOptions getCodecOptions()
          If you specified AAC for Audio:Codec, this is the AAC compression profile to use.
 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 setCodecOptions(AudioCodecOptions codecOptions)
          If you specified AAC for Audio:Codec, this is the AAC compression profile to use.
 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 withCodecOptions(AudioCodecOptions codecOptions)
          If you specified AAC for Audio:Codec, this is the AAC compression profile to use.
 AudioParameters withSampleRate(String sampleRate)
          The sample rate of the audio stream in the output file, in Hertz.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioParameters

public AudioParameters()
Method Detail

getCodec

public String getCodec()
The audio codec for the output file. Valid values include aac, mp3, and vorbis.

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

Returns:
The audio codec for the output file. Valid values include aac, mp3, and vorbis.

setCodec

public void setCodec(String codec)
The audio codec for the output file. Valid values include aac, mp3, and vorbis.

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

Parameters:
codec - The audio codec for the output file. Valid values include aac, mp3, and vorbis.

withCodec

public AudioParameters withCodec(String codec)
The audio codec for the output file. Valid values include aac, mp3, and vorbis.

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

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

Parameters:
codec - The audio codec for the output file. Valid values include aac, mp3, and vorbis.
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.

getCodecOptions

public AudioCodecOptions getCodecOptions()
If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.

Returns:
If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.


setCodecOptions

public void setCodecOptions(AudioCodecOptions codecOptions)
If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.

Parameters:
codecOptions - If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.


withCodecOptions

public AudioParameters withCodecOptions(AudioCodecOptions codecOptions)
If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.

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

Parameters:
codecOptions - If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output 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 © 2016. All rights reserved.