Class ConsumedCapacity
- All Implemented Interfaces:
Serializable
,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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGlobalSecondaryIndexesEntry
(String key, Capacity value) addLocalSecondaryIndexesEntry
(String key, Capacity value) Removes all the entries added into GlobalSecondaryIndexes.Removes all the entries added into LocalSecondaryIndexes.clone()
boolean
The total number of capacity units consumed by the operation.The amount of throughput consumed on each global index affected by the operation.The amount of throughput consumed on each local index affected by the operation.getTable()
The amount of throughput consumed on the table affected by the operation.The name of the table that was affected by the operation.int
hashCode()
void
setCapacityUnits
(Double capacityUnits) The total number of capacity units consumed by the operation.void
setGlobalSecondaryIndexes
(Map<String, Capacity> globalSecondaryIndexes) The amount of throughput consumed on each global index affected by the operation.void
setLocalSecondaryIndexes
(Map<String, Capacity> localSecondaryIndexes) The amount of throughput consumed on each local index affected by the operation.void
The amount of throughput consumed on the table affected by the operation.void
setTableName
(String tableName) The name of the table that was affected by the operation.toString()
Returns a string representation of this object; useful for testing and debugging.withCapacityUnits
(Double capacityUnits) The total number of capacity units consumed by the operation.withGlobalSecondaryIndexes
(Map<String, Capacity> globalSecondaryIndexes) The amount of throughput consumed on each global index affected by the operation.withLocalSecondaryIndexes
(Map<String, Capacity> localSecondaryIndexes) The amount of throughput consumed on each local index affected by the operation.The amount of throughput consumed on the table affected by the operation.withTableName
(String tableName) The name of the table that was affected by the operation.
-
Constructor Details
-
ConsumedCapacity
public ConsumedCapacity()
-
-
Method Details
-
setTableName
The name of the table that was affected by the operation.
- Parameters:
tableName
- The name of the table that was affected by the operation.
-
getTableName
The name of the table that was affected by the operation.
- Returns:
- The name of the table that was affected by the operation.
-
withTableName
The name of the table that was affected by the operation.
- Parameters:
tableName
- The name of the table that was affected by the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCapacityUnits
The total number of capacity units consumed by the operation.
- Parameters:
capacityUnits
- The total number of capacity units consumed by the operation.
-
getCapacityUnits
The total number of capacity units consumed by the operation.
- Returns:
- The total number of capacity units consumed by the operation.
-
withCapacityUnits
The total number of capacity units consumed by the operation.
- Parameters:
capacityUnits
- The total number of capacity units consumed by the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTable
The amount of throughput consumed on the table affected by the operation.
- Parameters:
table
- The amount of throughput consumed on the table affected by the operation.
-
getTable
The amount of throughput consumed on the table affected by the operation.
- Returns:
- The amount of throughput consumed on the table affected by the operation.
-
withTable
The amount of throughput consumed on the table affected by the operation.
- Parameters:
table
- The amount of throughput consumed on the table affected by the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLocalSecondaryIndexes
The amount of throughput consumed on each local index affected by the operation.
- Returns:
- The amount of throughput consumed on each local index affected by the operation.
-
setLocalSecondaryIndexes
The amount of throughput consumed on each local index affected by the operation.
- Parameters:
localSecondaryIndexes
- The amount of throughput consumed on each local index affected by the operation.
-
withLocalSecondaryIndexes
The amount of throughput consumed on each local index affected by the operation.
- Parameters:
localSecondaryIndexes
- The amount of throughput consumed on each local index affected by the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addLocalSecondaryIndexesEntry
-
clearLocalSecondaryIndexesEntries
Removes all the entries added into LocalSecondaryIndexes. <p> Returns a reference to this object so that method calls can be chained together. -
getGlobalSecondaryIndexes
The amount of throughput consumed on each global index affected by the operation.
- Returns:
- The amount of throughput consumed on each global index affected by the operation.
-
setGlobalSecondaryIndexes
The amount of throughput consumed on each global index affected by the operation.
- Parameters:
globalSecondaryIndexes
- The amount of throughput consumed on each global index affected by the operation.
-
withGlobalSecondaryIndexes
The amount of throughput consumed on each global index affected by the operation.
- Parameters:
globalSecondaryIndexes
- The amount of throughput consumed on each global index affected by the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addGlobalSecondaryIndexesEntry
-
clearGlobalSecondaryIndexesEntries
Removes all the entries added into GlobalSecondaryIndexes. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-