@Retention(value=RUNTIME) @Target(value={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 and Description |
---|---|
DynamoDBConvertedBool.Format |
value
The format type for converting to and from
String . |
public abstract DynamoDBConvertedBool.Format value
String
.Copyright © 2020. All rights reserved.