public class AttributeValueUpdate extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_DELETE |
static String |
ACTION_PUT |
| Constructor and Description |
|---|
AttributeValueUpdate()
Constructs a new AttributeValueUpdate object.
|
AttributeValueUpdate(AttributeValue value,
String action)
Constructs a new AttributeValueUpdate object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String ACTION_PUT
public static final String ACTION_DELETE
public AttributeValueUpdate()
public AttributeValueUpdate(AttributeValue value, String action)
value - The attribute value to be updated.action - The specified action with the attribute.public void setValue(AttributeValue value)
value - The new attribute value for an attribute waiting for updating.AttributeValuepublic AttributeValueUpdate withValue(AttributeValue value)
value - The new attribute value for an attribute waiting for updating.AttributeValuepublic 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()
Copyright © 2020. All rights reserved.