java.lang.Object
io.github.jopenlibs.vault.api.WriteOptions
Additional options that may be set as part of K/V V2 write operation.
Construct instances of this class using a builder pattern, calling setter methods for each
value and then terminating with a call to build().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize the options (terminating method in the builder pattern)checkAndSet(Long version) Enable check and set (CAS) optionbooleanisEmpty()Set an option to a value
-
Field Details
-
CHECK_AND_SET_KEY
- See Also:
-
-
Constructor Details
-
WriteOptions
public WriteOptions()
-
-
Method Details
-
checkAndSet
Enable check and set (CAS) option- Parameters:
version- current version of the secret- Returns:
- updated options ready for additional builder-pattern calls or else finalization with the build() method
-
setOption
Set an option to a value- Parameters:
name- option namevalue- option value- Returns:
- updated options ready for additional builder-pattern calls or else finalization with the build() method
-
build
Finalize the options (terminating method in the builder pattern)- Returns:
- this object, with all available config options parsed and loaded
-
getOptionsMap
- Returns:
- options as a Map
-
isEmpty
public boolean isEmpty()- Returns:
- true if no options are set, false otherwise
-