public class Capacity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the amount of provisioned throughput capacity consumed on a table or an index.
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
capacityUnits
The total number of capacity units consumed on a table or an index.
|
Constructor and Description |
---|
Capacity() |
Modifier and Type | Method and Description |
---|---|
Capacity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getCapacityUnits()
The total number of capacity units consumed on a table or an index.
|
int |
hashCode() |
void |
setCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed on a table or an index.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Capacity |
withCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed on a table or an index.
|
private java.lang.Double capacityUnits
The total number of capacity units consumed on a table or an index.
public void setCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed on a table or an index.
capacityUnits
- The total number of capacity units consumed on a table or an
index.public java.lang.Double getCapacityUnits()
The total number of capacity units consumed on a table or an index.
public Capacity withCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed on a table or an index.
capacityUnits
- The total number of capacity units consumed on a table or an
index.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Capacity clone()
clone
in class java.lang.Object