Package codes.grow.packages.vault
Class EnableOptions.Builder
java.lang.Object
codes.grow.packages.vault.EnableOptions.Builder
- Enclosing class:
EnableOptions
Builder of
EnableOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.defaultLeaseTtl(Duration ttl) Sets the default lease TTL.description(String description) Sets the description.local(boolean local) Makes the mount local (not replicated).maxLeaseTtl(Duration ttl) Sets the maximum lease TTL.Adds an engine option (e.g.sealWrap(boolean sealWrap) Enables seal wrapping.
-
Method Details
-
description
Sets the description.- Parameters:
description- text- Returns:
- this builder
-
option
Adds an engine option (e.g.version=2for KV v2).- Parameters:
key- keyvalue- value- Returns:
- this builder
-
defaultLeaseTtl
Sets the default lease TTL.- Parameters:
ttl- TTL- Returns:
- this builder
-
maxLeaseTtl
Sets the maximum lease TTL.- Parameters:
ttl- TTL- Returns:
- this builder
-
local
Makes the mount local (not replicated).- Parameters:
local- flag- Returns:
- this builder
-
sealWrap
Enables seal wrapping.- Parameters:
sealWrap- flag- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-