Class VideoBlackFailoverProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.VideoBlackFailoverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VideoBlackFailoverProps>
- Enclosing interface:
VideoBlackFailoverProps
@Stability(Experimental)
public static final class VideoBlackFailoverProps.Builder
extends Object
implements software.amazon.jsii.Builder<VideoBlackFailoverProps>
A builder for
VideoBlackFailoverProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblackDetectThreshold(Number blackDetectThreshold) Sets the value ofVideoBlackFailoverProps.getBlackDetectThreshold()build()Builds the configured instance.Sets the value ofVideoBlackFailoverProps.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blackDetectThreshold
@Stability(Experimental) public VideoBlackFailoverProps.Builder blackDetectThreshold(Number blackDetectThreshold) Sets the value ofVideoBlackFailoverProps.getBlackDetectThreshold()- Parameters:
blackDetectThreshold- The fraction of white (0.0–1.0) below which a pixel is considered black. Every pixel in a frame must be below this threshold for the frame to count as black. For example, 0.1 means 10% white (90% black).- Returns:
this
-
threshold
Sets the value ofVideoBlackFailoverProps.getThreshold()- Parameters:
threshold- How long the content must be black before failover occurs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VideoBlackFailoverProps>- Returns:
- a new instance of
VideoBlackFailoverProps - Throws:
NullPointerException- if any required attribute was not provided
-