com.amazonaws.services.dynamodb.model
Class BatchWriteItemRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.dynamodb.model.BatchWriteItemRequest

public class BatchWriteItemRequest
extends AmazonWebServiceRequest

Container for the parameters to the BatchWriteItem operation.

Allows to execute a batch of Put and/or Delete Requests for many tables in a single call. A total of 25 requests are allowed.

There are no transaction guarantees provided by this API. It does not allow conditional puts nor does it support return values.

See Also:
AmazonDynamoDB.batchWriteItem(BatchWriteItemRequest)

Constructor Summary
BatchWriteItemRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,List<WriteRequest>> getRequestItems()
          A map of table name to list-of-write-requests.
 int hashCode()
           
 void setRequestItems(Map<String,List<WriteRequest>> requestItems)
          A map of table name to list-of-write-requests.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BatchWriteItemRequest withRequestItems(Map<String,List<WriteRequest>> requestItems)
          A map of table name to list-of-write-requests.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchWriteItemRequest

public BatchWriteItemRequest()
Method Detail

getRequestItems

public Map<String,List<WriteRequest>> getRequestItems()
A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

Constraints:
Length: 1 - 25

Returns:
A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

setRequestItems

public void setRequestItems(Map<String,List<WriteRequest>> requestItems)
A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

Constraints:
Length: 1 - 25

Parameters:
requestItems - A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

withRequestItems

public BatchWriteItemRequest withRequestItems(Map<String,List<WriteRequest>> requestItems)
A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

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

Constraints:
Length: 1 - 25

Parameters:
requestItems - A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call
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.