Class 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 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

      • getAttributeName

        public String getAttributeName()
      • getAttributeValues

        public Set<Object> getAttributeValues()
      • getValue

        public Object getValue()