Class HlsOutputDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.HlsOutputDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HlsOutputDefinition>
- Enclosing interface:
HlsOutputDefinition
@Stability(Experimental)
public static final class HlsOutputDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<HlsOutputDefinition>
A builder for
HlsOutputDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encodes(List<? extends EncodeConfiguration> encodes) Sets the value ofOutputDefinition.getEncodes()h265PackagingType(H265PackagingType h265PackagingType) Sets the value ofHlsOutputDefinition.getH265PackagingType()hlsSettings(HlsSettings hlsSettings) Sets the value ofHlsOutputDefinition.getHlsSettings()nameModifier(String nameModifier) Sets the value ofHlsOutputDefinition.getNameModifier()outputName(String outputName) Sets the value ofOutputDefinition.getOutputName()segmentModifier(String segmentModifier) Sets the value ofHlsOutputDefinition.getSegmentModifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
h265PackagingType
@Stability(Experimental) public HlsOutputDefinition.Builder h265PackagingType(H265PackagingType h265PackagingType) Sets the value ofHlsOutputDefinition.getH265PackagingType()- Parameters:
h265PackagingType- For H.265 video, whether to package as HEV1 or HVC1.- Returns:
this
-
hlsSettings
Sets the value ofHlsOutputDefinition.getHlsSettings()- Parameters:
hlsSettings- The per-output HLS settings (standard, audio-only, fMP4, or frame-capture). Use theHlsSettingsfactory methods. Standard outputs additionally configure the M3U8 container viaHlsSettings.standard({ m3u8Settings }).- Returns:
this
-
nameModifier
Sets the value ofHlsOutputDefinition.getNameModifier()- Parameters:
nameModifier- A string concatenated to the end of the destination file name.- Returns:
this
-
segmentModifier
Sets the value ofHlsOutputDefinition.getSegmentModifier()- Parameters:
segmentModifier- A string concatenated to the end of segment file names.- Returns:
this
-
encodes
@Stability(Experimental) public HlsOutputDefinition.Builder encodes(List<? extends EncodeConfiguration> encodes) Sets the value ofOutputDefinition.getEncodes()- Parameters:
encodes- The encode configurations to wire to this output. This parameter is required.- Returns:
this
-
outputName
Sets the value ofOutputDefinition.getOutputName()- Parameters:
outputName- The name of this output. This parameter is required. Must be unique across all outputs in the channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HlsOutputDefinition>- Returns:
- a new instance of
HlsOutputDefinition - Throws:
NullPointerException- if any required attribute was not provided
-