Class CfnChannel.RtmpGroupSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.RtmpGroupSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.RtmpGroupSettingsProperty>
- Enclosing interface:
CfnChannel.RtmpGroupSettingsProperty
@Stability(Stable)
public static final class CfnChannel.RtmpGroupSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.RtmpGroupSettingsProperty>
A builder for
CfnChannel.RtmpGroupSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.RtmpGroupSettingsProperty.getAdMarkers()
authenticationScheme
(String authenticationScheme) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getAuthenticationScheme()
build()
Builds the configured instance.cacheFullBehavior
(String cacheFullBehavior) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getCacheFullBehavior()
cacheLength
(Number cacheLength) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getCacheLength()
captionData
(String captionData) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getCaptionData()
includeFillerNalUnits
(String includeFillerNalUnits) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getIncludeFillerNalUnits()
inputLossAction
(String inputLossAction) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getInputLossAction()
restartDelay
(Number restartDelay) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getRestartDelay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adMarkers
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder adMarkers(List<String> adMarkers) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getAdMarkers()
- Parameters:
adMarkers
- Choose the ad marker type for this output group. MediaLive will create a message based on the content of each SCTE-35 message, format it for that marker type, and insert it in the datastream.- Returns:
this
-
authenticationScheme
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder authenticationScheme(String authenticationScheme) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getAuthenticationScheme()
- Parameters:
authenticationScheme
- An authentication scheme to use when connecting with a CDN.- Returns:
this
-
cacheFullBehavior
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder cacheFullBehavior(String cacheFullBehavior) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getCacheFullBehavior()
- Parameters:
cacheFullBehavior
- Controls behavior when the content cache fills up. If a remote origin server stalls the RTMP connection and doesn't accept content fast enough, the media cache fills up. When the cache reaches the duration specified by cacheLength, the cache stops accepting new content. If set to disconnectImmediately, the RTMP output forces a disconnect. Clear the media cache, and reconnect after restartDelay seconds. If set to waitForServer, the RTMP output waits up to 5 minutes to allow the origin server to begin accepting data again.- Returns:
this
-
cacheLength
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder cacheLength(Number cacheLength) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getCacheLength()
- Parameters:
cacheLength
- The cache length, in seconds, that is used to calculate buffer size.- Returns:
this
-
includeFillerNalUnits
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder includeFillerNalUnits(String includeFillerNalUnits) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getIncludeFillerNalUnits()
- Parameters:
includeFillerNalUnits
- the value to be set.- Returns:
this
-
inputLossAction
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder inputLossAction(String inputLossAction) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getInputLossAction()
- Parameters:
inputLossAction
- Controls the behavior of this RTMP group if the input becomes unavailable. emitOutput: Emit a slate until the input returns. pauseOutput: Stop transmitting data until the input returns. This does not close the underlying RTMP connection.- Returns:
this
-
restartDelay
@Stability(Stable) public CfnChannel.RtmpGroupSettingsProperty.Builder restartDelay(Number restartDelay) Sets the value ofCfnChannel.RtmpGroupSettingsProperty.getRestartDelay()
- Parameters:
restartDelay
- If a streaming output fails, the number of seconds to wait until a restart is initiated. A value of 0 means never restart.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.RtmpGroupSettingsProperty>
- Returns:
- a new instance of
CfnChannel.RtmpGroupSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-