Package codes.grow.packages.vault
Class RoleConfig.Builder
java.lang.Object
codes.grow.packages.vault.RoleConfig.Builder
- Enclosing class:
RoleConfig
Builder of
RoleConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the settings.defaultTtl(Duration ttl) Sets the default lease TTL.Sets the maximum lease TTL.renewStatements(String... statements) Sets the renewal SQL.revocationStatements(String... statements) Sets the revocation SQL.rollbackStatements(String... statements) Sets the rollback SQL.
-
Method Details
-
revocationStatements
Sets the revocation SQL.- Parameters:
statements- statements- Returns:
- this builder
-
renewStatements
Sets the renewal SQL.- Parameters:
statements- statements- Returns:
- this builder
-
rollbackStatements
Sets the rollback SQL.- Parameters:
statements- statements- Returns:
- this builder
-
defaultTtl
Sets the default lease TTL.- Parameters:
ttl- TTL- Returns:
- this builder
-
maxTtl
Sets the maximum lease TTL.- Parameters:
ttl- TTL- Returns:
- this builder
-
build
Builds the settings.- Returns:
- the settings
-