Class CfnOriginEndpoint.MssPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.MssPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.MssPackageProperty>
- Enclosing interface:
- CfnOriginEndpoint.MssPackageProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.MssPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.MssPackageProperty>
A builder for
CfnOriginEndpoint.MssPackageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getEncryption()
encryption
(CfnOriginEndpoint.MssEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getEncryption()
manifestWindowSeconds
(Number manifestWindowSeconds) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getManifestWindowSeconds()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getSegmentDurationSeconds()
streamSelection
(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getStreamSelection()
streamSelection
(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getStreamSelection()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
@Stability(Stable) public CfnOriginEndpoint.MssPackageProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.MssPackageProperty.Builder encryption(CfnOriginEndpoint.MssEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
manifestWindowSeconds
@Stability(Stable) public CfnOriginEndpoint.MssPackageProperty.Builder manifestWindowSeconds(Number manifestWindowSeconds) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getManifestWindowSeconds()
- Parameters:
manifestWindowSeconds
- Time window (in seconds) contained in each manifest.- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnOriginEndpoint.MssPackageProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.MssPackageProperty.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.MssPackageProperty.Builder streamSelection(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.MssPackageProperty.Builder streamSelection(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.MssPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.MssPackageProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.MssPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-