Class UpdateBehaviorTag
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.mapper.UpdateBehaviorTag
-
- All Implemented Interfaces:
StaticAttributeTag
public class UpdateBehaviorTag extends Object implements StaticAttributeTag
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateBehaviorTagfromUpdateBehavior(UpdateBehavior updateBehavior)Consumer<StaticTableMetadata.Builder>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, wait
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.mapper.StaticAttributeTag
validateType
-
-
-
-
Method Detail
-
fromUpdateBehavior
public static UpdateBehaviorTag fromUpdateBehavior(UpdateBehavior updateBehavior)
-
resolveForAttribute
public static UpdateBehavior resolveForAttribute(String attributeName, 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.
-
-