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 maximumOnDemandThroughput
on your table, set the value ofMaxReadRequestUnits
as greater than or equal to 1. To remove the maximumOnDemandThroughput
that is currently set on your table, set the value ofMaxReadRequestUnits
to -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 maximumOnDemandThroughput
on your table, set the value ofMaxWriteRequestUnits
as greater than or equal to 1. To remove the maximumOnDemandThroughput
that is currently set on your table, set the value ofMaxWriteRequestUnits
to -1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.OnDemandThroughputProperty>
- Returns:
- a new instance of
CfnTable.OnDemandThroughputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-