Class AtomicCounterTag
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.extensions.AtomicCounterTag
- All Implemented Interfaces:
StaticAttributeTag
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomicCounterTagcreate()static AtomicCounterTagfromValues(long delta, long startValue) 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, waitMethods inherited from interface software.amazon.awssdk.enhanced.dynamodb.mapper.StaticAttributeTag
validateType
-
Field Details
-
CUSTOM_METADATA_KEY_PREFIX
- See Also:
-
-
Method Details
-
create
-
fromValues
-
resolve
-
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.
-