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
-
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()
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 KMS ) key that Kinesis Video Streams uses to encrypt data on the stream.- Returns:
this
-
mediaType
Sets the value ofCfnStreamProps.getMediaType()
- Parameters:
mediaType
- TheMediaType
of the stream.- Returns:
this
-
name
Sets the value ofCfnStreamProps.getName()
- Parameters:
name
- The name of the stream.- 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnStreamProps>
- Returns:
- a new instance of
CfnStreamProps
- Throws:
NullPointerException
- if any required attribute was not provided
-