public class DeleteRequest extends Object implements Serializable
Represents a request to perform a DeleteItem operation on an item.
Constructor and Description |
---|
DeleteRequest()
Default constructor for a new DeleteRequest object.
|
DeleteRequest(Map<String,AttributeValue> key)
Constructs a new DeleteRequest object.
|
Modifier and Type | Method and Description |
---|---|
DeleteRequest |
addKeyEntry(String key,
AttributeValue value)
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
DeleteRequest |
clearKeyEntries()
Removes all the entries added into Key.
|
boolean |
equals(Object obj) |
Map<String,AttributeValue> |
getKey()
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
int |
hashCode() |
void |
setKey(Map.Entry<String,AttributeValue> hashKey,
Map.Entry<String,AttributeValue> rangeKey)
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
void |
setKey(Map<String,AttributeValue> key)
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteRequest |
withKey(Map.Entry<String,AttributeValue> hashKey,
Map.Entry<String,AttributeValue> rangeKey)
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
DeleteRequest |
withKey(Map<String,AttributeValue> key)
A map of attribute name to attribute values, representing the primary
key of the item to delete.
|
public DeleteRequest()
public DeleteRequest(Map<String,AttributeValue> key)
key
- A map of attribute name to attribute values, representing
the primary key of the item to delete. All of the table's primary key
attributes must be specified, and their data types must match those of
the table's key schema.public Map<String,AttributeValue> getKey()
public void setKey(Map<String,AttributeValue> key)
key
- A map of attribute name to attribute values, representing the primary
key of the item to delete. All of the table's primary key attributes
must be specified, and their data types must match those of the
table's key schema.public DeleteRequest withKey(Map<String,AttributeValue> key)
Returns a reference to this object so that method calls can be chained together.
key
- A map of attribute name to attribute values, representing the primary
key of the item to delete. All of the table's primary key attributes
must be specified, and their data types must match those of the
table's key schema.public void setKey(Map.Entry<String,AttributeValue> hashKey, Map.Entry<String,AttributeValue> rangeKey) throws IllegalArgumentException
This method accepts the hashKey, rangeKey of Key as
java.util.Map.Entry
hashKey
- Primary hash key.rangeKey
- Primary range key. (null if it a hash-only table)IllegalArgumentException
public DeleteRequest withKey(Map.Entry<String,AttributeValue> hashKey, Map.Entry<String,AttributeValue> rangeKey) throws IllegalArgumentException
This method accepts the hashKey, rangeKey of Key as
java.util.Map.Entry
Returns a reference to this object so that method calls can be chained together.
hashKey
- Primary hash key.rangeKey
- Primary range key. (null if it a hash-only table)IllegalArgumentException
public DeleteRequest addKeyEntry(String key, AttributeValue value)
The method adds a new key-value pair into Key parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Key.value
- The corresponding value of the entry to be added into Key.public DeleteRequest clearKeyEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.