public class DeleteRequest
extends java.lang.Object
implements java.io.Serializable
Represents a request to perform a DeleteItem
operation on an
item.
Constructor and Description |
---|
DeleteRequest()
Default constructor for DeleteRequest object.
|
DeleteRequest(java.util.Map<java.lang.String,AttributeValue> key)
Constructs a new DeleteRequest object.
|
Modifier and Type | Method and Description |
---|---|
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<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<java.lang.String,AttributeValue> key)
A map of attribute name to attribute values, representing the primary key
of the item to delete.
|
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.
public 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. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.
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<java.lang.String,AttributeValue> 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.
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)
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.
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 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. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.