Class InputLossBehavior.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.InputLossBehavior.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InputLossBehavior>
- Enclosing interface:
InputLossBehavior
@Stability(Experimental)
public static final class InputLossBehavior.Builder
extends Object
implements software.amazon.jsii.Builder<InputLossBehavior>
A builder for
InputLossBehavior-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblackFrame(Duration blackFrame) Sets the value ofInputLossBehavior.getBlackFrame()build()Builds the configured instance.imageColor(String imageColor) Sets the value ofInputLossBehavior.getImageColor()imageSlate(FileLocation imageSlate) Sets the value ofInputLossBehavior.getImageSlate()imageType(InputLossImageType imageType) Sets the value ofInputLossBehavior.getImageType()repeatFrame(Duration repeatFrame) Sets the value ofInputLossBehavior.getRepeatFrame()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blackFrame
Sets the value ofInputLossBehavior.getBlackFrame()- Parameters:
blackFrame- How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).- Returns:
this
-
imageColor
Sets the value ofInputLossBehavior.getImageColor()- Parameters:
imageColor- The image color as 6 hex characters (RGB). Used when InputLossImageType.COLOR.- Returns:
this
-
imageSlate
Sets the value ofInputLossBehavior.getImageSlate()- Parameters:
imageSlate- The slate image to display. Used whenimageTypeis SLATE. Provide aFileLocationreferencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url).- Returns:
this
-
imageType
Sets the value ofInputLossBehavior.getImageType()- Parameters:
imageType- Whether to substitute a solid color or a slate image after the black period.- Returns:
this
-
repeatFrame
Sets the value ofInputLossBehavior.getRepeatFrame()- Parameters:
repeatFrame- How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InputLossBehavior>- Returns:
- a new instance of
InputLossBehavior - Throws:
NullPointerException- if any required attribute was not provided
-