Class AttributeUpdates

  • All Implemented Interfaces:
    Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>

    @Immutable
    @Loggable(1)
    public final class AttributeUpdates
    extends Object
    implements Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
    DynamoDB item attribute updates.
    Since:
    0.12
    • Constructor Detail

      • AttributeUpdates

        public AttributeUpdates()
        Private ctor.
      • AttributeUpdates

        public AttributeUpdates​(Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)
        Private ctor.
        Parameters:
        map - Map of them
    • Method Detail

      • with

        public AttributeUpdates with​(String name,
                                     com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)
        With this attribute.
        Parameters:
        name - Attribute name
        value - The value
        Returns:
        AttributeUpdates
      • with

        public AttributeUpdates with​(String name,
                                     com.amazonaws.services.dynamodbv2.model.AttributeValue value)
        With this attribute.
        Parameters:
        name - Attribute name
        value - The value
        Returns:
        AttributeUpdates
        Since:
        0.14.3
      • with

        public AttributeUpdates with​(String name,
                                     Object value)
        With this attribute.
        Parameters:
        name - Attribute name
        value - The value
        Returns:
        AttributeUpdates
        Since:
        0.14.3
      • with

        public AttributeUpdates with​(Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)
        With these AttributeUpdates.
        Parameters:
        map - AttributeUpdates to add
        Returns:
        AttributeUpdates
      • size

        public int size()
        Specified by:
        size in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • containsValue

        public boolean containsValue​(Object value)
        Specified by:
        containsValue in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • get

        public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate get​(Object key)
        Specified by:
        get in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • keySet

        public Set<String> keySet()
        Specified by:
        keySet in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • values

        public Collection<com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> values()
        Specified by:
        values in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • entrySet

        public Set<Map.Entry<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>> entrySet()
        Specified by:
        entrySet in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • put

        public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate put​(String key,
                                                                                com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)
        Specified by:
        put in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • remove

        public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate remove​(Object key)
        Specified by:
        remove in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • putAll

        public void putAll​(Map<? extends String,​? extends com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)
        Specified by:
        putAll in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>