Class StreamGrantsProps.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.StreamGrantsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StreamGrantsProps>
- Enclosing interface:
StreamGrantsProps
@Stability(Stable)
public static final class StreamGrantsProps.Builder
extends Object
implements software.amazon.jsii.Builder<StreamGrantsProps>
A builder for
StreamGrantsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofStreamGrantsProps.getEncryptionKey()Sets the value ofStreamGrantsProps.getTable()tableStreamArn(String tableStreamArn) Sets the value ofStreamGrantsProps.getTableStreamArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
table
Sets the value ofStreamGrantsProps.getTable()- Parameters:
table- The table this stream is for. This parameter is required.- Returns:
this
-
tableStreamArn
Sets the value ofStreamGrantsProps.getTableStreamArn()- Parameters:
tableStreamArn- The ARN of the Stream. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofStreamGrantsProps.getEncryptionKey()- Parameters:
encryptionKey- The encryption key of the table. Required permissions will be added to the key as well.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StreamGrantsProps>- Returns:
- a new instance of
StreamGrantsProps - Throws:
NullPointerException- if any required attribute was not provided
-