Class CfnChannel.GlobalConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.GlobalConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.GlobalConfigurationProperty>
- Enclosing interface:
CfnChannel.GlobalConfigurationProperty
@Stability(Stable)
public static final class CfnChannel.GlobalConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.GlobalConfigurationProperty>
A builder for
CfnChannel.GlobalConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.initialAudioGain
(Number initialAudioGain) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInitialAudioGain()
inputEndAction
(String inputEndAction) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputEndAction()
inputLossBehavior
(IResolvable inputLossBehavior) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputLossBehavior()
inputLossBehavior
(CfnChannel.InputLossBehaviorProperty inputLossBehavior) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputLossBehavior()
outputLockingMode
(String outputLockingMode) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingMode()
outputLockingSettings
(IResolvable outputLockingSettings) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingSettings()
outputLockingSettings
(CfnChannel.OutputLockingSettingsProperty outputLockingSettings) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingSettings()
outputTimingSource
(String outputTimingSource) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputTimingSource()
supportLowFramerateInputs
(String supportLowFramerateInputs) Sets the value ofCfnChannel.GlobalConfigurationProperty.getSupportLowFramerateInputs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
initialAudioGain
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder initialAudioGain(Number initialAudioGain) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInitialAudioGain()
- Parameters:
initialAudioGain
- The value to set the initial audio gain for the channel.- Returns:
this
-
inputEndAction
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder inputEndAction(String inputEndAction) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputEndAction()
- Parameters:
inputEndAction
- Indicates the action to take when the current input completes (for example, end-of-file). When switchAndLoopInputs is configured, MediaLive restarts at the beginning of the first input. When "none" is configured, MediaLive transcodes either black, a solid color, or a user-specified slate images per the "Input Loss Behavior" configuration until the next input switch occurs (which is controlled through the Channel Schedule API).- Returns:
this
-
inputLossBehavior
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder inputLossBehavior(IResolvable inputLossBehavior) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputLossBehavior()
- Parameters:
inputLossBehavior
- The settings for system actions when the input is lost.- Returns:
this
-
inputLossBehavior
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder inputLossBehavior(CfnChannel.InputLossBehaviorProperty inputLossBehavior) Sets the value ofCfnChannel.GlobalConfigurationProperty.getInputLossBehavior()
- Parameters:
inputLossBehavior
- The settings for system actions when the input is lost.- Returns:
this
-
outputLockingMode
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder outputLockingMode(String outputLockingMode) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingMode()
- Parameters:
outputLockingMode
- Indicates how MediaLive pipelines are synchronized. PIPELINELOCKING - MediaLive attempts to synchronize the output of each pipeline to the other. EPOCHLOCKING - MediaLive attempts to synchronize the output of each pipeline to the Unix epoch.- Returns:
this
-
outputLockingSettings
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder outputLockingSettings(IResolvable outputLockingSettings) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingSettings()
- Parameters:
outputLockingSettings
- the value to be set.- Returns:
this
-
outputLockingSettings
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder outputLockingSettings(CfnChannel.OutputLockingSettingsProperty outputLockingSettings) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputLockingSettings()
- Parameters:
outputLockingSettings
- the value to be set.- Returns:
this
-
outputTimingSource
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder outputTimingSource(String outputTimingSource) Sets the value ofCfnChannel.GlobalConfigurationProperty.getOutputTimingSource()
- Parameters:
outputTimingSource
- Indicates whether the rate of frames emitted by the Live encoder should be paced by its system clock (which optionally might be locked to another source through NTP) or should be locked to the clock of the source that is providing the input stream.- Returns:
this
-
supportLowFramerateInputs
@Stability(Stable) public CfnChannel.GlobalConfigurationProperty.Builder supportLowFramerateInputs(String supportLowFramerateInputs) Sets the value ofCfnChannel.GlobalConfigurationProperty.getSupportLowFramerateInputs()
- Parameters:
supportLowFramerateInputs
- Adjusts the video input buffer for streams with very low video frame rates. This is commonly set to enabled for music channels with less than one video frame per second.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.GlobalConfigurationProperty>
- Returns:
- a new instance of
CfnChannel.GlobalConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-