Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodb.model
Class BatchWriteItemRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.dynamodb.model.BatchWriteItemRequest
All Implemented Interfaces:
java.io.Serializable

public class BatchWriteItemRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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), Serialized Form

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

Constructor Detail

BatchWriteItemRequest

public BatchWriteItemRequest()
Method Detail

getRequestItems

public java.util.Map<java.lang.String,java.util.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(java.util.Map<java.lang.String,java.util.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(java.util.Map<java.lang.String,java.util.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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