|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.moladb.model.PutItemRequest
public class PutItemRequest
Represents the input of a PutItem operation.
Constructor Summary | |
---|---|
PutItemRequest()
Constructs a new PutItemRequest object. |
|
PutItemRequest(String name)
Constructs a new PutItemRequest object. |
Method Summary | |
---|---|
Map<String,AttributeValue> |
getItem()
Get the Item objects to be put in in table. |
String |
getTableName()
Get the name of the table to contain the item. |
protected Map<String,Object> |
marshallerItem(Map<String,AttributeValue> item)
|
void |
setItem(Map<String,AttributeValue> item)
Set the Item object to be put in in table. |
void |
setTableName(String tableName)
Set the name of the table to contain the item. |
String |
toString()
Return a string representation of request information. |
PutItemRequest |
withItem(Map<String,AttributeValue> item)
Set the Item object to be put in in table. |
PutItemRequest |
withRequestCredentials(BceCredentials credentials)
|
PutItemRequest |
withTableName(String tableName)
Set the name of the table to contain the item. |
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PutItemRequest()
public PutItemRequest(String name)
name
- The name of the table to contain the item.Method Detail |
---|
public String getTableName()
Constraints:
Length: 3 - 32
Pattern: [a-zA-Z0-9_.-]+
public void setTableName(String tableName)
Constraints:
Length: 3 - 32
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table to contain the item.public PutItemRequest withTableName(String tableName)
Constraints:
Length: 3 - 32
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table to contain the item.
public PutItemRequest 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 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 Map<String,AttributeValue> getItem()
public String toString()
toString
in class Object
protected Map<String,Object> marshallerItem(Map<String,AttributeValue> item)
public PutItemRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |