Class CfnPackagingConfiguration.HlsPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackagingConfiguration.HlsPackageProperty>
- Enclosing interface:
CfnPackagingConfiguration.HlsPackageProperty
@Stability(Stable)
public static final class CfnPackagingConfiguration.HlsPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackagingConfiguration.HlsPackageProperty>
A builder for
CfnPackagingConfiguration.HlsPackageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryption
(IResolvable encryption) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getEncryption()
Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getEncryption()
hlsManifests
(List<? extends Object> hlsManifests) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getHlsManifests()
hlsManifests
(IResolvable hlsManifests) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getHlsManifests()
includeDvbSubtitles
(Boolean includeDvbSubtitles) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getIncludeDvbSubtitles()
includeDvbSubtitles
(IResolvable includeDvbSubtitles) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getIncludeDvbSubtitles()
segmentDurationSeconds
(Number segmentDurationSeconds) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getSegmentDurationSeconds()
useAudioRenditionGroup
(Boolean useAudioRenditionGroup) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getUseAudioRenditionGroup()
useAudioRenditionGroup
(IResolvable useAudioRenditionGroup) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getUseAudioRenditionGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hlsManifests
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder hlsManifests(IResolvable hlsManifests) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getHlsManifests()
- Parameters:
hlsManifests
- A list of HLS manifest configurations that are available from this endpoint. This parameter is required.- Returns:
this
-
hlsManifests
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder hlsManifests(List<? extends Object> hlsManifests) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getHlsManifests()
- Parameters:
hlsManifests
- A list of HLS manifest configurations that are available from this endpoint. This parameter is required.- Returns:
this
-
encryption
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder encryption(IResolvable encryption) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
encryption
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder encryption(CfnPackagingConfiguration.HlsEncryptionProperty encryption) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getEncryption()
- Parameters:
encryption
- Parameters for encrypting content.- Returns:
this
-
includeDvbSubtitles
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder includeDvbSubtitles(Boolean includeDvbSubtitles) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getIncludeDvbSubtitles()
- Parameters:
includeDvbSubtitles
- When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.- Returns:
this
-
includeDvbSubtitles
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder includeDvbSubtitles(IResolvable includeDvbSubtitles) Sets the value ofCfnPackagingConfiguration.HlsPackageProperty.getIncludeDvbSubtitles()
- Parameters:
includeDvbSubtitles
- When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.- Returns:
this
-
segmentDurationSeconds
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder segmentDurationSeconds(Number segmentDurationSeconds) Sets the value ofCfnPackagingConfiguration.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
-
useAudioRenditionGroup
@Stability(Stable) public CfnPackagingConfiguration.HlsPackageProperty.Builder useAudioRenditionGroup(Boolean useAudioRenditionGroup) Sets the value ofCfnPackagingConfiguration.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 CfnPackagingConfiguration.HlsPackageProperty.Builder useAudioRenditionGroup(IResolvable useAudioRenditionGroup) Sets the value ofCfnPackagingConfiguration.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<CfnPackagingConfiguration.HlsPackageProperty>
- Returns:
- a new instance of
CfnPackagingConfiguration.HlsPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-