Class PutRequest
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a request to perform a PutItem operation on an item.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PutRequest object.PutRequest
(Map<String, AttributeValue> item) Constructs a new PutRequest object. -
Method Summary
Modifier and TypeMethodDescriptionaddItemEntry
(String key, AttributeValue value) Removes all the entries added into Item.clone()
boolean
getItem()
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem.int
hashCode()
void
setItem
(Map<String, AttributeValue> item) A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem.toString()
Returns a string representation of this object; useful for testing and debugging.withItem
(Map<String, AttributeValue> item) A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem.
-
Constructor Details
-
PutRequest
public PutRequest()Default constructor for PutRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
PutRequest
Constructs a new PutRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
item
- A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
-
-
Method Details
-
getItem
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
- Returns:
- A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
-
setItem
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
- Parameters:
item
- A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
-
withItem
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.
- Parameters:
item
- A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addItemEntry
-
clearItemEntries
Removes all the entries added into Item. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-