@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacitySpecification extends Object implements Serializable, Cloneable, StructuredPojo
Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables:
On-demand (default)
Provisioned
The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
Constructor and Description |
---|
CapacitySpecification() |
Modifier and Type | Method and Description |
---|---|
CapacitySpecification |
clone() |
boolean |
equals(Object obj) |
Long |
getReadCapacityUnits()
The throughput capacity specified for
read operations defined in read capacity units
(RCUs) . |
String |
getThroughputMode()
The read/write throughput capacity mode for a table.
|
Long |
getWriteCapacityUnits()
The throughput capacity specified for
write operations defined in write capacity units
(WCUs) . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReadCapacityUnits(Long readCapacityUnits)
The throughput capacity specified for
read operations defined in read capacity units
(RCUs) . |
void |
setThroughputMode(String throughputMode)
The read/write throughput capacity mode for a table.
|
void |
setWriteCapacityUnits(Long writeCapacityUnits)
The throughput capacity specified for
write operations defined in write capacity units
(WCUs) . |
String |
toString()
Returns a string representation of this object.
|
CapacitySpecification |
withReadCapacityUnits(Long readCapacityUnits)
The throughput capacity specified for
read operations defined in read capacity units
(RCUs) . |
CapacitySpecification |
withThroughputMode(String throughputMode)
The read/write throughput capacity mode for a table.
|
CapacitySpecification |
withThroughputMode(ThroughputMode throughputMode)
The read/write throughput capacity mode for a table.
|
CapacitySpecification |
withWriteCapacityUnits(Long writeCapacityUnits)
The throughput capacity specified for
write operations defined in write capacity units
(WCUs) . |
public void setThroughputMode(String throughputMode)
The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
and
writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
throughputMode
- The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires
readCapacityUnits
and writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
ThroughputMode
public String getThroughputMode()
The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
and
writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires
readCapacityUnits
and writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
ThroughputMode
public CapacitySpecification withThroughputMode(String throughputMode)
The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
and
writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
throughputMode
- The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires
readCapacityUnits
and writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
ThroughputMode
public CapacitySpecification withThroughputMode(ThroughputMode throughputMode)
The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
and
writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
throughputMode
- The read/write throughput capacity mode for a table. The options are:
throughputMode:PAY_PER_REQUEST
and
throughputMode:PROVISIONED
- Provisioned capacity mode requires
readCapacityUnits
and writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
ThroughputMode
public void setReadCapacityUnits(Long readCapacityUnits)
The throughput capacity specified for read
operations defined in read capacity units
(RCUs)
.
readCapacityUnits
- The throughput capacity specified for read
operations defined in
read capacity units
(RCUs)
.public Long getReadCapacityUnits()
The throughput capacity specified for read
operations defined in read capacity units
(RCUs)
.
read
operations defined in
read capacity units
(RCUs)
.public CapacitySpecification withReadCapacityUnits(Long readCapacityUnits)
The throughput capacity specified for read
operations defined in read capacity units
(RCUs)
.
readCapacityUnits
- The throughput capacity specified for read
operations defined in
read capacity units
(RCUs)
.public void setWriteCapacityUnits(Long writeCapacityUnits)
The throughput capacity specified for write
operations defined in write capacity units
(WCUs)
.
writeCapacityUnits
- The throughput capacity specified for write
operations defined in
write capacity units
(WCUs)
.public Long getWriteCapacityUnits()
The throughput capacity specified for write
operations defined in write capacity units
(WCUs)
.
write
operations defined in
write capacity units
(WCUs)
.public CapacitySpecification withWriteCapacityUnits(Long writeCapacityUnits)
The throughput capacity specified for write
operations defined in write capacity units
(WCUs)
.
writeCapacityUnits
- The throughput capacity specified for write
operations defined in
write capacity units
(WCUs)
.public String toString()
toString
in class Object
Object.toString()
public CapacitySpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.