Class CfnTable.OnDemandThroughputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnTable.OnDemandThroughputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.OnDemandThroughputProperty>
- Enclosing interface:
CfnTable.OnDemandThroughputProperty
@Stability(Stable)
public static final class CfnTable.OnDemandThroughputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.OnDemandThroughputProperty>
A builder for
CfnTable.OnDemandThroughputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxReadRequestUnits(Number maxReadRequestUnits) Sets the value ofCfnTable.OnDemandThroughputProperty.getMaxReadRequestUnits()maxWriteRequestUnits(Number maxWriteRequestUnits) Sets the value ofCfnTable.OnDemandThroughputProperty.getMaxWriteRequestUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxReadRequestUnits
@Stability(Stable) public CfnTable.OnDemandThroughputProperty.Builder maxReadRequestUnits(Number maxReadRequestUnits) Sets the value ofCfnTable.OnDemandThroughputProperty.getMaxReadRequestUnits()- Parameters:
maxReadRequestUnits- Maximum number of read request units for the specified table. To specify a maximumOnDemandThroughputon your table, set the value ofMaxReadRequestUnitsas greater than or equal to 1. To remove the maximumOnDemandThroughputthat is currently set on your table, set the value ofMaxReadRequestUnitsto -1.- Returns:
this
-
maxWriteRequestUnits
@Stability(Stable) public CfnTable.OnDemandThroughputProperty.Builder maxWriteRequestUnits(Number maxWriteRequestUnits) Sets the value ofCfnTable.OnDemandThroughputProperty.getMaxWriteRequestUnits()- Parameters:
maxWriteRequestUnits- Maximum number of write request units for the specified table. To specify a maximumOnDemandThroughputon your table, set the value ofMaxWriteRequestUnitsas greater than or equal to 1. To remove the maximumOnDemandThroughputthat is currently set on your table, set the value ofMaxWriteRequestUnitsto -1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.OnDemandThroughputProperty>- Returns:
- a new instance of
CfnTable.OnDemandThroughputProperty - Throws:
NullPointerException- if any required attribute was not provided
-