Class CfnChannel.VideoBlackFailoverSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.VideoBlackFailoverSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.VideoBlackFailoverSettingsProperty>
- Enclosing interface:
CfnChannel.VideoBlackFailoverSettingsProperty
@Stability(Stable)
public static final class CfnChannel.VideoBlackFailoverSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.VideoBlackFailoverSettingsProperty>
A builder for
CfnChannel.VideoBlackFailoverSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblackDetectThreshold
(Number blackDetectThreshold) Sets the value ofCfnChannel.VideoBlackFailoverSettingsProperty.getBlackDetectThreshold()
build()
Builds the configured instance.videoBlackThresholdMsec
(Number videoBlackThresholdMsec)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blackDetectThreshold
@Stability(Stable) public CfnChannel.VideoBlackFailoverSettingsProperty.Builder blackDetectThreshold(Number blackDetectThreshold) Sets the value ofCfnChannel.VideoBlackFailoverSettingsProperty.getBlackDetectThreshold()
- Parameters:
blackDetectThreshold
- A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the input to be considered black, every pixel in a frame must be below this threshold. The threshold is calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black). Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color depth: (10230.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: (2550.1=25.5), which means a pixel value of 25 or less is 'black'. The range is 0.0 to 1.0, with any number of decimal places.- Returns:
this
-
videoBlackThresholdMsec
@Stability(Stable) public CfnChannel.VideoBlackFailoverSettingsProperty.Builder videoBlackThresholdMsec(Number videoBlackThresholdMsec) - Parameters:
videoBlackThresholdMsec
- The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.VideoBlackFailoverSettingsProperty>
- Returns:
- a new instance of
CfnChannel.VideoBlackFailoverSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-