Class CfnStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisvideo.CfnStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamProps>
- Enclosing interface:
CfnStreamProps
@Stability(Stable)
public static final class CfnStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamProps>
A builder for
CfnStreamProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataRetentionInHours(Number dataRetentionInHours) Sets the value ofCfnStreamProps.getDataRetentionInHours()deviceName(String deviceName) Sets the value ofCfnStreamProps.getDeviceName()Sets the value ofCfnStreamProps.getKmsKeyId()Sets the value ofCfnStreamProps.getMediaType()Sets the value ofCfnStreamProps.getName()streamStorageConfiguration(IResolvable streamStorageConfiguration) Sets the value ofCfnStreamProps.getStreamStorageConfiguration()streamStorageConfiguration(CfnStream.StreamStorageConfigurationProperty streamStorageConfiguration) Sets the value ofCfnStreamProps.getStreamStorageConfiguration()Sets the value ofCfnStreamProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataRetentionInHours
Sets the value ofCfnStreamProps.getDataRetentionInHours()- Parameters:
dataRetentionInHours- How long the stream retains data, in hours.- Returns:
this
-
deviceName
Sets the value ofCfnStreamProps.getDeviceName()- Parameters:
deviceName- The name of the device that is associated with the stream.- Returns:
this
-
kmsKeyId
Sets the value ofCfnStreamProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service ( AWS ) key that Kinesis Video Streams uses to encrypt data on the stream.- Returns:
this
-
mediaType
Sets the value ofCfnStreamProps.getMediaType()- Parameters:
mediaType- TheMediaTypeof the stream.- Returns:
this
-
name
Sets the value ofCfnStreamProps.getName()- Parameters:
name- The name of the stream.- Returns:
this
-
streamStorageConfiguration
@Stability(Stable) public CfnStreamProps.Builder streamStorageConfiguration(IResolvable streamStorageConfiguration) Sets the value ofCfnStreamProps.getStreamStorageConfiguration()- Parameters:
streamStorageConfiguration- The configuration for stream storage, including the default storage tier for stream data. This configuration determines how stream data is stored and accessed, with different tiers offering varying levels of performance and cost optimization.- Returns:
this
-
streamStorageConfiguration
@Stability(Stable) public CfnStreamProps.Builder streamStorageConfiguration(CfnStream.StreamStorageConfigurationProperty streamStorageConfiguration) Sets the value ofCfnStreamProps.getStreamStorageConfiguration()- Parameters:
streamStorageConfiguration- The configuration for stream storage, including the default storage tier for stream data. This configuration determines how stream data is stored and accessed, with different tiers offering varying levels of performance and cost optimization.- Returns:
this
-
tags
Sets the value ofCfnStreamProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamProps>- Returns:
- a new instance of
CfnStreamProps - Throws:
NullPointerException- if any required attribute was not provided
-