Class CfnChannel.HlsInputSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.HlsInputSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.HlsInputSettingsProperty>
- Enclosing interface:
CfnChannel.HlsInputSettingsProperty
@Stability(Stable)
public static final class CfnChannel.HlsInputSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.HlsInputSettingsProperty>
A builder for
CfnChannel.HlsInputSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.HlsInputSettingsProperty.getBandwidth()
bufferSegments
(Number bufferSegments) Sets the value ofCfnChannel.HlsInputSettingsProperty.getBufferSegments()
build()
Builds the configured instance.Sets the value ofCfnChannel.HlsInputSettingsProperty.getRetries()
retryInterval
(Number retryInterval) Sets the value ofCfnChannel.HlsInputSettingsProperty.getRetryInterval()
scte35Source
(String scte35Source) Sets the value ofCfnChannel.HlsInputSettingsProperty.getScte35Source()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bandwidth
Sets the value ofCfnChannel.HlsInputSettingsProperty.getBandwidth()
- Parameters:
bandwidth
- When specified, the HLS stream with the m3u8 bandwidth that most closely matches this value is chosen. Otherwise, the highest bandwidth stream in the m3u8 is chosen. The bitrate is specified in bits per second, as in an HLS manifest.- Returns:
this
-
bufferSegments
@Stability(Stable) public CfnChannel.HlsInputSettingsProperty.Builder bufferSegments(Number bufferSegments) Sets the value ofCfnChannel.HlsInputSettingsProperty.getBufferSegments()
- Parameters:
bufferSegments
- When specified, reading of the HLS input begins this many buffer segments from the end (most recently written segment). When not specified, the HLS input begins with the first segment specified in the m3u8.- Returns:
this
-
retries
Sets the value ofCfnChannel.HlsInputSettingsProperty.getRetries()
- Parameters:
retries
- The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable.- Returns:
this
-
retryInterval
@Stability(Stable) public CfnChannel.HlsInputSettingsProperty.Builder retryInterval(Number retryInterval) Sets the value ofCfnChannel.HlsInputSettingsProperty.getRetryInterval()
- Parameters:
retryInterval
- The number of seconds between retries when an attempt to read a manifest or segment fails.- Returns:
this
-
scte35Source
@Stability(Stable) public CfnChannel.HlsInputSettingsProperty.Builder scte35Source(String scte35Source) Sets the value ofCfnChannel.HlsInputSettingsProperty.getScte35Source()
- Parameters:
scte35Source
- Identifies the source for the SCTE-35 messages that MediaLive will ingest. Messages can be ingested from the content segments (in the stream) or from tags in the playlist (the HLS manifest). MediaLive ignores SCTE-35 information in the source that is not selected.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.HlsInputSettingsProperty>
- Returns:
- a new instance of
CfnChannel.HlsInputSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-