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
.customMetadata
(Map<String, String> customMetadata) Configure the custom metadata map.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
.
-
customMetadata
Configure the custom metadata map.- Parameters:
customMetadata
- must not be null and not empty.- Returns:
this
Versioned.Metadata.MetadataBuilder
.- Since:
- 3.1
-
build
Build theVersioned.Metadata
object. RequirescreatedAt(Instant)
andversion(Versioned.Version)
to be set.- Returns:
- the
Versioned.Metadata
object.
-