Class AtomicCounterTag
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.extensions.AtomicCounterTag
-
- All Implemented Interfaces:
StaticAttributeTag
public class AtomicCounterTag extends Object implements StaticAttributeTag
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUSTOM_METADATA_KEY_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AtomicCounterTagcreate()static AtomicCounterTagfromValues(long delta, long startValue)Consumer<StaticTableMetadata.Builder>modifyMetadata(String attributeName, AttributeValueType attributeValueType)A function that modifies an existingStaticTableSchema.Builderwhen this tag is applied to a specific attribute.static Map<String,AtomicCounter>resolve(TableMetadata tableMetadata)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.mapper.StaticAttributeTag
validateType
-
-
-
-
Field Detail
-
CUSTOM_METADATA_KEY_PREFIX
public static final String CUSTOM_METADATA_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static AtomicCounterTag create()
-
fromValues
public static AtomicCounterTag fromValues(long delta, long startValue)
-
resolve
public static Map<String,AtomicCounter> resolve(TableMetadata tableMetadata)
-
modifyMetadata
public Consumer<StaticTableMetadata.Builder> modifyMetadata(String attributeName, AttributeValueType attributeValueType)
Description copied from interface:StaticAttributeTagA function that modifies an existingStaticTableSchema.Builderwhen this tag is applied to a specific attribute. This will be used by theStaticTableSchemato capture all the metadata associated with tagged attributes when constructing the table schema.- Specified by:
modifyMetadatain interfaceStaticAttributeTag- Parameters:
attributeName- The name of the attribute this tag has been applied to.attributeValueType- The type of the attribute this tag has been applied to. This can be used for validation, for instance if you have an attribute tag that should only be associated with a string.- Returns:
- a consumer that modifies an existing
StaticTableSchema.Builder.
-
-