Class CfnOriginEndpoint.HlsPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.HlsPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.HlsPackageProperty>
- Enclosing interface:
CfnOriginEndpoint.HlsPackageProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.HlsPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.HlsPackageProperty>
A builder for
CfnOriginEndpoint.HlsPackageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdMarkers()
adsOnDeliveryRestrictions
(String adsOnDeliveryRestrictions) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdsOnDeliveryRestrictions()
adTriggers
(List<String> adTriggers) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdTriggers()
build()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getEncryption()
encryption
(CfnOriginEndpoint.HlsEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getEncryption()
includeDvbSubtitles
(Boolean includeDvbSubtitles) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeDvbSubtitles()
includeDvbSubtitles
(IResolvable includeDvbSubtitles) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeDvbSubtitles()
includeIframeOnlyStream
(Boolean includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeIframeOnlyStream()
includeIframeOnlyStream
(IResolvable includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeIframeOnlyStream()
playlistType
(String playlistType) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getPlaylistType()
playlistWindowSeconds
(Number playlistWindowSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getPlaylistWindowSeconds()
programDateTimeIntervalSeconds
(Number programDateTimeIntervalSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getProgramDateTimeIntervalSeconds()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getSegmentDurationSeconds()
streamSelection
(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getStreamSelection()
streamSelection
(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getStreamSelection()
useAudioRenditionGroup
(Boolean useAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getUseAudioRenditionGroup()
useAudioRenditionGroup
(IResolvable useAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getUseAudioRenditionGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adMarkers
Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdMarkers()
- Parameters:
adMarkers
- Controls how ad markers are included in the packaged endpoint. Valid values:NONE
- Omits all SCTE-35 ad markers from the output.PASSTHROUGH
- Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest.SCTE35_ENHANCED
- Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.
- Returns:
this
-
adsOnDeliveryRestrictions
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder adsOnDeliveryRestrictions(String adsOnDeliveryRestrictions) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdsOnDeliveryRestrictions()
- Parameters:
adsOnDeliveryRestrictions
- The flags on SCTE-35 segmentation descriptors that have to be present for AWS Elemental MediaPackage to insert ad markers in the output manifest. For information about SCTE-35 in AWS Elemental MediaPackage , see SCTE-35 Message Options in AWS Elemental MediaPackage .- Returns:
this
-
adTriggers
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder adTriggers(List<String> adTriggers) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getAdTriggers()
- Parameters:
adTriggers
- Specifies the SCTE-35 message types that AWS Elemental MediaPackage treats as ad markers in the output manifest. Valid values:BREAK
DISTRIBUTOR_ADVERTISEMENT
DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY
DISTRIBUTOR_PLACEMENT_OPPORTUNITY
PROVIDER_ADVERTISEMENT
PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY
PROVIDER_PLACEMENT_OPPORTUNITY
SPLICE_INSERT
- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder encryption(CfnOriginEndpoint.HlsEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
includeDvbSubtitles
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder includeDvbSubtitles(Boolean includeDvbSubtitles) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeDvbSubtitles()
- Parameters:
includeDvbSubtitles
- When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.- Returns:
this
-
includeDvbSubtitles
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder includeDvbSubtitles(IResolvable includeDvbSubtitles) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeDvbSubtitles()
- Parameters:
includeDvbSubtitles
- When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.- Returns:
this
-
includeIframeOnlyStream
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder includeIframeOnlyStream(Boolean includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeIframeOnlyStream()
- Parameters:
includeIframeOnlyStream
- Only applies to stream sets with a single video track. When true, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included.- Returns:
this
-
includeIframeOnlyStream
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder includeIframeOnlyStream(IResolvable includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getIncludeIframeOnlyStream()
- Parameters:
includeIframeOnlyStream
- Only applies to stream sets with a single video track. When true, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included.- Returns:
this
-
playlistType
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder playlistType(String playlistType) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getPlaylistType()
- Parameters:
playlistType
- When specified as eitherevent
orvod
, a correspondingEXT-X-PLAYLIST-TYPE
entry is included in the media playlist. Indicates if the playlist is live-to-VOD content.- Returns:
this
-
playlistWindowSeconds
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder playlistWindowSeconds(Number playlistWindowSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getPlaylistWindowSeconds()
- Parameters:
playlistWindowSeconds
- Time window (in seconds) contained in each parent manifest.- Returns:
this
-
programDateTimeIntervalSeconds
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder programDateTimeIntervalSeconds(Number programDateTimeIntervalSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getProgramDateTimeIntervalSeconds()
- Parameters:
programDateTimeIntervalSeconds
- InsertsEXT-X-PROGRAM-DATE-TIME
tags in the output manifest at the interval that you specify. Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.Omit this attribute or enter
0
to indicate that theEXT-X-PROGRAM-DATE-TIME
tags are not included in the manifest.- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getSegmentDurationSeconds()
- Parameters:
segmentDurationSeconds
- Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment duration.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder streamSelection(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder streamSelection(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
useAudioRenditionGroup
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder useAudioRenditionGroup(Boolean useAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getUseAudioRenditionGroup()
- Parameters:
useAudioRenditionGroup
- When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.- Returns:
this
-
useAudioRenditionGroup
@Stability(Stable) public CfnOriginEndpoint.HlsPackageProperty.Builder useAudioRenditionGroup(IResolvable useAudioRenditionGroup) Sets the value ofCfnOriginEndpoint.HlsPackageProperty.getUseAudioRenditionGroup()
- Parameters:
useAudioRenditionGroup
- When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.HlsPackageProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.HlsPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-