Class VaultMetadataRequest.VaultMetadataRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultMetadataRequest.VaultMetadataRequestBuilder
- Enclosing class:
- VaultMetadataRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set the cas_required parameter totrue
to require the cas parameter to be set on all write requests.casRequired
(boolean casRequired) Set the cas_required parameter.customMetadata
(Map<String, String> customMetadata) Sets the custom Metadata for the metadata request.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
-
casRequired
Set the cas_required parameter totrue
to require the cas parameter to be set on all write requests.- Returns:
VaultMetadataRequest
- Since:
- 3.1
-
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
-
customMetadata
public VaultMetadataRequest.VaultMetadataRequestBuilder customMetadata(Map<String, String> customMetadata) Sets the custom Metadata for the metadata request.- Parameters:
customMetadata
-- Returns:
VaultMetadataRequest
- Since:
- 3.1
-
deleteVersionAfter
public VaultMetadataRequest.VaultMetadataRequestBuilder deleteVersionAfter(Duration deleteVersionAfter) Sets the deletion time for all new versions written to this key.- Parameters:
deleteVersionAfter
-- Returns:
VaultMetadataRequest
-
maxVersions
Set the number of versions to keep per key.- Parameters:
maxVersions
-- Returns:
VaultMetadataRequest
-
build
- Returns:
- a new
VaultMetadataRequest
-