Class CfnChannel.Mp2SettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.Mp2SettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.Mp2SettingsProperty>
- Enclosing interface:
- CfnChannel.Mp2SettingsProperty
@Stability(Stable)
public static final class CfnChannel.Mp2SettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.Mp2SettingsProperty>
A builder for
CfnChannel.Mp2SettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.Mp2SettingsProperty.getBitrate()build()Builds the configured instance.codingMode(String codingMode) Sets the value ofCfnChannel.Mp2SettingsProperty.getCodingMode()sampleRate(Number sampleRate) Sets the value ofCfnChannel.Mp2SettingsProperty.getSampleRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bitrate
Sets the value ofCfnChannel.Mp2SettingsProperty.getBitrate()- Parameters:
bitrate- The average bitrate in bits/second.- Returns:
this
-
codingMode
Sets the value ofCfnChannel.Mp2SettingsProperty.getCodingMode()- Parameters:
codingMode- The MPEG2 Audio coding mode. Valid values are codingMode10 (for mono) or codingMode20 (for stereo).- Returns:
this
-
sampleRate
Sets the value ofCfnChannel.Mp2SettingsProperty.getSampleRate()- Parameters:
sampleRate- The sample rate in Hz.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.Mp2SettingsProperty>- Returns:
- a new instance of
CfnChannel.Mp2SettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-