Class VersionedRecordExtension.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.extensions.VersionedRecordExtension.Builder
- Enclosing class:
VersionedRecordExtension
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
incrementBy
(Long incrementBy) Sets the amount to increment the version by with each subsequent update.Sets the startAt used to compare if a record is the initial version of a record.
-
Method Details
-
startAt
Sets the startAt used to compare if a record is the initial version of a record. Default value -0
.- Parameters:
startAt
- the starting value for version comparison, must not be negative- Returns:
- the builder instance
-
incrementBy
Sets the amount to increment the version by with each subsequent update. Default value -1
.- Parameters:
incrementBy
- the amount to increment the version by, must be greater than 0- Returns:
- the builder instance
-
build
-