Class CharacterAttributeConverter

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.attribute.CharacterAttributeConverter
All Implemented Interfaces:
AttributeConverter<Character>, PrimitiveConverter<Character>

@ThreadSafe @Immutable public final class CharacterAttributeConverter extends Object implements AttributeConverter<Character>, PrimitiveConverter<Character>
A converter between Character and AttributeValue.

This stores values in DynamoDB as a single-character string.

This only supports reading a single character from DynamoDB. Any string longer than 1 character will cause a RuntimeException during conversion.

This can be created via create().