Class SegmentConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.SegmentConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SegmentConfiguration>
- Enclosing interface:
SegmentConfiguration
@Stability(Experimental)
public static final class SegmentConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<SegmentConfiguration>
A builder for
SegmentConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerType(ContainerType containerType) Sets the value ofSegmentConfiguration.getContainerType()encryption(EncryptionConfiguration encryption) Sets the value ofSegmentConfiguration.getEncryption()includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentConfiguration.getIncludeIframeOnlyStreams()scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofSegmentConfiguration.getScteFilter()scteInSegments(ScteInSegments scteInSegments) Sets the value ofSegmentConfiguration.getScteInSegments()segmentDuration(Duration segmentDuration) Sets the value ofSegmentConfiguration.getSegmentDuration()segmentName(String segmentName) Sets the value ofSegmentConfiguration.getSegmentName()tsIncludeDvbSubtitles(Boolean tsIncludeDvbSubtitles) Sets the value ofSegmentConfiguration.getTsIncludeDvbSubtitles()tsUseAudioRenditionGroup(Boolean tsUseAudioRenditionGroup) Sets the value ofSegmentConfiguration.getTsUseAudioRenditionGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerType
@Stability(Experimental) public SegmentConfiguration.Builder containerType(ContainerType containerType) Sets the value ofSegmentConfiguration.getContainerType()- Parameters:
containerType- The container type for this segment (TS or CMAF). This parameter is required.- Returns:
this
-
encryption
@Stability(Experimental) public SegmentConfiguration.Builder encryption(EncryptionConfiguration encryption) Sets the value ofSegmentConfiguration.getEncryption()- Parameters:
encryption- Encryption configuration for the segment.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Experimental) public SegmentConfiguration.Builder includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentConfiguration.getIncludeIframeOnlyStreams()- Parameters:
includeIframeOnlyStreams- Whether the segment includes I-frame-only streams.- Returns:
this
-
scteFilter
@Stability(Experimental) public SegmentConfiguration.Builder scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofSegmentConfiguration.getScteFilter()- Parameters:
scteFilter- The SCTE-35 configuration associated with the segment. The SCTE-35 message types that you want to be treated as ad markers in the output.- Returns:
this
-
scteInSegments
@Stability(Experimental) public SegmentConfiguration.Builder scteInSegments(ScteInSegments scteInSegments) Sets the value ofSegmentConfiguration.getScteInSegments()- Parameters:
scteInSegments- Controls whether SCTE-35 messages are included in segment files.- Returns:
this
-
segmentDuration
@Stability(Experimental) public SegmentConfiguration.Builder segmentDuration(Duration segmentDuration) Sets the value ofSegmentConfiguration.getSegmentDuration()- Parameters:
segmentDuration- The duration of the segments.- Returns:
this
-
segmentName
Sets the value ofSegmentConfiguration.getSegmentName()- Parameters:
segmentName- The name of the segment associated with the origin endpoint.- Returns:
this
-
tsIncludeDvbSubtitles
@Stability(Experimental) public SegmentConfiguration.Builder tsIncludeDvbSubtitles(Boolean tsIncludeDvbSubtitles) Sets the value ofSegmentConfiguration.getTsIncludeDvbSubtitles()- Parameters:
tsIncludeDvbSubtitles- Whether the segment includes DVB subtitles.- Returns:
this
-
tsUseAudioRenditionGroup
@Stability(Experimental) public SegmentConfiguration.Builder tsUseAudioRenditionGroup(Boolean tsUseAudioRenditionGroup) Sets the value ofSegmentConfiguration.getTsUseAudioRenditionGroup()- Parameters:
tsUseAudioRenditionGroup- Whether the segment is an audio rendition group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SegmentConfiguration>- Returns:
- a new instance of
SegmentConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-