类 AttributeValueUpdate
- java.lang.Object
-
- com.baidubce.services.moladb.model.AttributeValueUpdate
-
public class AttributeValueUpdate extends Object
Represents the attributes to be updated in the UpdateItem operation.
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringACTION_DELETEstatic StringACTION_PUT
-
构造器概要
构造器 构造器 说明 AttributeValueUpdate()Constructs a new AttributeValueUpdate object.AttributeValueUpdate(AttributeValue value, String action)Constructs a new AttributeValueUpdate object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAction()Get the update item operation with specified action.AttributeValuegetValue()The method get the new value set for the attribute waiting for updating.voidsetAction(String action)Set the update item operation with specified action.voidsetValue(AttributeValue value)The method set the new value for an attribute waiting for updating.protected Map<String,Object>toJsonObj()StringtoString()Return a string representation of the object.AttributeValueUpdatewithAction(String action)Set the update item operation with specified action.AttributeValueUpdatewithValue(AttributeValue value)The method set the new value for an attribute waiting for updating.
-
-
-
构造器详细资料
-
AttributeValueUpdate
public AttributeValueUpdate()
Constructs a new AttributeValueUpdate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
-
AttributeValueUpdate
public AttributeValueUpdate(AttributeValue value, String action)
Constructs a new AttributeValueUpdate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- 参数:
value- The attribute value to be updated.action- The specified action with the attribute.
-
-
方法详细资料
-
setValue
public void setValue(AttributeValue value)
The method set the new value for an attribute waiting for updating.- 参数:
value- The new attribute value for an attribute waiting for updating.- 另请参阅:
AttributeValue
-
withValue
public AttributeValueUpdate withValue(AttributeValue value)
The method set the new value for an attribute waiting for updating.- 参数:
value- The new attribute value for an attribute waiting for updating.- 返回:
- 另请参阅:
AttributeValue
-
getValue
public AttributeValue getValue()
The method get the new value set for the attribute waiting for updating.- 返回:
- The new attribute value for an attribute waiting for updating.
-
setAction
public void setAction(String action)
Set the update item operation with specified action. Valid values are PUT and DELETE.- 参数:
action- The specified action to be set. Valid values are PUT and DELETE.
-
withAction
public AttributeValueUpdate withAction(String action)
Set the update item operation with specified action. Valid values are PUT and DELETE.- 参数:
action- The specified action to be set. Valid values are PUT and DELETE.- 返回:
- Returns a reference to this object so that method calls can be chained together.
-
getAction
public String getAction()
Get the update item operation with specified action. Valid values are PUT and DELETE.- 返回:
- The specified action to be set. Valid values are PUT and DELETE.
-
toString
public String toString()
Return a string representation of the object.
-
-