public class ConsumedCapacity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
capacityUnits
The total number of capacity units consumed by the operation.
|
private java.util.Map<java.lang.String,Capacity> |
globalSecondaryIndexes
The amount of throughput consumed on each global index affected by the
operation.
|
private java.util.Map<java.lang.String,Capacity> |
localSecondaryIndexes
The amount of throughput consumed on each local index affected by the
operation.
|
private Capacity |
table
The amount of throughput consumed on the table affected by the operation.
|
private java.lang.String |
tableName
The name of the table that was affected by the operation.
|
Constructor and Description |
---|
ConsumedCapacity() |
Modifier and Type | Method and Description |
---|---|
ConsumedCapacity |
addGlobalSecondaryIndexesEntry(java.lang.String key,
Capacity value) |
ConsumedCapacity |
addLocalSecondaryIndexesEntry(java.lang.String key,
Capacity value) |
ConsumedCapacity |
clearGlobalSecondaryIndexesEntries()
Removes all the entries added into GlobalSecondaryIndexes.
|
ConsumedCapacity |
clearLocalSecondaryIndexesEntries()
Removes all the entries added into LocalSecondaryIndexes.
|
ConsumedCapacity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getCapacityUnits()
The total number of capacity units consumed by the operation.
|
java.util.Map<java.lang.String,Capacity> |
getGlobalSecondaryIndexes()
The amount of throughput consumed on each global index affected by the
operation.
|
java.util.Map<java.lang.String,Capacity> |
getLocalSecondaryIndexes()
The amount of throughput consumed on each local index affected by the
operation.
|
Capacity |
getTable()
The amount of throughput consumed on the table affected by the operation.
|
java.lang.String |
getTableName()
The name of the table that was affected by the operation.
|
int |
hashCode() |
void |
setCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed by the operation.
|
void |
setGlobalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> globalSecondaryIndexes)
The amount of throughput consumed on each global index affected by the
operation.
|
void |
setLocalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> localSecondaryIndexes)
The amount of throughput consumed on each local index affected by the
operation.
|
void |
setTable(Capacity table)
The amount of throughput consumed on the table affected by the operation.
|
void |
setTableName(java.lang.String tableName)
The name of the table that was affected by the operation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConsumedCapacity |
withCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed by the operation.
|
ConsumedCapacity |
withGlobalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> globalSecondaryIndexes)
The amount of throughput consumed on each global index affected by the
operation.
|
ConsumedCapacity |
withLocalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> localSecondaryIndexes)
The amount of throughput consumed on each local index affected by the
operation.
|
ConsumedCapacity |
withTable(Capacity table)
The amount of throughput consumed on the table affected by the operation.
|
ConsumedCapacity |
withTableName(java.lang.String tableName)
The name of the table that was affected by the operation.
|
private java.lang.String tableName
The name of the table that was affected by the operation.
private java.lang.Double capacityUnits
The total number of capacity units consumed by the operation.
private Capacity table
The amount of throughput consumed on the table affected by the operation.
private java.util.Map<java.lang.String,Capacity> localSecondaryIndexes
The amount of throughput consumed on each local index affected by the operation.
private java.util.Map<java.lang.String,Capacity> globalSecondaryIndexes
The amount of throughput consumed on each global index affected by the operation.
public void setTableName(java.lang.String tableName)
The name of the table that was affected by the operation.
tableName
- The name of the table that was affected by the operation.public java.lang.String getTableName()
The name of the table that was affected by the operation.
public ConsumedCapacity withTableName(java.lang.String tableName)
The name of the table that was affected by the operation.
tableName
- The name of the table that was affected by the operation.public void setCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed by the operation.
capacityUnits
- The total number of capacity units consumed by the operation.public java.lang.Double getCapacityUnits()
The total number of capacity units consumed by the operation.
public ConsumedCapacity withCapacityUnits(java.lang.Double capacityUnits)
The total number of capacity units consumed by the operation.
capacityUnits
- The total number of capacity units consumed by the operation.public void setTable(Capacity table)
The amount of throughput consumed on the table affected by the operation.
table
- The amount of throughput consumed on the table affected by the
operation.public Capacity getTable()
The amount of throughput consumed on the table affected by the operation.
public ConsumedCapacity withTable(Capacity table)
The amount of throughput consumed on the table affected by the operation.
table
- The amount of throughput consumed on the table affected by the
operation.public java.util.Map<java.lang.String,Capacity> getLocalSecondaryIndexes()
The amount of throughput consumed on each local index affected by the operation.
public void setLocalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> localSecondaryIndexes)
The amount of throughput consumed on each local index affected by the operation.
localSecondaryIndexes
- The amount of throughput consumed on each local index affected by
the operation.public ConsumedCapacity withLocalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> localSecondaryIndexes)
The amount of throughput consumed on each local index affected by the operation.
localSecondaryIndexes
- The amount of throughput consumed on each local index affected by
the operation.public ConsumedCapacity addLocalSecondaryIndexesEntry(java.lang.String key, Capacity value)
public ConsumedCapacity clearLocalSecondaryIndexesEntries()
public java.util.Map<java.lang.String,Capacity> getGlobalSecondaryIndexes()
The amount of throughput consumed on each global index affected by the operation.
public void setGlobalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> globalSecondaryIndexes)
The amount of throughput consumed on each global index affected by the operation.
globalSecondaryIndexes
- The amount of throughput consumed on each global index affected by
the operation.public ConsumedCapacity withGlobalSecondaryIndexes(java.util.Map<java.lang.String,Capacity> globalSecondaryIndexes)
The amount of throughput consumed on each global index affected by the operation.
globalSecondaryIndexes
- The amount of throughput consumed on each global index affected by
the operation.public ConsumedCapacity addGlobalSecondaryIndexesEntry(java.lang.String key, Capacity value)
public ConsumedCapacity clearGlobalSecondaryIndexesEntries()
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 ConsumedCapacity clone()
clone
in class java.lang.Object