public class UpdateItemRequest extends AbstractBceRequest
| Constructor and Description |
|---|
UpdateItemRequest()
Constructs a new UpdateItemRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AttributeValueUpdate> |
getAttributeUpdates()
Get new attribute value with corresponding attribute name which will be updated.
|
Key |
getKey()
Get key of the update item request.
|
String |
getTableName()
Get the name of the table containing the item to update.
|
void |
setAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
Set new attribute value with corresponding attribute name which will be updated.
|
void |
setKey(Key key)
Set the Key of the item to be updated with the given Key.
|
void |
setTableName(String name)
Set the name of the table containing the item to update.
|
String |
toString()
Return a string representation of request information.
|
UpdateItemRequest |
withAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
Set new attribute value with corresponding attribute name which will be updated.
|
UpdateItemRequest |
withKey(Key key)
Set the Key of the item to be updated with the given Key.
|
UpdateItemRequest |
withRequestCredentials(BceCredentials credentials) |
UpdateItemRequest |
withTableName(String name)
Set the name of the table containing the item to update.
|
getRequestCredentials, setRequestCredentialspublic UpdateItemRequest()
public void setTableName(String name)
name - The name of the table containing the item to update.public String getTableName()
public UpdateItemRequest withTableName(String name)
name - The name of the table containing the item to update.public UpdateItemRequest withKey(Key key)
key - The Key of the item to be updated.public void setKey(Key key)
key - The Key of the item to be updated.public Key getKey()
public String toString()
public void setAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
attributes - A map of attributes to update in an item.public UpdateItemRequest withAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
attributes - A map of attributes to update in an item.public Map<String,AttributeValueUpdate> getAttributeUpdates()
public UpdateItemRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestCopyright © 2023. All rights reserved.