Class IsmSegmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.IsmSegmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IsmSegmentProps>
- Enclosing interface:
IsmSegmentProps
@Stability(Experimental)
public static final class IsmSegmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<IsmSegmentProps>
A builder for
IsmSegmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSegmentPropsBase.getDuration()encryption(IsmEncryption encryption) Sets the value ofIsmSegmentProps.getEncryption()includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofSegmentPropsBase.getIncludeIframeOnlyStreams()Sets the value ofSegmentPropsBase.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
Sets the value ofIsmSegmentProps.getEncryption()- Parameters:
encryption- Encryption configuration for the ISM segment. UseIsmEncryption.speke()to create the configuration.- Returns:
this
-
duration
Sets the value ofSegmentPropsBase.getDuration()- Parameters:
duration- Duration of each segment.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Experimental) public IsmSegmentProps.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<IsmSegmentProps>- Returns:
- a new instance of
IsmSegmentProps - Throws:
NullPointerException- if any required attribute was not provided
-