@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutRequest extends Object implements Serializable, Cloneable, StructuredPojo
Represents a request to perform a PutItem
operation on an item.
Constructor and Description |
---|
PutRequest()
Default constructor for PutRequest object.
|
PutRequest(Map<String,AttributeValue> item)
Constructs a new PutRequest object.
|
Modifier and Type | Method and Description |
---|---|
PutRequest |
addItemEntry(String key,
AttributeValue value) |
PutRequest |
clearItemEntries()
Removes all the entries added into Item.
|
PutRequest |
clone() |
boolean |
equals(Object obj) |
Map<String,AttributeValue> |
getItem()
A map of attribute name to attribute values, representing the primary key of an item to be processed by
PutItem . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutRequest |
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 . |
public PutRequest()
public PutRequest(Map<String,AttributeValue> item)
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.public Map<String,AttributeValue> 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.
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.public 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
. 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.
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.public PutRequest 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
. 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.
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.public PutRequest addItemEntry(String key, AttributeValue value)
public PutRequest clearItemEntries()
public String toString()
toString
in class Object
Object.toString()
public PutRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.