Class CmafSegmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.CmafSegmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CmafSegmentProps>
- Enclosing interface:
CmafSegmentProps
@Stability(Experimental)
public static final class CmafSegmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CmafSegmentProps>
A builder for
CmafSegmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSegmentPropsBase.getDuration()encryption(CmafEncryption encryption) Sets the value ofCmafSegmentProps.getEncryption()includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentPropsBase.getIncludeIframeOnlyStreams()Sets the value ofSegmentPropsBase.getName()scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofCmafSegmentProps.getScteFilter()scteInSegments(ScteInSegments scteInSegments) Sets the value ofCmafSegmentProps.getScteInSegments()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
Sets the value ofCmafSegmentProps.getEncryption()- Parameters:
encryption- Encryption configuration for the CMAF segment. UseCmafEncryption.speke()to create the configuration.- Returns:
this
-
scteFilter
@Stability(Experimental) public CmafSegmentProps.Builder scteFilter(List<? extends ScteMessageType> scteFilter) Sets the value ofCmafSegmentProps.getScteFilter()- Parameters:
scteFilter- SCTE-35 message types to treat as ad markers.- Returns:
this
-
scteInSegments
@Stability(Experimental) public CmafSegmentProps.Builder scteInSegments(ScteInSegments scteInSegments) Sets the value ofCmafSegmentProps.getScteInSegments()- Parameters:
scteInSegments- Controls whether SCTE-35 messages are included in segment files.- Returns:
this
-
duration
Sets the value ofSegmentPropsBase.getDuration()- Parameters:
duration- Duration of each segment.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Experimental) public CmafSegmentProps.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<CmafSegmentProps>- Returns:
- a new instance of
CmafSegmentProps - Throws:
NullPointerException- if any required attribute was not provided
-