Class UpdateBehaviorTag
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.mapper.UpdateBehaviorTag
- All Implemented Interfaces:
StaticAttributeTag
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateBehaviorTagfromUpdateBehavior(UpdateBehavior updateBehavior) modifyMetadata(String attributeName, AttributeValueType attributeValueType) A function that modifies an existingStaticTableSchema.Builderwhen this tag is applied to a specific attribute.static UpdateBehaviorresolveForAttribute(String attributeName, 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
-
Method Details
-
fromUpdateBehavior
-
resolveForAttribute
-
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.
-