com.amazonaws.services.simpledb.model
Class BatchDeleteAttributesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.simpledb.model.BatchDeleteAttributesRequest

public class BatchDeleteAttributesRequest
extends AmazonWebServiceRequest

Container for the parameters to the BatchDeleteAttributes operation.

Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies. This enables Amazon SimpleDB to optimize requests, which generally yields better throughput.

NOTE: If you specify BatchDeleteAttributes without attributes or values, all the attributes for the item are deleted. BatchDeleteAttributes is an idempotent operation; running it multiple times on the same item or attribute doesn't result in an error. The BatchDeleteAttributes operation succeeds or fails in its entirety. There are no partial deletes. You can execute multiple BatchDeleteAttributes operations and other operations in parallel. However, large numbers of concurrent BatchDeleteAttributes calls can result in Service Unavailable (503) responses. This operation is vulnerable to exceeding the maximum URL size when making a REST request using the HTTP GET method. This operation does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists.

The following limitations are enforced for this operation:

See Also:
AmazonSimpleDB.batchDeleteAttributes(BatchDeleteAttributesRequest)

Constructor Summary
BatchDeleteAttributesRequest()
          Default constructor for a new BatchDeleteAttributesRequest object.
BatchDeleteAttributesRequest(String domainName, List<DeletableItem> items)
          Constructs a new BatchDeleteAttributesRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDomainName()
          The name of the domain in which the attributes are being deleted.
 List<DeletableItem> getItems()
          A list of items on which to perform the operation.
 int hashCode()
           
 void setDomainName(String domainName)
          The name of the domain in which the attributes are being deleted.
 void setItems(Collection<DeletableItem> items)
          A list of items on which to perform the operation.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BatchDeleteAttributesRequest withDomainName(String domainName)
          The name of the domain in which the attributes are being deleted.
 BatchDeleteAttributesRequest withItems(Collection<DeletableItem> items)
          A list of items on which to perform the operation.
 BatchDeleteAttributesRequest withItems(DeletableItem... items)
          A list of items on which to perform the operation.
 
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

BatchDeleteAttributesRequest

public BatchDeleteAttributesRequest()
Default constructor for a new BatchDeleteAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


BatchDeleteAttributesRequest

public BatchDeleteAttributesRequest(String domainName,
                                    List<DeletableItem> items)
Constructs a new BatchDeleteAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
domainName - The name of the domain in which the attributes are being deleted.
items - A list of items on which to perform the operation.
Method Detail

getDomainName

public String getDomainName()
The name of the domain in which the attributes are being deleted.

Returns:
The name of the domain in which the attributes are being deleted.

setDomainName

public void setDomainName(String domainName)
The name of the domain in which the attributes are being deleted.

Parameters:
domainName - The name of the domain in which the attributes are being deleted.

withDomainName

public BatchDeleteAttributesRequest withDomainName(String domainName)
The name of the domain in which the attributes are being deleted.

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

Parameters:
domainName - The name of the domain in which the attributes are being deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

getItems

public List<DeletableItem> getItems()
A list of items on which to perform the operation.

Returns:
A list of items on which to perform the operation.

setItems

public void setItems(Collection<DeletableItem> items)
A list of items on which to perform the operation.

Parameters:
items - A list of items on which to perform the operation.

withItems

public BatchDeleteAttributesRequest withItems(DeletableItem... items)
A list of items on which to perform the operation.

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

Parameters:
items - A list of items on which to perform the operation.
Returns:
A reference to this updated object so that method calls can be chained together.

withItems

public BatchDeleteAttributesRequest withItems(Collection<DeletableItem> items)
A list of items on which to perform the operation.

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

Parameters:
items - A list of items on which to perform the operation.
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.