类 UpdateItemRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.moladb.model.UpdateItemRequest
-
public class UpdateItemRequest extends AbstractBceRequest
Represents the input of a UpdateItem operation.
-
-
构造器概要
构造器 构造器 说明 UpdateItemRequest()Constructs a new UpdateItemRequest object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,AttributeValueUpdate>getAttributeUpdates()Get new attribute value with corresponding attribute name which will be updated.KeygetKey()Get key of the update item request.StringgetTableName()Get the name of the table containing the item to update.voidsetAttributeUpdates(Map<String,AttributeValueUpdate> attributes)Set new attribute value with corresponding attribute name which will be updated.voidsetKey(Key key)Set the Key of the item to be updated with the given Key.voidsetTableName(String name)Set the name of the table containing the item to update.StringtoString()Return a string representation of request information.UpdateItemRequestwithAttributeUpdates(Map<String,AttributeValueUpdate> attributes)Set new attribute value with corresponding attribute name which will be updated.UpdateItemRequestwithKey(Key key)Set the Key of the item to be updated with the given Key.UpdateItemRequestwithRequestCredentials(BceCredentials credentials)UpdateItemRequestwithTableName(String name)Set the name of the table containing the item to update.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
setTableName
public void setTableName(String name)
Set the name of the table containing the item to update.- 参数:
name- The name of the table containing the item to update.
-
getTableName
public String getTableName()
Get the name of the table containing the item to update.- 返回:
- The name of the table containing the item to update.
-
withTableName
public UpdateItemRequest withTableName(String name)
Set the name of the table containing the item to update.- 参数:
name- The name of the table containing the item to update.- 返回:
- A reference to this object so that method calls can be chained together.
-
withKey
public UpdateItemRequest withKey(Key key)
Set the Key of the item to be updated with the given Key.- 参数:
key- The Key of the item to be updated.- 返回:
- A reference to this object so that method calls can be chained together.
-
setKey
public void setKey(Key key)
Set the Key of the item to be updated with the given Key.- 参数:
key- The Key of the item to be updated.
-
getKey
public Key getKey()
Get key of the update item request.- 返回:
- Return the key of the item to be updated.
-
toString
public String toString()
Return a string representation of request information.
-
setAttributeUpdates
public void setAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
Set new attribute value with corresponding attribute name which will be updated.- 参数:
attributes- A map of attributes to update in an item.
-
withAttributeUpdates
public UpdateItemRequest withAttributeUpdates(Map<String,AttributeValueUpdate> attributes)
Set new attribute value with corresponding attribute name which will be updated.- 参数:
attributes- A map of attributes to update in an item.- 返回:
- A reference to this object so that method calls can be chained together.
-
getAttributeUpdates
public Map<String,AttributeValueUpdate> getAttributeUpdates()
Get new attribute value with corresponding attribute name which will be updated.- 返回:
- A map of attributes to update in an item.
-
withRequestCredentials
public UpdateItemRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
-