Class CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ivs.CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordingConfiguration.ThumbnailConfigurationProperty>
- Enclosing interface:
CfnRecordingConfiguration.ThumbnailConfigurationProperty
@Stability(Stable)
public static final class CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecordingConfiguration.ThumbnailConfigurationProperty>
A builder for
CfnRecordingConfiguration.ThumbnailConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.recordingMode(String recordingMode) resolution(String resolution) Sets the value ofCfnRecordingConfiguration.ThumbnailConfigurationProperty.getResolution()Sets the value ofCfnRecordingConfiguration.ThumbnailConfigurationProperty.getStorage()targetIntervalSeconds(Number targetIntervalSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
recordingMode
@Stability(Stable) public CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder recordingMode(String recordingMode) - Parameters:
recordingMode- Thumbnail recording mode. Valid values:.DISABLED: Use DISABLED to disable the generation of thumbnails for recorded video.INTERVAL: Use INTERVAL to enable the generation of thumbnails for recorded video at a time interval controlled by the TargetIntervalSeconds property.
Default :
INTERVAL- Returns:
this
-
resolution
@Stability(Stable) public CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder resolution(String resolution) Sets the value ofCfnRecordingConfiguration.ThumbnailConfigurationProperty.getResolution()- Parameters:
resolution- The desired resolution of recorded thumbnails for a stream. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3 .- Returns:
this
-
storage
@Stability(Stable) public CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder storage(List<String> storage) Sets the value ofCfnRecordingConfiguration.ThumbnailConfigurationProperty.getStorage()- Parameters:
storage- The format in which thumbnails are recorded for a stream.SEQUENTIALrecords all generated thumbnails in a serial manner, to the media/thumbnails directory.LATESTsaves the latest thumbnail in media/thumbnails/latest/thumb.jpg and overwrites it at the interval specified bytargetIntervalSeconds. You can enable bothSEQUENTIALandLATEST. Default:SEQUENTIAL.- Returns:
this
-
targetIntervalSeconds
@Stability(Stable) public CfnRecordingConfiguration.ThumbnailConfigurationProperty.Builder targetIntervalSeconds(Number targetIntervalSeconds) Sets the value ofCfnRecordingConfiguration.ThumbnailConfigurationProperty.getTargetIntervalSeconds()- Parameters:
targetIntervalSeconds- The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if RecordingMode isINTERVAL.Setting a value for
TargetIntervalSecondsdoes not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at theTargetIntervalSecondsinterval, theIDR/Keyframevalue for the input video must be less than theTargetIntervalSecondsvalue. See Amazon IVS Streaming Configuration for information on settingIDR/Keyframeto the recommended value in video-encoder settings.Default : 60
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRecordingConfiguration.ThumbnailConfigurationProperty>- Returns:
- a new instance of
CfnRecordingConfiguration.ThumbnailConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-