Class VersionedRecordExtension.Builder
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.extensions.VersionedRecordExtension.Builder
-
- Enclosing class:
- VersionedRecordExtension
@NotThreadSafe public static final class VersionedRecordExtension.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionedRecordExtension
build()
VersionedRecordExtension.Builder
incrementBy(Long incrementBy)
Sets the amount to increment the version by with each subsequent update.VersionedRecordExtension.Builder
startAt(Long startAt)
Sets the startAt used to compare if a record is the initial version of a record.
-
-
-
Method Detail
-
startAt
public VersionedRecordExtension.Builder startAt(Long 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
public VersionedRecordExtension.Builder incrementBy(Long 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
public VersionedRecordExtension build()
-
-