Class CfnStream.Builder

java.lang.Object
software.amazon.awscdk.services.kinesisvideo.CfnStream.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStream>
Enclosing class:
CfnStream

@Stability(Stable) public static final class CfnStream.Builder extends Object implements software.amazon.jsii.Builder<CfnStream>
A fluent builder for CfnStream.
  • Method Details

    • create

      @Stability(Stable) public static CfnStream.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnStream.Builder.
    • dataRetentionInHours

      @Stability(Stable) public CfnStream.Builder dataRetentionInHours(Number dataRetentionInHours)
      How long the stream retains data, in hours.

      Parameters:
      dataRetentionInHours - How long the stream retains data, in hours. This parameter is required.
      Returns:
      this
    • deviceName

      @Stability(Stable) public CfnStream.Builder deviceName(String deviceName)
      The name of the device that is associated with the stream.

      Parameters:
      deviceName - The name of the device that is associated with the stream. This parameter is required.
      Returns:
      this
    • kmsKeyId

      @Stability(Stable) public CfnStream.Builder kmsKeyId(String kmsKeyId)
      The ID of the AWS Key Management Service ( AWS KMS ) key that Kinesis Video Streams uses to encrypt data on the stream.

      Parameters:
      kmsKeyId - The ID of the AWS Key Management Service ( AWS KMS ) key that Kinesis Video Streams uses to encrypt data on the stream. This parameter is required.
      Returns:
      this
    • mediaType

      @Stability(Stable) public CfnStream.Builder mediaType(String mediaType)
      The MediaType of the stream.

      Parameters:
      mediaType - The MediaType of the stream. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnStream.Builder name(String name)
      The name of the stream.

      Parameters:
      name - The name of the stream. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnStream.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStream build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStream>
      Returns:
      a newly built instance of CfnStream.