Class TsSegmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.TsSegmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TsSegmentProps>
- Enclosing interface:
TsSegmentProps
@Stability(Experimental)
public static final class TsSegmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<TsSegmentProps>
A builder for
TsSegmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSegmentPropsBase.getDuration()encryption(TsEncryption encryption) Sets the value ofTsSegmentProps.getEncryption()includeDvbSubtitles(Boolean includeDvbSubtitles) Sets the value ofTsSegmentProps.getIncludeDvbSubtitles()includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentPropsBase.getIncludeIframeOnlyStreams()Sets the value ofSegmentPropsBase.getName()scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofTsSegmentProps.getScteFilter()scteInSegments(ScteInSegments scteInSegments) Sets the value ofTsSegmentProps.getScteInSegments()useAudioRenditionGroup(Boolean useAudioRenditionGroup) Sets the value ofTsSegmentProps.getUseAudioRenditionGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
Sets the value ofTsSegmentProps.getEncryption()- Parameters:
encryption- Encryption configuration for the TS segment. UseTsEncryption.speke()to create the configuration.- Returns:
this
-
includeDvbSubtitles
@Stability(Experimental) public TsSegmentProps.Builder includeDvbSubtitles(Boolean includeDvbSubtitles) Sets the value ofTsSegmentProps.getIncludeDvbSubtitles()- Parameters:
includeDvbSubtitles- Whether to include DVB subtitles.- Returns:
this
-
scteFilter
@Stability(Experimental) public TsSegmentProps.Builder scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofTsSegmentProps.getScteFilter()- Parameters:
scteFilter- SCTE-35 message types to treat as ad markers.- Returns:
this
-
scteInSegments
@Stability(Experimental) public TsSegmentProps.Builder scteInSegments(ScteInSegments scteInSegments) Sets the value ofTsSegmentProps.getScteInSegments()- Parameters:
scteInSegments- Controls whether SCTE-35 messages are included in segment files.- Returns:
this
-
useAudioRenditionGroup
@Stability(Experimental) public TsSegmentProps.Builder useAudioRenditionGroup(Boolean useAudioRenditionGroup) Sets the value ofTsSegmentProps.getUseAudioRenditionGroup()- Parameters:
useAudioRenditionGroup- Whether to use audio rendition groups.- Returns:
this
-
duration
Sets the value ofSegmentPropsBase.getDuration()- Parameters:
duration- Duration of each segment.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Experimental) public TsSegmentProps.Builder includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentPropsBase.getIncludeIframeOnlyStreams()- Parameters:
includeIframeOnlyStreams- Whether to include I-frame-only streams.- Returns:
this
-
name
Sets the value ofSegmentPropsBase.getName()- Parameters:
name- Name of the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TsSegmentProps>- Returns:
- a new instance of
TsSegmentProps - Throws:
NullPointerException- if any required attribute was not provided
-