@Retention(RUNTIME) @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface DynamoDbConvertedBool
Boolean to the DynamoDB S type.
@DynamoDBConvertedBool(DynamoDBConvertedBool.Format.Y_N) public boolean isTesting()
The standard V1 and V2 compatible conversion schemas will, by default,
serialize booleans using the DynamoDB N type, with a value of '1'
representing 'true' and a value of '0' representing 'false'. To force the
N conversion in other schemas,
@DynamoDBTyped(DynamoDBAttributeType.N) public boolean isTesting()
The standard V2 conversion schema will by default serialize booleans
natively using the DynamoDB BOOL type. To force the native
BOOL conversion in other schemas,
@DynamoDBTyped(DynamoDBAttributeType.BOOL) public boolean isTesting()
May be used as a meta-annotation.
| Modifier and Type | Required Element | Description |
|---|---|---|
DynamoDbConvertedBool.Format |
value |
The format type for converting to and from
String. |
DynamoDbConvertedBool.Format value
String.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.