Class CfnOriginEndpoint.SegmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.SegmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.SegmentProperty>
- Enclosing interface:
CfnOriginEndpoint.SegmentProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.SegmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.SegmentProperty>
A builder for
CfnOriginEndpoint.SegmentProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnOriginEndpoint.SegmentProperty.getEncryption()
encryption
(CfnOriginEndpoint.EncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.SegmentProperty.getEncryption()
includeIframeOnlyStreams
(Boolean includeIframeOnlyStreams) Sets the value ofCfnOriginEndpoint.SegmentProperty.getIncludeIframeOnlyStreams()
includeIframeOnlyStreams
(IResolvable includeIframeOnlyStreams) Sets the value ofCfnOriginEndpoint.SegmentProperty.getIncludeIframeOnlyStreams()
scte
(IResolvable scte) Sets the value ofCfnOriginEndpoint.SegmentProperty.getScte()
Sets the value ofCfnOriginEndpoint.SegmentProperty.getScte()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.SegmentProperty.getSegmentDurationSeconds()
segmentName
(String segmentName) Sets the value ofCfnOriginEndpoint.SegmentProperty.getSegmentName()
tsIncludeDvbSubtitles
(Boolean tsIncludeDvbSubtitles) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsIncludeDvbSubtitles()
tsIncludeDvbSubtitles
(IResolvable tsIncludeDvbSubtitles) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsIncludeDvbSubtitles()
tsUseAudioRenditionGroup
(Boolean tsUseAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsUseAudioRenditionGroup()
tsUseAudioRenditionGroup
(IResolvable tsUseAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsUseAudioRenditionGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnOriginEndpoint.SegmentProperty.getEncryption()
- Parameters:
encryption
- Whether to use encryption for the segment.- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder encryption(CfnOriginEndpoint.EncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.SegmentProperty.getEncryption()
- Parameters:
encryption
- Whether to use encryption for the segment.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder includeIframeOnlyStreams(Boolean includeIframeOnlyStreams) Sets the value ofCfnOriginEndpoint.SegmentProperty.getIncludeIframeOnlyStreams()
- Parameters:
includeIframeOnlyStreams
- Whether the segment includes I-frame-only streams.- Returns:
this
-
includeIframeOnlyStreams
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder includeIframeOnlyStreams(IResolvable includeIframeOnlyStreams) Sets the value ofCfnOriginEndpoint.SegmentProperty.getIncludeIframeOnlyStreams()
- Parameters:
includeIframeOnlyStreams
- Whether the segment includes I-frame-only streams.- Returns:
this
-
scte
Sets the value ofCfnOriginEndpoint.SegmentProperty.getScte()
- Parameters:
scte
- The SCTE-35 configuration associated with the segment.- Returns:
this
-
scte
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder scte(CfnOriginEndpoint.ScteProperty scte) Sets the value ofCfnOriginEndpoint.SegmentProperty.getScte()
- Parameters:
scte
- The SCTE-35 configuration associated with the segment.- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.SegmentProperty.getSegmentDurationSeconds()
- Parameters:
segmentDurationSeconds
- The duration of the segment, in seconds.- Returns:
this
-
segmentName
Sets the value ofCfnOriginEndpoint.SegmentProperty.getSegmentName()
- Parameters:
segmentName
- The name of the segment associated with the origin endpoint.- Returns:
this
-
tsIncludeDvbSubtitles
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder tsIncludeDvbSubtitles(Boolean tsIncludeDvbSubtitles) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsIncludeDvbSubtitles()
- Parameters:
tsIncludeDvbSubtitles
- Whether the segment includes DVB subtitles.- Returns:
this
-
tsIncludeDvbSubtitles
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder tsIncludeDvbSubtitles(IResolvable tsIncludeDvbSubtitles) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsIncludeDvbSubtitles()
- Parameters:
tsIncludeDvbSubtitles
- Whether the segment includes DVB subtitles.- Returns:
this
-
tsUseAudioRenditionGroup
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder tsUseAudioRenditionGroup(Boolean tsUseAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsUseAudioRenditionGroup()
- Parameters:
tsUseAudioRenditionGroup
- Whether the segment is an audio rendition group.- Returns:
this
-
tsUseAudioRenditionGroup
@Stability(Stable) public CfnOriginEndpoint.SegmentProperty.Builder tsUseAudioRenditionGroup(IResolvable tsUseAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.SegmentProperty.getTsUseAudioRenditionGroup()
- Parameters:
tsUseAudioRenditionGroup
- Whether the segment is an audio rendition group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.SegmentProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.SegmentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-