Class AttributeUpdate
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.AttributeUpdate
-
public class AttributeUpdate extends Object
Used to update an attribute. Each instance of AttributeUpdate includes the name, action and new value to be used for modifying the attribute.Typical usages:
new AttributeUpdate("strAttr").put("attrValue");
new AttributeUpdate("intAttr").addNumeric(42);
...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_UpdateItem.html#DDB-UpdateItem-request-AttributeUpdates
-
-
Constructor Summary
Constructors Constructor Description AttributeUpdate(String attributeName)
Used to update an attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeUpdate
addElements(Object... newElements)
AttributeUpdate
addNumeric(Number value)
AttributeUpdate
delete()
AttributeAction
getAction()
String
getAttributeName()
Set<Object>
getAttributeValues()
Object
getValue()
AttributeUpdate
put(Object attributeValue)
Used to update an attribute.AttributeUpdate
removeElements(Object... elementsToBeRemoved)
-
-
-
Constructor Detail
-
AttributeUpdate
public AttributeUpdate(String attributeName)
Used to update an attribute. Each instance of AttributeUpdate includes the name, action and new value to be used for modifying the attribute.Typical usages:
new AttributeUpdate("strAttr").put("attrValue");
new AttributeUpdate("intAttr").addNumeric(42);
...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_UpdateItem.html#DDB-UpdateItem-request-AttributeUpdates
-
-
Method Detail
-
put
public AttributeUpdate put(Object attributeValue)
Used to update an attribute. Each instance of AttributeUpdate includes the name, action and new value to be used for modifying the attribute.Typical usages:
new AttributeUpdate("strAttr").put("attrValue");
new AttributeUpdate("intAttr").addNumeric(42);
...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_UpdateItem.html#DDB-UpdateItem-request-AttributeUpdates
-
delete
public AttributeUpdate delete()
-
removeElements
public AttributeUpdate removeElements(Object... elementsToBeRemoved)
-
addNumeric
public AttributeUpdate addNumeric(Number value)
-
addElements
public AttributeUpdate addElements(Object... newElements)
-
getAttributeName
public String getAttributeName()
-
getAction
public AttributeAction getAction()
-
getValue
public Object getValue()
-
-