Package com.jcabi.dynamo
Class AttributeUpdates
- java.lang.Object
-
- com.jcabi.dynamo.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 Summary
Constructors Constructor Description AttributeUpdates()Private ctor.AttributeUpdates(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)Private ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>>entrySet()com.amazonaws.services.dynamodbv2.model.AttributeValueUpdateget(Object key)booleanisEmpty()Set<String>keySet()com.amazonaws.services.dynamodbv2.model.AttributeValueUpdateput(String key, com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)voidputAll(Map<? extends String,? extends com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)com.amazonaws.services.dynamodbv2.model.AttributeValueUpdateremove(Object key)intsize()StringtoString()Collection<com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>values()AttributeUpdateswith(String name, com.amazonaws.services.dynamodbv2.model.AttributeValue value)With this attribute.AttributeUpdateswith(String name, com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)With this attribute.AttributeUpdateswith(String name, Object value)With this attribute.AttributeUpdateswith(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)With these AttributeUpdates.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
with
public AttributeUpdates with(String name, com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)
With this attribute.- Parameters:
name- Attribute namevalue- The value- Returns:
- AttributeUpdates
-
with
public AttributeUpdates with(String name, com.amazonaws.services.dynamodbv2.model.AttributeValue value)
With this attribute.- Parameters:
name- Attribute namevalue- The value- Returns:
- AttributeUpdates
- Since:
- 0.14.3
-
with
public AttributeUpdates with(String name, Object value)
With this attribute.- Parameters:
name- Attribute namevalue- 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()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>
-
get
public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate get(Object key)
-
values
public Collection<com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> values()
-
entrySet
public Set<Map.Entry<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate>> entrySet()
-
put
public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate put(String key, com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate value)
-
remove
public com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate remove(Object key)
-
putAll
public void putAll(Map<? extends String,? extends com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> map)
-
-