Class VaultMetadataRequest.VaultMetadataRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultMetadataRequest.VaultMetadataRequestBuilder
- Enclosing class:
- VaultMetadataRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
casRequired
(boolean casRequired) Set the cas_required parameter.deleteVersionAfter
(Duration deleteVersionAfter) Sets the deletion time for all new versions written to this key.maxVersions
(int maxVersions) Set the number of versions to keep per key.
-
Constructor Details
-
VaultMetadataRequestBuilder
public VaultMetadataRequestBuilder()
-
-
Method Details
-
maxVersions
Set the number of versions to keep per key.- Parameters:
maxVersions
-- Returns:
VaultMetadataRequest
-
casRequired
Set the cas_required parameter. If true all keys will require the cas parameter to be set on all write requests.- Parameters:
casRequired
-- Returns:
VaultMetadataRequest
-
deleteVersionAfter
public VaultMetadataRequest.VaultMetadataRequestBuilder deleteVersionAfter(Duration deleteVersionAfter) Sets the deletion time for all new versions written to this key.- Parameters:
deleteVersionAfter
-- Returns:
VaultMetadataRequest
-
build
- Returns:
- a new
VaultMetadataRequest
-