Class AacSettingsProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.AacSettingsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AacSettingsProps>
- Enclosing interface:
AacSettingsProps
@Stability(Experimental)
public static final class AacSettingsProps.Builder
extends Object
implements software.amazon.jsii.Builder<AacSettingsProps>
A builder for
AacSettingsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAacSettingsProps.getBitrate()build()Builds the configured instance.codingMode(AacCodingMode codingMode) Sets the value ofAacSettingsProps.getCodingMode()inputType(AacInputType inputType) Sets the value ofAacSettingsProps.getInputType()profile(AacProfile profile) Sets the value ofAacSettingsProps.getProfile()rateControlMode(AacRateControlMode rateControlMode) Sets the value ofAacSettingsProps.getRateControlMode()rawFormat(AacRawFormat rawFormat) Sets the value ofAacSettingsProps.getRawFormat()sampleRate(AudioSampleRate sampleRate) Sets the value ofAacSettingsProps.getSampleRate()Sets the value ofAacSettingsProps.getSpec()vbrQuality(AacVbrQuality vbrQuality) Sets the value ofAacSettingsProps.getVbrQuality()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bitrate
Sets the value ofAacSettingsProps.getBitrate()- Parameters:
bitrate- The average bitrate.- Returns:
this
-
codingMode
Sets the value ofAacSettingsProps.getCodingMode()- Parameters:
codingMode- The coding mode (mono, stereo, 5.1).- Returns:
this
-
inputType
Sets the value ofAacSettingsProps.getInputType()- Parameters:
inputType- Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair.- Returns:
this
-
profile
Sets the value ofAacSettingsProps.getProfile()- Parameters:
profile- The AAC profile.- Returns:
this
-
rateControlMode
@Stability(Experimental) public AacSettingsProps.Builder rateControlMode(AacRateControlMode rateControlMode) Sets the value ofAacSettingsProps.getRateControlMode()- Parameters:
rateControlMode- The rate control mode.- Returns:
this
-
rawFormat
Sets the value ofAacSettingsProps.getRawFormat()- Parameters:
rawFormat- Sets the LATM/LOAS AAC output for raw containers.- Returns:
this
-
sampleRate
Sets the value ofAacSettingsProps.getSampleRate()- Parameters:
sampleRate- The sample rate.- Returns:
this
-
spec
Sets the value ofAacSettingsProps.getSpec()- Parameters:
spec- The AAC specification (MPEG-4 or MPEG-2) used to encode the audio. Set toAacSpec.MPEG2to emit MPEG-2 AAC instead of MPEG-4 AAC for raw or MPEG-2 Transport Stream containers.- Returns:
this
-
vbrQuality
Sets the value ofAacSettingsProps.getVbrQuality()- Parameters:
vbrQuality- The VBR quality level. Used only if rateControlMode is VBR.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AacSettingsProps>- Returns:
- a new instance of
AacSettingsProps - Throws:
NullPointerException- if any required attribute was not provided
-