Class ConsumedCapacity
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.ConsumedCapacity
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ConsumedCapacity extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsumedCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsumedCapacityaddGlobalSecondaryIndexesEntry(String key, Capacity value)ConsumedCapacityaddLocalSecondaryIndexesEntry(String key, Capacity value)ConsumedCapacityclearGlobalSecondaryIndexesEntries()Removes all the entries added into GlobalSecondaryIndexes.ConsumedCapacityclearLocalSecondaryIndexesEntries()Removes all the entries added into LocalSecondaryIndexes.ConsumedCapacityclone()booleanequals(Object obj)DoublegetCapacityUnits()The total number of capacity units consumed by the operation.Map<String,Capacity>getGlobalSecondaryIndexes()The amount of throughput consumed on each global index affected by the operation.Map<String,Capacity>getLocalSecondaryIndexes()The amount of throughput consumed on each local index affected by the operation.CapacitygetTable()The amount of throughput consumed on the table affected by the operation.StringgetTableName()The name of the table that was affected by the operation.inthashCode()voidsetCapacityUnits(Double capacityUnits)The total number of capacity units consumed by the operation.voidsetGlobalSecondaryIndexes(Map<String,Capacity> globalSecondaryIndexes)The amount of throughput consumed on each global index affected by the operation.voidsetLocalSecondaryIndexes(Map<String,Capacity> localSecondaryIndexes)The amount of throughput consumed on each local index affected by the operation.voidsetTable(Capacity table)The amount of throughput consumed on the table affected by the operation.voidsetTableName(String tableName)The name of the table that was affected by the operation.StringtoString()Returns a string representation of this object; useful for testing and debugging.ConsumedCapacitywithCapacityUnits(Double capacityUnits)The total number of capacity units consumed by the operation.ConsumedCapacitywithGlobalSecondaryIndexes(Map<String,Capacity> globalSecondaryIndexes)The amount of throughput consumed on each global index affected by the operation.ConsumedCapacitywithLocalSecondaryIndexes(Map<String,Capacity> localSecondaryIndexes)The amount of throughput consumed on each local index affected by the operation.ConsumedCapacitywithTable(Capacity table)The amount of throughput consumed on the table affected by the operation.ConsumedCapacitywithTableName(String tableName)The name of the table that was affected by the operation.
-
-
-
Method Detail
-
setTableName
public void setTableName(String tableName)
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
public String 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
public ConsumedCapacity withTableName(String tableName)
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
public void setCapacityUnits(Double capacityUnits)
The total number of capacity units consumed by the operation.
- Parameters:
capacityUnits- The total number of capacity units consumed by the operation.
-
getCapacityUnits
public Double getCapacityUnits()
The total number of capacity units consumed by the operation.
- Returns:
- The total number of capacity units consumed by the operation.
-
withCapacityUnits
public ConsumedCapacity withCapacityUnits(Double capacityUnits)
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
public void setTable(Capacity table)
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
public Capacity 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
public ConsumedCapacity withTable(Capacity table)
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
public Map<String,Capacity> 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
public void setLocalSecondaryIndexes(Map<String,Capacity> localSecondaryIndexes)
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
public ConsumedCapacity withLocalSecondaryIndexes(Map<String,Capacity> localSecondaryIndexes)
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
public ConsumedCapacity addLocalSecondaryIndexesEntry(String key, Capacity value)
-
clearLocalSecondaryIndexesEntries
public ConsumedCapacity clearLocalSecondaryIndexesEntries()
Removes all the entries added into LocalSecondaryIndexes. <p> Returns a reference to this object so that method calls can be chained together.
-
getGlobalSecondaryIndexes
public Map<String,Capacity> 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
public void setGlobalSecondaryIndexes(Map<String,Capacity> globalSecondaryIndexes)
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
public ConsumedCapacity withGlobalSecondaryIndexes(Map<String,Capacity> globalSecondaryIndexes)
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
public ConsumedCapacity addGlobalSecondaryIndexesEntry(String key, Capacity value)
-
clearGlobalSecondaryIndexesEntries
public ConsumedCapacity clearGlobalSecondaryIndexesEntries()
Removes all the entries added into GlobalSecondaryIndexes. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConsumedCapacity clone()
-
-