Class CfnChannel.AudioLanguageSelectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.AudioLanguageSelectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.AudioLanguageSelectionProperty>
- Enclosing interface:
- CfnChannel.AudioLanguageSelectionProperty
@Stability(Stable)
public static final class CfnChannel.AudioLanguageSelectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.AudioLanguageSelectionProperty>
A builder for
CfnChannel.AudioLanguageSelectionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.languageCode
(String languageCode) Sets the value ofCfnChannel.AudioLanguageSelectionProperty.getLanguageCode()
languageSelectionPolicy
(String languageSelectionPolicy) Sets the value ofCfnChannel.AudioLanguageSelectionProperty.getLanguageSelectionPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageCode
@Stability(Stable) public CfnChannel.AudioLanguageSelectionProperty.Builder languageCode(String languageCode) Sets the value ofCfnChannel.AudioLanguageSelectionProperty.getLanguageCode()
- Parameters:
languageCode
- Selects a specific three-letter language code from within an audio source.- Returns:
this
-
languageSelectionPolicy
@Stability(Stable) public CfnChannel.AudioLanguageSelectionProperty.Builder languageSelectionPolicy(String languageSelectionPolicy) Sets the value ofCfnChannel.AudioLanguageSelectionProperty.getLanguageSelectionPolicy()
- Parameters:
languageSelectionPolicy
- When set to "strict," the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present, then mute is encoded until the language returns. If set to "loose," then on a PMT update the demux chooses another audio stream in the program with the same stream type if it can't find one with the same language.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.AudioLanguageSelectionProperty>
- Returns:
- a new instance of
CfnChannel.AudioLanguageSelectionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-