Class EnumAttributeConverter<T extends Enum<T>>

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.EnumAttributeConverter<T>
All Implemented Interfaces:
AttributeConverter<T>

public final class EnumAttributeConverter<T extends Enum<T>> extends Object implements AttributeConverter<T>
A converter between an Enum and AttributeValue.

This stores values in DynamoDB as a string.

Use EnumAttributeConverter::create in order to use Enum::toString as the enum identifier

Use EnumAttributeConverter::createWithNameAsKeys in order to use Enum::name as the enum identifier

This can be created via create(Class).