Class UpdateBehaviorTag
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.mapper.UpdateBehaviorTag
- All Implemented Interfaces:
StaticAttributeTag
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateBehaviorTag
fromUpdateBehavior
(UpdateBehavior updateBehavior) modifyMetadata
(String attributeName, AttributeValueType attributeValueType) A function that modifies an existingStaticTableSchema.Builder
when this tag is applied to a specific attribute.static UpdateBehavior
resolveForAttribute
(String attributeName, TableMetadata tableMetadata) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.mapper.StaticAttributeTag
validateType
-
Method Details
-
fromUpdateBehavior
-
resolveForAttribute
-
modifyMetadata
public Consumer<StaticTableMetadata.Builder> modifyMetadata(String attributeName, AttributeValueType attributeValueType) Description copied from interface:StaticAttributeTag
A function that modifies an existingStaticTableSchema.Builder
when this tag is applied to a specific attribute. This will be used by theStaticTableSchema
to capture all the metadata associated with tagged attributes when constructing the table schema.- Specified by:
modifyMetadata
in 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
.
-