Annotation Type DynamoDbPreserveEmptyObject


@SdkPublicApi @Target(METHOD) @Retention(RUNTIME) public @interface DynamoDbPreserveEmptyObject
Specifies that when calling TableSchema.mapToItem(Map), a separate DynamoDB object that is stored in the current object should be initialized as empty class if all fields in this class are null. Note that if this annotation is absent, the object will be null.

Example using DynamoDbPreserveEmptyObject: