Class TableOptionsV2.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.TableOptionsV2.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableOptionsV2>
- Enclosing interface:
TableOptionsV2
@Stability(Stable)
public static final class TableOptionsV2.Builder
extends Object
implements software.amazon.jsii.Builder<TableOptionsV2>
A builder for
TableOptionsV2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contributorInsights
(Boolean contributorInsights) Sets the value ofTableOptionsV2.getContributorInsights()
deletionProtection
(Boolean deletionProtection) Sets the value ofTableOptionsV2.getDeletionProtection()
kinesisStream
(IStream kinesisStream) Sets the value ofTableOptionsV2.getKinesisStream()
pointInTimeRecovery
(Boolean pointInTimeRecovery) Sets the value ofTableOptionsV2.getPointInTimeRecovery()
resourcePolicy
(PolicyDocument resourcePolicy) Sets the value ofTableOptionsV2.getResourcePolicy()
tableClass
(TableClass tableClass) Sets the value ofTableOptionsV2.getTableClass()
Sets the value ofTableOptionsV2.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contributorInsights
Sets the value ofTableOptionsV2.getContributorInsights()
- Parameters:
contributorInsights
- Whether CloudWatch contributor insights is enabled.- Returns:
this
-
deletionProtection
Sets the value ofTableOptionsV2.getDeletionProtection()
- Parameters:
deletionProtection
- Whether deletion protection is enabled.- Returns:
this
-
kinesisStream
Sets the value ofTableOptionsV2.getKinesisStream()
- Parameters:
kinesisStream
- Kinesis Data Stream to capture item level changes.- Returns:
this
-
pointInTimeRecovery
Sets the value ofTableOptionsV2.getPointInTimeRecovery()
- Parameters:
pointInTimeRecovery
- Whether point-in-time recovery is enabled.- Returns:
this
-
resourcePolicy
Sets the value ofTableOptionsV2.getResourcePolicy()
- Parameters:
resourcePolicy
- Resource policy to assign to DynamoDB Table.- Returns:
this
-
tableClass
Sets the value ofTableOptionsV2.getTableClass()
- Parameters:
tableClass
- The table class.- Returns:
this
-
tags
Sets the value ofTableOptionsV2.getTags()
- Parameters:
tags
- Tags to be applied to the table or replica table.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TableOptionsV2>
- Returns:
- a new instance of
TableOptionsV2
- Throws:
NullPointerException
- if any required attribute was not provided
-