Class CfnChannelPropsMixin.VideoDescriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.medialive.CfnChannelPropsMixin.VideoDescriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelPropsMixin.VideoDescriptionProperty>
- Enclosing interface:
CfnChannelPropsMixin.VideoDescriptionProperty
@Stability(Stable)
public static final class CfnChannelPropsMixin.VideoDescriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelPropsMixin.VideoDescriptionProperty>
A builder for
CfnChannelPropsMixin.VideoDescriptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getBorder()build()Builds the configured instance.codecSettings(CfnChannelPropsMixin.VideoCodecSettingsProperty codecSettings) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCodecSettings()codecSettings(IResolvable codecSettings) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCodecSettings()cropRectangle(CfnChannelPropsMixin.VideoPositionRectangleProperty cropRectangle) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCropRectangle()cropRectangle(IResolvable cropRectangle) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCropRectangle()Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getHeight()Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getName()outputPositionRectangle(CfnChannelPropsMixin.VideoPositionRectangleProperty outputPositionRectangle) outputPositionRectangle(IResolvable outputPositionRectangle) respondToAfd(String respondToAfd) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getRespondToAfd()scalingBehavior(String scalingBehavior) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getScalingBehavior()Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getSharpness()Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
border
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder border(Number border) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getBorder()- Parameters:
border- the value to be set.- Returns:
this
-
codecSettings
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder codecSettings(IResolvable codecSettings) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCodecSettings()- Parameters:
codecSettings- The video codec settings.- Returns:
this
-
codecSettings
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder codecSettings(CfnChannelPropsMixin.VideoCodecSettingsProperty codecSettings) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCodecSettings()- Parameters:
codecSettings- The video codec settings.- Returns:
this
-
cropRectangle
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder cropRectangle(IResolvable cropRectangle) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCropRectangle()- Parameters:
cropRectangle- the value to be set.- Returns:
this
-
cropRectangle
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder cropRectangle(CfnChannelPropsMixin.VideoPositionRectangleProperty cropRectangle) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getCropRectangle()- Parameters:
cropRectangle- the value to be set.- Returns:
this
-
height
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder height(Number height) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getHeight()- Parameters:
height- The output video height, in pixels. This must be an even number. For most codecs, you can keep this field and width blank in order to use the height and width (resolution) from the source. Note that we don't recommend keeping the field blank. For the Frame Capture codec, height and width are required.- Returns:
this
-
name
Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getName()- Parameters:
name- The name of this VideoDescription. Outputs use this name to uniquely identify this description. Description names should be unique within this channel.- Returns:
this
-
outputPositionRectangle
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder outputPositionRectangle(IResolvable outputPositionRectangle) - Parameters:
outputPositionRectangle- the value to be set.- Returns:
this
-
outputPositionRectangle
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder outputPositionRectangle(CfnChannelPropsMixin.VideoPositionRectangleProperty outputPositionRectangle) - Parameters:
outputPositionRectangle- the value to be set.- Returns:
this
-
respondToAfd
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder respondToAfd(String respondToAfd) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getRespondToAfd()- Parameters:
respondToAfd- Indicates how to respond to the AFD values in the input stream. RESPOND causes input video to be clipped, depending on the AFD value, input display aspect ratio, and output display aspect ratio, and (except for the FRAMECAPTURE codec) includes the values in the output. PASSTHROUGH (does not apply to FRAMECAPTURE codec) ignores the AFD values and includes the values in the output, so input video is not clipped. NONE ignores the AFD values and does not include the values through to the output, so input video is not clipped.- Returns:
this
-
scalingBehavior
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder scalingBehavior(String scalingBehavior) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getScalingBehavior()- Parameters:
scalingBehavior- STRETCHTOOUTPUT configures the output position to stretch the video to the specified output resolution (height and width). This option overrides any position value. DEFAULT might insert black boxes (pillar boxes or letter boxes) around the video to provide the specified output resolution.- Returns:
this
-
sharpness
@Stability(Stable) public CfnChannelPropsMixin.VideoDescriptionProperty.Builder sharpness(Number sharpness) Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getSharpness()- Parameters:
sharpness- Changes the strength of the anti-alias filter used for scaling. 0 is the softest setting, and 100 is the sharpest. We recommend a setting of 50 for most content.- Returns:
this
-
width
Sets the value ofCfnChannelPropsMixin.VideoDescriptionProperty.getWidth()- Parameters:
width- The output video width, in pixels. It must be an even number. For most codecs, you can keep this field and height blank in order to use the height and width (resolution) from the source. Note that we don't recommend keeping the field blank. For the Frame Capture codec, height and width are required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelPropsMixin.VideoDescriptionProperty>- Returns:
- a new instance of
CfnChannelPropsMixin.VideoDescriptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-