Class AudioEncodeProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.AudioEncodeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AudioEncodeProps>
- Enclosing interface:
AudioEncodeProps
@Stability(Experimental)
public static final class AudioEncodeProps.Builder
extends Object
implements software.amazon.jsii.Builder<AudioEncodeProps>
A builder for
AudioEncodeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioDashRoles(List<? extends AudioDashRole> audioDashRoles) Sets the value ofAudioEncodeProps.getAudioDashRoles()audioNormalization(AudioNormalizationSettings audioNormalization) Sets the value ofAudioEncodeProps.getAudioNormalization()audioSelectorName(String audioSelectorName) Sets the value ofAudioEncodeProps.getAudioSelectorName()Sets the value ofAudioEncodeProps.getAudioType()audioTypeControl(AudioTypeControl audioTypeControl) Sets the value ofAudioEncodeProps.getAudioTypeControl()audioWatermarkSettings(AudioWatermarkSettings audioWatermarkSettings) Sets the value ofAudioEncodeProps.getAudioWatermarkSettings()build()Builds the configured instance.codec(AudioCodecSettings codec) Sets the value ofAudioEncodeProps.getCodec()dvbDashAccessibility(DvbDashAccessibility dvbDashAccessibility) Sets the value ofAudioEncodeProps.getDvbDashAccessibility()languageCode(String languageCode) Sets the value ofAudioEncodeProps.getLanguageCode()languageCodeControl(AudioLanguageCodeControl languageCodeControl) Sets the value ofAudioEncodeProps.getLanguageCodeControl()Sets the value ofAudioEncodeProps.getName()remixSettings(RemixSettings remixSettings) Sets the value ofAudioEncodeProps.getRemixSettings()streamName(String streamName) Sets the value ofAudioEncodeProps.getStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codec
Sets the value ofAudioEncodeProps.getCodec()- Parameters:
codec- The codec for the audio encode. This parameter is required. Choose the codec explicitly (e.g.AudioCodecSettings.aac(...))- Returns:
this
-
name
Sets the value ofAudioEncodeProps.getName()- Parameters:
name- A unique name for this audio encode. This parameter is required.- Returns:
this
-
audioDashRoles
@Stability(Experimental) public AudioEncodeProps.Builder audioDashRoles(List<? extends AudioDashRole> audioDashRoles) Sets the value ofAudioEncodeProps.getAudioDashRoles()- Parameters:
audioDashRoles- The DASH roles to assign to this audio output. Applies only when the output is configured for DVB DASH accessibility signaling.- Returns:
this
-
audioNormalization
@Stability(Experimental) public AudioEncodeProps.Builder audioNormalization(AudioNormalizationSettings audioNormalization) Sets the value ofAudioEncodeProps.getAudioNormalization()- Parameters:
audioNormalization- Audio normalization settings for loudness correction.- Returns:
this
-
audioSelectorName
@Stability(Experimental) public AudioEncodeProps.Builder audioSelectorName(String audioSelectorName) Sets the value ofAudioEncodeProps.getAudioSelectorName()- Parameters:
audioSelectorName- The name of the audio selector in the input to use as the source. Must match thenameof anAudioSelectoron the input attachment. When omitted, MediaLive uses the input's default audio.- Returns:
this
-
audioType
Sets the value ofAudioEncodeProps.getAudioType()- Parameters:
audioType- The audio type when audioTypeControl is USE_CONFIGURED. The values are defined in ISO-IEC 13818-1.- Returns:
this
-
audioTypeControl
@Stability(Experimental) public AudioEncodeProps.Builder audioTypeControl(AudioTypeControl audioTypeControl) Sets the value ofAudioEncodeProps.getAudioTypeControl()- Parameters:
audioTypeControl- How the audio type is signaled in the output.- Returns:
this
-
audioWatermarkSettings
@Stability(Experimental) public AudioEncodeProps.Builder audioWatermarkSettings(AudioWatermarkSettings audioWatermarkSettings) Sets the value ofAudioEncodeProps.getAudioWatermarkSettings()- Parameters:
audioWatermarkSettings- Audio watermarking settings (e.g. Nielsen watermarks).- Returns:
this
-
dvbDashAccessibility
@Stability(Experimental) public AudioEncodeProps.Builder dvbDashAccessibility(DvbDashAccessibility dvbDashAccessibility) Sets the value ofAudioEncodeProps.getDvbDashAccessibility()- Parameters:
dvbDashAccessibility- DVB DASH accessibility signaling for this audio output.- Returns:
this
-
languageCode
Sets the value ofAudioEncodeProps.getLanguageCode()- Parameters:
languageCode- The ISO 639-2 language code for the audio output track (e.g. 'eng', 'spa').- Returns:
this
-
languageCodeControl
@Stability(Experimental) public AudioEncodeProps.Builder languageCodeControl(AudioLanguageCodeControl languageCodeControl) Sets the value ofAudioEncodeProps.getLanguageCodeControl()- Parameters:
languageCodeControl- How the audio language code is signaled in the output. WhenFOLLOW_INPUT, a configuredlanguageCodeis used only as a fallback when the input has none.- Returns:
this
-
remixSettings
Sets the value ofAudioEncodeProps.getRemixSettings()- Parameters:
remixSettings- Audio remix settings for channel remapping.- Returns:
this
-
streamName
Sets the value ofAudioEncodeProps.getStreamName()- Parameters:
streamName- The display name for the audio track (e.g. 'English', 'Director Commentary'). Used for HLS and MS Smooth outputs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AudioEncodeProps>- Returns:
- a new instance of
AudioEncodeProps - Throws:
NullPointerException- if any required attribute was not provided
-