com.amazonaws.services.dynamodb.model
Class BatchResponse

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.BatchResponse

public class BatchResponse
extends Object

The item attributes from a response in a specific table, along with the read resources consumed on the table during the request.


Constructor Summary
BatchResponse()
           
 
Method Summary
 boolean equals(Object obj)
           
 Double getConsumedCapacityUnits()
          The number of Capacity Units of the provisioned throughput of the table consumed during the operation.
 List<Map<String,AttributeValue>> getItems()
          Returns the value of the Items property for this object.
 int hashCode()
           
 void setConsumedCapacityUnits(Double consumedCapacityUnits)
          The number of Capacity Units of the provisioned throughput of the table consumed during the operation.
 void setItems(Collection<Map<String,AttributeValue>> items)
          Sets the value of the Items property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BatchResponse withConsumedCapacityUnits(Double consumedCapacityUnits)
          The number of Capacity Units of the provisioned throughput of the table consumed during the operation.
 BatchResponse withItems(Collection<Map<String,AttributeValue>> items)
          Sets the value of the Items property for this object.
 BatchResponse withItems(Map<String,AttributeValue>... items)
          Sets the value of the Items property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchResponse

public BatchResponse()
Method Detail

getItems

public List<Map<String,AttributeValue>> getItems()
Returns the value of the Items property for this object.

Returns:
The value of the Items property for this object.

setItems

public void setItems(Collection<Map<String,AttributeValue>> items)
Sets the value of the Items property for this object.

Parameters:
items - The new value for the Items property for this object.

withItems

public BatchResponse withItems(Map<String,AttributeValue>... items)
Sets the value of the Items property for this object.

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

Parameters:
items - The new value for the Items property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withItems

public BatchResponse withItems(Collection<Map<String,AttributeValue>> items)
Sets the value of the Items property for this object.

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

Parameters:
items - The new value for the Items property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getConsumedCapacityUnits

public Double getConsumedCapacityUnits()
The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

Returns:
The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

setConsumedCapacityUnits

public void setConsumedCapacityUnits(Double consumedCapacityUnits)
The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

Parameters:
consumedCapacityUnits - The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

withConsumedCapacityUnits

public BatchResponse withConsumedCapacityUnits(Double consumedCapacityUnits)
The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

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

Parameters:
consumedCapacityUnits - The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.
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.