|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.moladb.model.AttributeValueUpdate
public class AttributeValueUpdate
Represents the attributes to be updated in the UpdateItem operation.
Field Summary | |
---|---|
static String |
ACTION_DELETE
|
static String |
ACTION_PUT
|
Constructor Summary | |
---|---|
AttributeValueUpdate()
Constructs a new AttributeValueUpdate object. |
|
AttributeValueUpdate(AttributeValue value,
String action)
Constructs a new AttributeValueUpdate object. |
Method Summary | |
---|---|
String |
getAction()
Get the update item operation with specified action. |
AttributeValue |
getValue()
The method get the new value set for the attribute waiting for updating. |
void |
setAction(String action)
Set the update item operation with specified action. |
void |
setValue(AttributeValue value)
The method set the new value for an attribute waiting for updating. |
protected Map<String,Object> |
toJsonObj()
|
String |
toString()
Return a string representation of the object. |
AttributeValueUpdate |
withAction(String action)
Set the update item operation with specified action. |
AttributeValueUpdate |
withValue(AttributeValue value)
The method set the new value for an attribute waiting for updating. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ACTION_PUT
public static final String ACTION_DELETE
Constructor Detail |
---|
public AttributeValueUpdate()
public AttributeValueUpdate(AttributeValue value, String action)
value
- The attribute value to be updated.action
- The specified action with the attribute.Method Detail |
---|
public void setValue(AttributeValue value)
value
- The new attribute value for an attribute waiting for updating.AttributeValue
public AttributeValueUpdate withValue(AttributeValue value)
value
- The new attribute value for an attribute waiting for updating.
AttributeValue
public AttributeValue getValue()
public void setAction(String action)
action
- The specified action to be set. Valid values are PUT and DELETE.public AttributeValueUpdate withAction(String action)
action
- The specified action to be set. Valid values are PUT and DELETE.
public String getAction()
public String toString()
toString
in class Object
protected Map<String,Object> toJsonObj()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |