Class CfnOriginEndpoint.DashPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.DashPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.DashPackageProperty>
- Enclosing interface:
CfnOriginEndpoint.DashPackageProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.DashPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.DashPackageProperty>
A builder for
CfnOriginEndpoint.DashPackageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadsOnDeliveryRestrictions
(String adsOnDeliveryRestrictions) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getAdsOnDeliveryRestrictions()
adTriggers
(List<String> adTriggers) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getAdTriggers()
build()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getEncryption()
encryption
(CfnOriginEndpoint.DashEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getEncryption()
includeIframeOnlyStream
(Boolean includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getIncludeIframeOnlyStream()
includeIframeOnlyStream
(IResolvable includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getIncludeIframeOnlyStream()
manifestLayout
(String manifestLayout) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getManifestLayout()
manifestWindowSeconds
(Number manifestWindowSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getManifestWindowSeconds()
minBufferTimeSeconds
(Number minBufferTimeSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getMinBufferTimeSeconds()
minUpdatePeriodSeconds
(Number minUpdatePeriodSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getMinUpdatePeriodSeconds()
periodTriggers
(List<String> periodTriggers) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getPeriodTriggers()
Sets the value ofCfnOriginEndpoint.DashPackageProperty.getProfile()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getSegmentDurationSeconds()
segmentTemplateFormat
(String segmentTemplateFormat) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getSegmentTemplateFormat()
streamSelection
(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getStreamSelection()
streamSelection
(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getStreamSelection()
suggestedPresentationDelaySeconds
(Number suggestedPresentationDelaySeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getUtcTiming()
utcTimingUri
(String utcTimingUri) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getUtcTimingUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adsOnDeliveryRestrictions
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder adsOnDeliveryRestrictions(String adsOnDeliveryRestrictions) Sets the value ofCfnOriginEndpoint.DashPackageProperty.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.DashPackageProperty.Builder adTriggers(List<String> adTriggers) Sets the value ofCfnOriginEndpoint.DashPackageProperty.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.DashPackageProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder encryption(CfnOriginEndpoint.DashEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
includeIframeOnlyStream
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder includeIframeOnlyStream(Boolean includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getIncludeIframeOnlyStream()
- Parameters:
includeIframeOnlyStream
- This applies only to stream sets with a single video track. When true, the stream set includes an additional I-frame trick-play only stream, along with the other tracks. If false, this extra stream is not included.- Returns:
this
-
includeIframeOnlyStream
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder includeIframeOnlyStream(IResolvable includeIframeOnlyStream) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getIncludeIframeOnlyStream()
- Parameters:
includeIframeOnlyStream
- This applies only to stream sets with a single video track. When true, the stream set includes an additional I-frame trick-play only stream, along with the other tracks. If false, this extra stream is not included.- Returns:
this
-
manifestLayout
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder manifestLayout(String manifestLayout) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getManifestLayout()
- Parameters:
manifestLayout
- Determines the position of some tags in the manifest. Valid values:FULL
- Elements likeSegmentTemplate
andContentProtection
are included in eachRepresentation
.COMPACT
- Duplicate elements are combined and presented at theAdaptationSet
level.
- Returns:
this
-
manifestWindowSeconds
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder manifestWindowSeconds(Number manifestWindowSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getManifestWindowSeconds()
- Parameters:
manifestWindowSeconds
- Time window (in seconds) contained in each manifest.- Returns:
this
-
minBufferTimeSeconds
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder minBufferTimeSeconds(Number minBufferTimeSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getMinBufferTimeSeconds()
- Parameters:
minBufferTimeSeconds
- Minimum amount of content (measured in seconds) that a player must keep available in the buffer.- Returns:
this
-
minUpdatePeriodSeconds
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder minUpdatePeriodSeconds(Number minUpdatePeriodSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getMinUpdatePeriodSeconds()
- Parameters:
minUpdatePeriodSeconds
- Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest.- Returns:
this
-
periodTriggers
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder periodTriggers(List<String> periodTriggers) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getPeriodTriggers()
- Parameters:
periodTriggers
- Controls whether AWS Elemental MediaPackage produces single-period or multi-period DASH manifests. For more information about periods, see Multi-period DASH in AWS Elemental MediaPackage .Valid values:
ADS
- AWS Elemental MediaPackage will produce multi-period DASH manifests. Periods are created based on the SCTE-35 ad markers present in the input manifest.- No value - AWS Elemental MediaPackage will produce single-period DASH manifests. This is the default setting.
- Returns:
this
-
profile
Sets the value ofCfnOriginEndpoint.DashPackageProperty.getProfile()
- Parameters:
profile
- The DASH profile for the output. Valid values:NONE
- The output doesn't use a DASH profile.HBBTV_1_5
- The output is compliant with HbbTV v1.5.DVB_DASH_2014
- The output is compliant with DVB-DASH 2014.
- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getSegmentDurationSeconds()
- Parameters:
segmentDurationSeconds
- Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment duration.- Returns:
this
-
segmentTemplateFormat
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder segmentTemplateFormat(String segmentTemplateFormat) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getSegmentTemplateFormat()
- Parameters:
segmentTemplateFormat
- Determines the type of variable used in themedia
URL of theSegmentTemplate
tag in the manifest. Also specifies if segment timeline information is included inSegmentTimeline
orSegmentTemplate
.Valid values:
NUMBER_WITH_TIMELINE
- The$Number$
variable is used in themedia
URL. The value of this variable is the sequential number of the segment. A fullSegmentTimeline
object is presented in eachSegmentTemplate
.NUMBER_WITH_DURATION
- The$Number$
variable is used in themedia
URL and aduration
attribute is added to the segment template. TheSegmentTimeline
object is removed from the representation.TIME_WITH_TIMELINE
- The$Time$
variable is used in themedia
URL. The value of this variable is the timestamp of when the segment starts. A fullSegmentTimeline
object is presented in eachSegmentTemplate
.
- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder streamSelection(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder streamSelection(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
suggestedPresentationDelaySeconds
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder suggestedPresentationDelaySeconds(Number suggestedPresentationDelaySeconds) - Parameters:
suggestedPresentationDelaySeconds
- Amount of time (in seconds) that the player should be from the live point at the end of the manifest.- Returns:
this
-
utcTiming
Sets the value ofCfnOriginEndpoint.DashPackageProperty.getUtcTiming()
- Parameters:
utcTiming
- Determines the type of UTC timing included in the DASH Media Presentation Description (MPD).- Returns:
this
-
utcTimingUri
@Stability(Stable) public CfnOriginEndpoint.DashPackageProperty.Builder utcTimingUri(String utcTimingUri) Sets the value ofCfnOriginEndpoint.DashPackageProperty.getUtcTimingUri()
- Parameters:
utcTimingUri
- Specifies the value attribute of the UTC timing field when utcTiming is set to HTTP-ISO or HTTP-HEAD.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.DashPackageProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.DashPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-