Class CfnChannel.VideoDescriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.VideoDescriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.VideoDescriptionProperty>
- Enclosing interface:
CfnChannel.VideoDescriptionProperty
@Stability(Stable)
public static final class CfnChannel.VideoDescriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.VideoDescriptionProperty>
A builder for
CfnChannel.VideoDescriptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codecSettings
(IResolvable codecSettings) Sets the value ofCfnChannel.VideoDescriptionProperty.getCodecSettings()
codecSettings
(CfnChannel.VideoCodecSettingsProperty codecSettings) Sets the value ofCfnChannel.VideoDescriptionProperty.getCodecSettings()
Sets the value ofCfnChannel.VideoDescriptionProperty.getHeight()
Sets the value ofCfnChannel.VideoDescriptionProperty.getName()
respondToAfd
(String respondToAfd) Sets the value ofCfnChannel.VideoDescriptionProperty.getRespondToAfd()
scalingBehavior
(String scalingBehavior) Sets the value ofCfnChannel.VideoDescriptionProperty.getScalingBehavior()
Sets the value ofCfnChannel.VideoDescriptionProperty.getSharpness()
Sets the value ofCfnChannel.VideoDescriptionProperty.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codecSettings
@Stability(Stable) public CfnChannel.VideoDescriptionProperty.Builder codecSettings(IResolvable codecSettings) Sets the value ofCfnChannel.VideoDescriptionProperty.getCodecSettings()
- Parameters:
codecSettings
- The video codec settings.- Returns:
this
-
codecSettings
@Stability(Stable) public CfnChannel.VideoDescriptionProperty.Builder codecSettings(CfnChannel.VideoCodecSettingsProperty codecSettings) Sets the value ofCfnChannel.VideoDescriptionProperty.getCodecSettings()
- Parameters:
codecSettings
- The video codec settings.- Returns:
this
-
height
Sets the value ofCfnChannel.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 ofCfnChannel.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
-
respondToAfd
@Stability(Stable) public CfnChannel.VideoDescriptionProperty.Builder respondToAfd(String respondToAfd) Sets the value ofCfnChannel.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 CfnChannel.VideoDescriptionProperty.Builder scalingBehavior(String scalingBehavior) Sets the value ofCfnChannel.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
Sets the value ofCfnChannel.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 ofCfnChannel.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.VideoDescriptionProperty>
- Returns:
- a new instance of
CfnChannel.VideoDescriptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-