Class StreamAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.StreamAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StreamAttributes>
- Enclosing interface:
- StreamAttributes
@Stability(Stable)
public static final class StreamAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<StreamAttributes>
A builder for
StreamAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionKey
(IKey encryptionKey) Sets the value ofStreamAttributes.getEncryptionKey()
Sets the value ofStreamAttributes.getStreamArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
streamArn
Sets the value ofStreamAttributes.getStreamArn()
- Parameters:
streamArn
- The ARN of the stream. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofStreamAttributes.getEncryptionKey()
- Parameters:
encryptionKey
- The KMS key securing the contents of the stream if encryption is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StreamAttributes>
- Returns:
- a new instance of
StreamAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-