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 Details

    • 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 Details

    • 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()
    • getAttributeValues

      public Set<Object> getAttributeValues()
    • getValue

      public Object getValue()