Class MediaPackageV2OutputDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.MediaPackageV2OutputDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MediaPackageV2OutputDefinition>
- Enclosing interface:
MediaPackageV2OutputDefinition
@Stability(Experimental)
public static final class MediaPackageV2OutputDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<MediaPackageV2OutputDefinition>
A builder for
MediaPackageV2OutputDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioGroupId(String audioGroupId) Sets the value ofMediaPackageV2OutputDefinition.getAudioGroupId()audioRenditionSets(String audioRenditionSets) Sets the value ofMediaPackageV2OutputDefinition.getAudioRenditionSets()build()Builds the configured instance.captions(List<? extends EncodeConfiguration> captions) Sets the value ofMediaPackageV2OutputDefinition.getCaptions()encode(EncodeConfiguration encode) Sets the value ofMediaPackageV2OutputDefinition.getEncode()hlsAutoSelect(MediaPackageV2HlsSetting hlsAutoSelect) Sets the value ofMediaPackageV2OutputDefinition.getHlsAutoSelect()hlsDefault(MediaPackageV2HlsSetting hlsDefault) Sets the value ofMediaPackageV2OutputDefinition.getHlsDefault()outputName(String outputName) Sets the value ofMediaPackageV2OutputDefinition.getOutputName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encode
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder encode(EncodeConfiguration encode) Sets the value ofMediaPackageV2OutputDefinition.getEncode()- Parameters:
encode- The primary encode for this output — one video or one audio track. This parameter is required.- Returns:
this
-
outputName
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder outputName(String outputName) Sets the value ofMediaPackageV2OutputDefinition.getOutputName()- Parameters:
outputName- The name of this output. This parameter is required. Must be unique across all outputs in the channel.- Returns:
this
-
audioGroupId
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder audioGroupId(String audioGroupId) Sets the value ofMediaPackageV2OutputDefinition.getAudioGroupId()- Parameters:
audioGroupId- The audio group ID for audio outputs.- Returns:
this
-
audioRenditionSets
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder audioRenditionSets(String audioRenditionSets) Sets the value ofMediaPackageV2OutputDefinition.getAudioRenditionSets()- Parameters:
audioRenditionSets- The audio rendition sets for video outputs.- Returns:
this
-
captions
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder captions(List<? extends EncodeConfiguration> captions) Sets the value ofMediaPackageV2OutputDefinition.getCaptions()- Parameters:
captions- Caption encodes that ride alongside the primary encode. Only in-band caption types are allowed (burn-in, embedded) — out-of-band captions must go in their own output.- Returns:
this
-
hlsAutoSelect
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder hlsAutoSelect(MediaPackageV2HlsSetting hlsAutoSelect) Sets the value ofMediaPackageV2OutputDefinition.getHlsAutoSelect()- Parameters:
hlsAutoSelect- For audio outputs, whether MediaPackage sets this rendition as the auto-select rendition in the HLS manifest.- Returns:
this
-
hlsDefault
@Stability(Experimental) public MediaPackageV2OutputDefinition.Builder hlsDefault(MediaPackageV2HlsSetting hlsDefault) Sets the value ofMediaPackageV2OutputDefinition.getHlsDefault()- Parameters:
hlsDefault- For audio outputs, whether MediaPackage sets this rendition as the default rendition in the HLS manifest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MediaPackageV2OutputDefinition>- Returns:
- a new instance of
MediaPackageV2OutputDefinition - Throws:
NullPointerException- if any required attribute was not provided
-