Class CfnOriginEndpoint.CmafPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.CmafPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.CmafPackageProperty>
- Enclosing interface:
CfnOriginEndpoint.CmafPackageProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.CmafPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.CmafPackageProperty>
A builder for
CfnOriginEndpoint.CmafPackageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getEncryption()
encryption
(CfnOriginEndpoint.CmafEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getEncryption()
hlsManifests
(List<? extends Object> hlsManifests) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getHlsManifests()
hlsManifests
(IResolvable hlsManifests) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getHlsManifests()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getSegmentDurationSeconds()
segmentPrefix
(String segmentPrefix) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getSegmentPrefix()
streamSelection
(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getStreamSelection()
streamSelection
(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getStreamSelection()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryption
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
encryption
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder encryption(CfnOriginEndpoint.CmafEncryptionProperty encryption) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
hlsManifests
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder hlsManifests(IResolvable hlsManifests) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getHlsManifests()
- Parameters:
hlsManifests
- A list of HLS manifest configurations that are available from this endpoint.- Returns:
this
-
hlsManifests
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder hlsManifests(List<? extends Object> hlsManifests) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getHlsManifests()
- Parameters:
hlsManifests
- A list of HLS manifest configurations that are available from this endpoint.- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getSegmentDurationSeconds()
- Parameters:
segmentDurationSeconds
- Duration (in seconds) of each segment. Actual segments are rounded to the nearest multiple of the source segment duration.- Returns:
this
-
segmentPrefix
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder segmentPrefix(String segmentPrefix) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getSegmentPrefix()
- Parameters:
segmentPrefix
- An optional custom string that is prepended to the name of each segment. If not specified, the segment prefix defaults to the ChannelId.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder streamSelection(IResolvable streamSelection) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.getStreamSelection()
- Parameters:
streamSelection
- Limitations for outputs from the endpoint, based on the video bitrate.- Returns:
this
-
streamSelection
@Stability(Stable) public CfnOriginEndpoint.CmafPackageProperty.Builder streamSelection(CfnOriginEndpoint.StreamSelectionProperty streamSelection) Sets the value ofCfnOriginEndpoint.CmafPackageProperty.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.CmafPackageProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.CmafPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-