public class CapacityDataSize extends Object implements Jsonizable
ReservedThroughput to configure the reserved read/write throughput for a table and to indicate the amount of capacity units consumed by read/write operations.| 构造器和说明 |
|---|
CapacityDataSize()
Default constructor.
|
CapacityDataSize(long readCapacityDataSize,
long writeCapacityDataSize)
Constructs a CapacityUnit object and specifies the values for read capacity units and write capacity units.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearReadCapacityDataSize()
Clear the set read CapacityDataSize.
|
void |
clearWriteCapacityDataSize()
Clear the set write CapacityUnit.
|
boolean |
equals(Object o) |
long |
getReadCapacityDataSize()
Get the value of the read capacity unit.
|
long |
getWriteCapacityDataSize()
Get the value of the write capacity unit.
|
int |
hashCode() |
boolean |
hasSetReadCapacityDataSize()
Query whether the read capacity unit is set.
|
boolean |
hasSetWriteCapacityDataSize()
Query whether the write capacity unit is set.
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setReadCapacityDataSize(long readCapacityDataSize)
Set the value of the read capacity unit.
|
void |
setWriteCapacityDataSize(long writeCapacityDataSize)
Set the value of the write capacity unit.
|
String |
toString() |
public CapacityDataSize()
Read capacity units and write capacity units are not set by default.
public CapacityDataSize(long readCapacityDataSize,
long writeCapacityDataSize)
readCapacityDataSize - The value of the read capacity unit, which must be greater than or equal to 0.writeCapacityDataSize - The value of the write capacity unit, which must be greater than or equal to 0.IllegalArgumentException - If the read or write capacity unit value is negative.public long getReadCapacityDataSize()
IllegalStateException - if this parameter is not configured.public void setReadCapacityDataSize(long readCapacityDataSize)
readCapacityDataSize - the value of the read capacity unitIllegalArgumentException - if the value of the read capacity unit is negative.public boolean hasSetReadCapacityDataSize()
public void clearReadCapacityDataSize()
public long getWriteCapacityDataSize()
IllegalStateException - If this parameter is not configuredpublic void setWriteCapacityDataSize(long writeCapacityDataSize)
writeCapacityDataSize - the value of the write capacity unitIllegalArgumentException - if the value of the write capacity unit is negative.public boolean hasSetWriteCapacityDataSize()
public void clearWriteCapacityDataSize()
public String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 JsonizableCopyright © 2025. All Rights Reserved.