@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.
ThroughputModepublic 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.
ThroughputModepublic 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.
ThroughputModepublic 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.
ThroughputModepublic 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 ObjectObject.toString()public CapacitySpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.