public class PutRequest extends Object implements WriteRequest
| Constructor and Description |
|---|
PutRequest()
Constructs a new PutRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AttributeValue> |
getItem()
Get an item from this request.
|
protected Map<String,Object> |
marshaller(Map<String,AttributeValue> item) |
void |
setItem(Map<String,AttributeValue> item)
Set an item information with a put item request.
|
protected Map<String,Object> |
toJsonObj() |
String |
toString()
Return a string representation of the object.
|
PutRequest |
withItem(Map<String,AttributeValue> item)
Set an item information with a put item request.
|
public PutRequest()
public Map<String,AttributeValue> getItem()
public void setItem(Map<String,AttributeValue> item)
item - An container of attribute name/value pairs. Only the
primary key attributes are required; you can optionally provide other
attribute name-value pairs for the item. You must provide all of the attributes for the primary key. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.
If you specify any attributes that are part of an key, then the data types for those attributes must match those of the schema in the table's attribute definition.
public PutRequest withItem(Map<String,AttributeValue> item)
item - An container of attribute name/value pairs. Only the
primary key attributes are required; you can optionally provide other
attribute name-value pairs for the item. You must provide all of the attributes for the primary key. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.
If you specify any attributes that are part of an key, then the data types for those attributes must match those of the schema in the table's attribute definition.
public String toString()
toString in interface WriteRequesttoString in class ObjectCopyright © 2020. All rights reserved.