Class CfnChannelPropsMixin.AacSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.medialive.CfnChannelPropsMixin.AacSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelPropsMixin.AacSettingsProperty>
- Enclosing interface:
CfnChannelPropsMixin.AacSettingsProperty
@Stability(Stable)
public static final class CfnChannelPropsMixin.AacSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelPropsMixin.AacSettingsProperty>
A builder for
CfnChannelPropsMixin.AacSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannelPropsMixin.AacSettingsProperty.getBitrate()build()Builds the configured instance.codingMode(String codingMode) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getCodingMode()Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getInputType()Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getProfile()rateControlMode(String rateControlMode) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getRateControlMode()Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getRawFormat()sampleRate(Number sampleRate) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getSampleRate()Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getSpec()vbrQuality(String vbrQuality) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getVbrQuality()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bitrate
Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getBitrate()- Parameters:
bitrate- The average bitrate in bits/second. Valid values depend on the rate control mode and profile.- Returns:
this
-
codingMode
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder codingMode(String codingMode) Sets the value ofCfnChannelPropsMixin.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
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder inputType(String inputType) Sets the value ofCfnChannelPropsMixin.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 ofCfnChannelPropsMixin.AacSettingsProperty.getProfile()- Parameters:
profile- The AAC profile.- Returns:
this
-
rateControlMode
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder rateControlMode(String rateControlMode) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getRateControlMode()- Parameters:
rateControlMode- The rate control mode.- Returns:
this
-
rawFormat
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder rawFormat(String rawFormat) Sets the value ofCfnChannelPropsMixin.AacSettingsProperty.getRawFormat()- Parameters:
rawFormat- Sets the LATM/LOAS AAC output for raw containers.- Returns:
this
-
sampleRate
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder sampleRate(Number sampleRate) Sets the value ofCfnChannelPropsMixin.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 ofCfnChannelPropsMixin.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
@Stability(Stable) public CfnChannelPropsMixin.AacSettingsProperty.Builder vbrQuality(String vbrQuality) Sets the value ofCfnChannelPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelPropsMixin.AacSettingsProperty>- Returns:
- a new instance of
CfnChannelPropsMixin.AacSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-