Class CfnEncoderConfiguration.VideoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ivs.CfnEncoderConfiguration.VideoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEncoderConfiguration.VideoProperty>
- Enclosing interface:
CfnEncoderConfiguration.VideoProperty
@Stability(Stable)
public static final class CfnEncoderConfiguration.VideoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEncoderConfiguration.VideoProperty>
A builder for
CfnEncoderConfiguration.VideoProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEncoderConfiguration.VideoProperty.getBitrate()
build()
Builds the configured instance.Sets the value ofCfnEncoderConfiguration.VideoProperty.getFramerate()
Sets the value ofCfnEncoderConfiguration.VideoProperty.getHeight()
Sets the value ofCfnEncoderConfiguration.VideoProperty.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bitrate
Sets the value ofCfnEncoderConfiguration.VideoProperty.getBitrate()
- Parameters:
bitrate
- Bitrate for generated output, in bps. Default: 2500000.- Returns:
this
-
framerate
Sets the value ofCfnEncoderConfiguration.VideoProperty.getFramerate()
- Parameters:
framerate
- Video frame rate, in fps. Default: 30.- Returns:
this
-
height
Sets the value ofCfnEncoderConfiguration.VideoProperty.getHeight()
- Parameters:
height
- Video-resolution height. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.- Returns:
this
-
width
Sets the value ofCfnEncoderConfiguration.VideoProperty.getWidth()
- Parameters:
width
- Video-resolution width. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEncoderConfiguration.VideoProperty>
- Returns:
- a new instance of
CfnEncoderConfiguration.VideoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-