Class ReplicaGlobalSecondaryIndexOptions.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.ReplicaGlobalSecondaryIndexOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReplicaGlobalSecondaryIndexOptions>
- Enclosing interface:
ReplicaGlobalSecondaryIndexOptions
@Stability(Stable)
public static final class ReplicaGlobalSecondaryIndexOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ReplicaGlobalSecondaryIndexOptions>
A builder for
ReplicaGlobalSecondaryIndexOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contributorInsights(Boolean contributorInsights) Deprecated.use `contributorInsightsSpecification` insteadcontributorInsightsSpecification(ContributorInsightsSpecification contributorInsightsSpecification) Sets the value ofReplicaGlobalSecondaryIndexOptions.getContributorInsightsSpecification()maxReadRequestUnits(Number maxReadRequestUnits) Sets the value ofReplicaGlobalSecondaryIndexOptions.getMaxReadRequestUnits()readCapacity(Capacity readCapacity) Sets the value ofReplicaGlobalSecondaryIndexOptions.getReadCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contributorInsights
@Stability(Deprecated) @Deprecated public ReplicaGlobalSecondaryIndexOptions.Builder contributorInsights(Boolean contributorInsights) Deprecated.use `contributorInsightsSpecification` insteadSets the value ofReplicaGlobalSecondaryIndexOptions.getContributorInsights()- Parameters:
contributorInsights- Whether CloudWatch contributor insights is enabled for a specific global secondary index on a replica table.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public ReplicaGlobalSecondaryIndexOptions.Builder contributorInsightsSpecification(ContributorInsightsSpecification contributorInsightsSpecification) Sets the value ofReplicaGlobalSecondaryIndexOptions.getContributorInsightsSpecification()- Parameters:
contributorInsightsSpecification- Whether CloudWatch contributor insights is enabled and what mode is selected for a specific global secondary index on a replica table.- Returns:
this
-
maxReadRequestUnits
@Stability(Stable) public ReplicaGlobalSecondaryIndexOptions.Builder maxReadRequestUnits(Number maxReadRequestUnits) Sets the value ofReplicaGlobalSecondaryIndexOptions.getMaxReadRequestUnits()- Parameters:
maxReadRequestUnits- The maximum read request units for a specific global secondary index on a replica table. Note: This can only be configured if primary table billing is PAY_PER_REQUEST.- Returns:
this
-
readCapacity
@Stability(Stable) public ReplicaGlobalSecondaryIndexOptions.Builder readCapacity(Capacity readCapacity) Sets the value ofReplicaGlobalSecondaryIndexOptions.getReadCapacity()- Parameters:
readCapacity- The read capacity for a specific global secondary index on a replica table. Note: This can only be configured if primary table billing is provisioned.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ReplicaGlobalSecondaryIndexOptions>- Returns:
- a new instance of
ReplicaGlobalSecondaryIndexOptions - Throws:
NullPointerException- if any required attribute was not provided
-