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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contributorInsights
(Boolean contributorInsights) Sets the value ofReplicaGlobalSecondaryIndexOptions.getContributorInsights()
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(Stable) public ReplicaGlobalSecondaryIndexOptions.Builder contributorInsights(Boolean contributorInsights) Sets the value ofReplicaGlobalSecondaryIndexOptions.getContributorInsights()
- Parameters:
contributorInsights
- Whether CloudWatch contributor insights is enabled 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:
build
in interfacesoftware.amazon.jsii.Builder<ReplicaGlobalSecondaryIndexOptions>
- Returns:
- a new instance of
ReplicaGlobalSecondaryIndexOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-