Class VideoEncodeProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.VideoEncodeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VideoEncodeProps>
- Enclosing interface:
VideoEncodeProps
@Stability(Experimental)
public static final class VideoEncodeProps.Builder
extends Object
implements software.amazon.jsii.Builder<VideoEncodeProps>
A builder for
VideoEncodeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codec(VideoCodecSettings codec) Sets the value ofVideoEncodeProps.getCodec()Sets the value ofVideoEncodeProps.getHeight()Sets the value ofVideoEncodeProps.getName()respondToAfd(RespondToAfd respondToAfd) Sets the value ofVideoEncodeProps.getRespondToAfd()scalingBehavior(ScalingBehavior scalingBehavior) Sets the value ofVideoEncodeProps.getScalingBehavior()Sets the value ofVideoEncodeProps.getSharpness()Sets the value ofVideoEncodeProps.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codec
Sets the value ofVideoEncodeProps.getCodec()- Parameters:
codec- The codec for the video encode. This parameter is required. Choose the codec explicitly (e.g.VideoCodecSettings.h264(...))- Returns:
this
-
height
Sets the value ofVideoEncodeProps.getHeight()- Parameters:
height- The height of the output video in pixels. This parameter is required. Must be an even number.- Returns:
this
-
name
Sets the value ofVideoEncodeProps.getName()- Parameters:
name- A unique name for this video encode. This parameter is required.- Returns:
this
-
width
Sets the value ofVideoEncodeProps.getWidth()- Parameters:
width- The width of the output video in pixels. This parameter is required. Must be an even number.- Returns:
this
-
respondToAfd
Sets the value ofVideoEncodeProps.getRespondToAfd()- Parameters:
respondToAfd- How to respond to AFD values in the input stream.- Returns:
this
-
scalingBehavior
@Stability(Experimental) public VideoEncodeProps.Builder scalingBehavior(ScalingBehavior scalingBehavior) Sets the value ofVideoEncodeProps.getScalingBehavior()- Parameters:
scalingBehavior- The video scaling behavior.- Returns:
this
-
sharpness
Sets the value ofVideoEncodeProps.getSharpness()- Parameters:
sharpness- The anti-alias filter strength (0-100). 0 is softest, 100 is sharpest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VideoEncodeProps>- Returns:
- a new instance of
VideoEncodeProps - Throws:
NullPointerException- if any required attribute was not provided
-