Class Versioned.Metadata.MetadataBuilder
java.lang.Object
org.springframework.vault.support.Versioned.Metadata.MetadataBuilder
- Enclosing class:
- Versioned.Metadata
Builder for
Versioned.Metadata
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theVersioned.Metadata
object.Configure a created atInstant
.Configure a deleted atInstant
.Configure the version was destroyed.destroyed
(boolean destroyed) Configure the version was destroyed.version
(Versioned.Version version) Configure theVersioned.Version
.
-
Method Details
-
createdAt
Configure a created atInstant
.- Parameters:
createdAt
- timestamp at which the version was created, must not be null.- Returns:
this
Versioned.Metadata.MetadataBuilder
.
-
deletedAt
Configure a deleted atInstant
.- Parameters:
deletedAt
- timestamp at which the version was deleted, must not be null.- Returns:
this
Versioned.Metadata.MetadataBuilder
.
-
destroyed
Configure the version was destroyed.- Returns:
this
Versioned.Metadata.MetadataBuilder
.
-
destroyed
Configure the version was destroyed.- Parameters:
destroyed
-- Returns:
this
Versioned.Metadata.MetadataBuilder
.
-
version
Configure theVersioned.Version
.- Parameters:
version
- must not be null.- Returns:
this
Versioned.Metadata.MetadataBuilder
.
-
build
Build theVersioned.Metadata
object. RequirescreatedAt(Instant)
andversion(Versioned.Version)
to be set.- Returns:
- the
Versioned.Metadata
object.
-