|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.moladb.model.PutRequest
public class PutRequest
Represents the input to perform a PutItem operation on an item.
Constructor Summary | |
---|---|
PutRequest()
Constructs a new PutRequest object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PutRequest()
Method Detail |
---|
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 WriteRequest
toString
in class Object
protected Map<String,Object> toJsonObj()
protected Map<String,Object> marshaller(Map<String,AttributeValue> item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |