Package codes.grow.packages.infisical
Class GetSecretOptions.Builder
java.lang.Object
codes.grow.packages.infisical.GetSecretOptions.Builder
- Enclosing class:
GetSecretOptions
Builder of
GetSecretOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.environment(String environment) Sets the environment slug (default: the client's environment).expandReferences(boolean expandReferences) Sets whether references are expanded (default true).includeImports(boolean includeImports) Sets whether the key is also found through secret imports (default true).Sets the project id (default: the client's projectId).secretPath(String secretPath) Sets the secret path (default: the client's secretPath).type(SecretType type) Sets the secret type: shared (default) or the caller's personal override.version(int version) Sets an older version to read (0, the default, reads the current one).viewSecretValue(boolean viewSecretValue) Sets whether the value is returned (default true); false returns metadata only.
-
Method Details
-
projectId
Sets the project id (default: the client's projectId).- Parameters:
projectId- the value- Returns:
- this builder
-
environment
Sets the environment slug (default: the client's environment).- Parameters:
environment- the value- Returns:
- this builder
-
secretPath
Sets the secret path (default: the client's secretPath).- Parameters:
secretPath- the value- Returns:
- this builder
-
version
Sets an older version to read (0, the default, reads the current one).- Parameters:
version- the value- Returns:
- this builder
-
type
Sets the secret type: shared (default) or the caller's personal override.- Parameters:
type- the value- Returns:
- this builder
-
expandReferences
Sets whether references are expanded (default true).- Parameters:
expandReferences- the value- Returns:
- this builder
-
includeImports
Sets whether the key is also found through secret imports (default true).- Parameters:
includeImports- the value- Returns:
- this builder
-
viewSecretValue
Sets whether the value is returned (default true); false returns metadata only.- Parameters:
viewSecretValue- the value- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-