Class AutoGeneratedTimestampRecordExtension.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.extensions.AutoGeneratedTimestampRecordExtension.Builder
- Enclosing class:
AutoGeneratedTimestampRecordExtension
@NotThreadSafe
public static final class AutoGeneratedTimestampRecordExtension.Builder
extends Object
Builder for a
AutoGeneratedTimestampRecordExtension
-
Method Summary
Modifier and TypeMethodDescriptionSets the clock instance , else Clock.systemUTC() is used by default.build()
Builds anAutoGeneratedTimestampRecordExtension
based on the values stored in this builder
-
Method Details
-
baseClock
Sets the clock instance , else Clock.systemUTC() is used by default. Every time a new timestamp is generated this clock will be used to get the current point in time. If a custom clock is not specified, the default system clock will be used.- Parameters:
clock
- Clock instance to set the current timestamp.- Returns:
- This builder for method chaining.
-
build
Builds anAutoGeneratedTimestampRecordExtension
based on the values stored in this builder
-