public class CapacityUnit extends Object implements Jsonizable
ReservedThroughput and for indicating the amount of capacity units consumed by read/write operations.| 构造器和说明 |
|---|
CapacityUnit()
Default constructor.
|
CapacityUnit(int readCapacityUnit,
int writeCapacityUnit)
Construct a CapacityUnit object and specify the values for read capacity units and write capacity units.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearReadCapacityUnit()
Clear the set read CapacityUnit.
|
void |
clearWriteCapacityUnit()
Clear the set write CapacityUnit.
|
boolean |
equals(Object o) |
int |
getReadCapacityUnit()
Get the value of the read capacity unit.
|
int |
getWriteCapacityUnit()
Get the value of the write capacity unit.
|
int |
hashCode() |
boolean |
hasSetReadCapacityUnit()
Query whether the read capacity unit is set.
|
boolean |
hasSetWriteCapacityUnit()
Query whether the write capacity unit is set.
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setReadCapacityUnit(int readCapacityUnit)
Set the value of the read capacity unit, the set value must be greater than or equal to 0.
|
void |
setWriteCapacityUnit(int writeCapacityUnit)
Set the value of the write capacity unit, the set value must be greater than or equal to 0.
|
String |
toString() |
public CapacityUnit()
Read capacity units and write capacity units are not set by default.
public CapacityUnit(int readCapacityUnit,
int writeCapacityUnit)
readCapacityUnit - The value of the read capacity unit, which must be greater than or equal to 0.writeCapacityUnit - The value of the write capacity unit, which must be greater than or equal to 0.IllegalArgumentException - If the value of the read or write capacity unit is negative.public int getReadCapacityUnit()
IllegalStateException - if this parameter is not configuredpublic void setReadCapacityUnit(int readCapacityUnit)
readCapacityUnit - the value of the read capacity unitIllegalArgumentException - if the value of the read capacity unit is negative.public boolean hasSetReadCapacityUnit()
public void clearReadCapacityUnit()
public int getWriteCapacityUnit()
IllegalStateException - If this parameter is not configuredpublic void setWriteCapacityUnit(int writeCapacityUnit)
writeCapacityUnit - the value of the write capacity unitIllegalArgumentException - if the value of the write capacity unit is negative.public boolean hasSetWriteCapacityUnit()
public void clearWriteCapacityUnit()
public String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 JsonizableCopyright © 2025. All Rights Reserved.