Class CfnChannel.AacSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.AacSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.AacSettingsProperty>
- Enclosing interface:
CfnChannel.AacSettingsProperty
@Stability(Stable)
public static final class CfnChannel.AacSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.AacSettingsProperty>
A builder for
CfnChannel.AacSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.AacSettingsProperty.getBitrate()
build()
Builds the configured instance.codingMode
(String codingMode) Sets the value ofCfnChannel.AacSettingsProperty.getCodingMode()
Sets the value ofCfnChannel.AacSettingsProperty.getInputType()
Sets the value ofCfnChannel.AacSettingsProperty.getProfile()
rateControlMode
(String rateControlMode) Sets the value ofCfnChannel.AacSettingsProperty.getRateControlMode()
Sets the value ofCfnChannel.AacSettingsProperty.getRawFormat()
sampleRate
(Number sampleRate) Sets the value ofCfnChannel.AacSettingsProperty.getSampleRate()
Sets the value ofCfnChannel.AacSettingsProperty.getSpec()
vbrQuality
(String vbrQuality) Sets the value ofCfnChannel.AacSettingsProperty.getVbrQuality()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bitrate
Sets the value ofCfnChannel.AacSettingsProperty.getBitrate()
- Parameters:
bitrate
- The average bitrate in bits/second. Valid values depend on the rate control mode and profile.- Returns:
this
-
codingMode
Sets the value ofCfnChannel.AacSettingsProperty.getCodingMode()
- Parameters:
codingMode
- Mono, stereo, or 5.1 channel layout. Valid values depend on the rate control mode and profile. The adReceiverMix setting receives a stereo description plus control track, and emits a mono AAC encode of the description track, with control data emitted in the PES header as per ETSI TS 101 154 Annex E.- Returns:
this
-
inputType
Sets the value ofCfnChannel.AacSettingsProperty.getInputType()
- Parameters:
inputType
- Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair. The Audio Type field (audioType) will be set to 3, which signals to downstream systems that this stream contains broadcaster mixed AD. Note that the input received by the encoder must contain pre-mixed audio; MediaLive does not perform the mixing. The values in audioTypeControl and audioType (in AudioDescription) are ignored when set to broadcasterMixedAd. Leave this set to normal when the input does not contain pre-mixed audio + AD.- Returns:
this
-
profile
Sets the value ofCfnChannel.AacSettingsProperty.getProfile()
- Parameters:
profile
- The AAC profile.- Returns:
this
-
rateControlMode
@Stability(Stable) public CfnChannel.AacSettingsProperty.Builder rateControlMode(String rateControlMode) Sets the value ofCfnChannel.AacSettingsProperty.getRateControlMode()
- Parameters:
rateControlMode
- The rate control mode.- Returns:
this
-
rawFormat
Sets the value ofCfnChannel.AacSettingsProperty.getRawFormat()
- Parameters:
rawFormat
- Sets the LATM/LOAS AAC output for raw containers.- Returns:
this
-
sampleRate
Sets the value ofCfnChannel.AacSettingsProperty.getSampleRate()
- Parameters:
sampleRate
- The sample rate in Hz. Valid values depend on the rate control mode and profile.- Returns:
this
-
spec
Sets the value ofCfnChannel.AacSettingsProperty.getSpec()
- Parameters:
spec
- Uses MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers.- Returns:
this
-
vbrQuality
Sets the value ofCfnChannel.AacSettingsProperty.getVbrQuality()
- Parameters:
vbrQuality
- The VBR quality level. This is used only if rateControlMode is VBR.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.AacSettingsProperty>
- Returns:
- a new instance of
CfnChannel.AacSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-