Class 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 Detail

      • ConsumedCapacity

        public ConsumedCapacity()
    • 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.
      • 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.
      • 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:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object