|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.DeleteRequest
public class DeleteRequest
Represents a request to perform a DeleteItem operation on an item.
Constructor Summary | |
---|---|
DeleteRequest()
Default constructor for a new DeleteRequest object. |
|
DeleteRequest(java.util.Map<java.lang.String,AttributeValue> key)
Constructs a new DeleteRequest object. |
Method Summary | |
---|---|
DeleteRequest |
addKeyEntry(java.lang.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(java.lang.Object obj)
|
java.util.Map<java.lang.String,AttributeValue> |
getKey()
A map of attribute name to attribute values, representing the primary key of the item to delete. |
int |
hashCode()
|
void |
setKey(java.util.Map.Entry<java.lang.String,AttributeValue> hashKey,
java.util.Map.Entry<java.lang.String,AttributeValue> rangeKey)
A map of attribute name to attribute values, representing the primary key of the item to delete. |
void |
setKey(java.util.Map<java.lang.String,AttributeValue> key)
A map of attribute name to attribute values, representing the primary key of the item to delete. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DeleteRequest |
withKey(java.util.Map.Entry<java.lang.String,AttributeValue> hashKey,
java.util.Map.Entry<java.lang.String,AttributeValue> rangeKey)
A map of attribute name to attribute values, representing the primary key of the item to delete. |
DeleteRequest |
withKey(java.util.Map<java.lang.String,AttributeValue> key)
A map of attribute name to attribute values, representing the primary key of the item to delete. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteRequest()
public DeleteRequest(java.util.Map<java.lang.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.Method Detail |
---|
public java.util.Map<java.lang.String,AttributeValue> getKey()
public void setKey(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.util.Map.Entry<java.lang.String,AttributeValue> hashKey, java.util.Map.Entry<java.lang.String,AttributeValue> rangeKey) throws java.lang.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)
java.lang.IllegalArgumentException
public DeleteRequest withKey(java.util.Map.Entry<java.lang.String,AttributeValue> hashKey, java.util.Map.Entry<java.lang.String,AttributeValue> rangeKey) throws java.lang.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)
java.lang.IllegalArgumentException
public DeleteRequest addKeyEntry(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |