Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodbv2.model
Class ConsumedCapacity

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.ConsumedCapacity
All Implemented Interfaces:
Serializable

public class ConsumedCapacity
extends Object
implements Serializable

The table name that consumed provisioned throughput, and the number of capacity units consumed by it. ConsumedCapacity is only returned if it was asked for in the request. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide .

See Also:
Serialized Form

Constructor Summary
ConsumedCapacity()
           
 
Method Summary
 boolean equals(Object obj)
           
 Double getCapacityUnits()
          The total number of capacity units consumed.
 String getTableName()
          The table that consumed the provisioned throughput.
 int hashCode()
           
 void setCapacityUnits(Double capacityUnits)
          The total number of capacity units consumed.
 void setTableName(String tableName)
          The table that consumed the provisioned throughput.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ConsumedCapacity withCapacityUnits(Double capacityUnits)
          The total number of capacity units consumed.
 ConsumedCapacity withTableName(String tableName)
          The table that consumed the provisioned throughput.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumedCapacity

public ConsumedCapacity()
Method Detail

getTableName

public String getTableName()
The table that consumed the provisioned throughput.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Returns:
The table that consumed the provisioned throughput.

setTableName

public void setTableName(String tableName)
The table that consumed the provisioned throughput.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
tableName - The table that consumed the provisioned throughput.

withTableName

public ConsumedCapacity withTableName(String tableName)
The table that consumed the provisioned throughput.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
tableName - The table that consumed the provisioned throughput.
Returns:
A reference to this updated object so that method calls can be chained together.

getCapacityUnits

public Double getCapacityUnits()
The total number of capacity units consumed.

Returns:
The total number of capacity units consumed.

setCapacityUnits

public void setCapacityUnits(Double capacityUnits)
The total number of capacity units consumed.

Parameters:
capacityUnits - The total number of capacity units consumed.

withCapacityUnits

public ConsumedCapacity withCapacityUnits(Double capacityUnits)
The total number of capacity units consumed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
capacityUnits - The total number of capacity units consumed.
Returns:
A reference to this updated 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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.