Class CfnChannel.InputLossBehaviorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.InputLossBehaviorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.InputLossBehaviorProperty>
- Enclosing interface:
CfnChannel.InputLossBehaviorProperty
@Stability(Stable)
public static final class CfnChannel.InputLossBehaviorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.InputLossBehaviorProperty>
A builder for
CfnChannel.InputLossBehaviorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblackFrameMsec(Number blackFrameMsec) Sets the value ofCfnChannel.InputLossBehaviorProperty.getBlackFrameMsec()build()Builds the configured instance.inputLossImageColor(String inputLossImageColor) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageColor()inputLossImageSlate(IResolvable inputLossImageSlate) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageSlate()inputLossImageSlate(CfnChannel.InputLocationProperty inputLossImageSlate) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageSlate()inputLossImageType(String inputLossImageType) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageType()repeatFrameMsec(Number repeatFrameMsec) Sets the value ofCfnChannel.InputLossBehaviorProperty.getRepeatFrameMsec()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blackFrameMsec
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder blackFrameMsec(Number blackFrameMsec) Sets the value ofCfnChannel.InputLossBehaviorProperty.getBlackFrameMsec()- Parameters:
blackFrameMsec- On input loss, the number of milliseconds to substitute black into the output before switching to the frame specified by inputLossImageType. A value x, where 0 <= x <= 1,000,000 and a value of 1,000,000, is interpreted as infinite.- Returns:
this
-
inputLossImageColor
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder inputLossImageColor(String inputLossImageColor) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageColor()- Parameters:
inputLossImageColor- When the input loss image type is "color," this field specifies the color to use. Value: 6 hex characters that represent the values of RGB.- Returns:
this
-
inputLossImageSlate
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder inputLossImageSlate(IResolvable inputLossImageSlate) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageSlate()- Parameters:
inputLossImageSlate- When the input loss image type is "slate," these fields specify the parameters for accessing the slate.- Returns:
this
-
inputLossImageSlate
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder inputLossImageSlate(CfnChannel.InputLocationProperty inputLossImageSlate) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageSlate()- Parameters:
inputLossImageSlate- When the input loss image type is "slate," these fields specify the parameters for accessing the slate.- Returns:
this
-
inputLossImageType
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder inputLossImageType(String inputLossImageType) Sets the value ofCfnChannel.InputLossBehaviorProperty.getInputLossImageType()- Parameters:
inputLossImageType- Indicates whether to substitute a solid color or a slate into the output after the input loss exceeds blackFrameMsec.- Returns:
this
-
repeatFrameMsec
@Stability(Stable) public CfnChannel.InputLossBehaviorProperty.Builder repeatFrameMsec(Number repeatFrameMsec) Sets the value ofCfnChannel.InputLossBehaviorProperty.getRepeatFrameMsec()- Parameters:
repeatFrameMsec- On input loss, the number of milliseconds to repeat the previous picture before substituting black into the output. A value x, where 0 <= x <= 1,000,000 and a value of 1,000,000, is interpreted as infinite.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.InputLossBehaviorProperty>- Returns:
- a new instance of
CfnChannel.InputLossBehaviorProperty - Throws:
NullPointerException- if any required attribute was not provided
-