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) Deprecated.use `contributorInsightsSpecification` insteadcontributorInsightsSpecification(ContributorInsightsSpecification contributorInsightsSpecification) Sets the value ofTableOptionsV2.getContributorInsightsSpecification()deletionProtection(Boolean deletionProtection) Sets the value ofTableOptionsV2.getDeletionProtection()kinesisStream(IStream kinesisStream) Sets the value ofTableOptionsV2.getKinesisStream()pointInTimeRecovery(Boolean pointInTimeRecovery) Deprecated.use `pointInTimeRecoverySpecification` insteadpointInTimeRecoverySpecification(PointInTimeRecoverySpecification pointInTimeRecoverySpecification) Sets the value ofTableOptionsV2.getPointInTimeRecoverySpecification()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
@Stability(Deprecated) @Deprecated public TableOptionsV2.Builder contributorInsights(Boolean contributorInsights) Deprecated.use `contributorInsightsSpecification` insteadSets the value ofTableOptionsV2.getContributorInsights()- Parameters:
contributorInsights- Whether CloudWatch contributor insights is enabled.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public TableOptionsV2.Builder contributorInsightsSpecification(ContributorInsightsSpecification contributorInsightsSpecification) Sets the value ofTableOptionsV2.getContributorInsightsSpecification()- Parameters:
contributorInsightsSpecification- Whether CloudWatch contributor insights is enabled and what mode is selected.- 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
@Stability(Deprecated) @Deprecated public TableOptionsV2.Builder pointInTimeRecovery(Boolean pointInTimeRecovery) Deprecated.use `pointInTimeRecoverySpecification` insteadSets the value ofTableOptionsV2.getPointInTimeRecovery()- Parameters:
pointInTimeRecovery- Whether point-in-time recovery is enabled.- Returns:
this
-
pointInTimeRecoverySpecification
@Stability(Stable) public TableOptionsV2.Builder pointInTimeRecoverySpecification(PointInTimeRecoverySpecification pointInTimeRecoverySpecification) Sets the value ofTableOptionsV2.getPointInTimeRecoverySpecification()- Parameters:
pointInTimeRecoverySpecification- Whether point-in-time recovery is enabled and recoveryPeriodInDays is set.- 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 primary table (default replica table).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TableOptionsV2>- Returns:
- a new instance of
TableOptionsV2 - Throws:
NullPointerException- if any required attribute was not provided
-