public class PutItemRequest extends AbstractBceRequest
| Constructor and Description |
|---|
PutItemRequest()
Constructs a new PutItemRequest object.
|
PutItemRequest(String name)
Constructs a new PutItemRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getRequestCredentials, setRequestCredentialspublic PutItemRequest()
public PutItemRequest(String name)
name - The name of the table to contain the item.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()
public PutItemRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestCopyright © 2021. All rights reserved.