Class GetSecretOptions.Builder

java.lang.Object
codes.grow.packages.infisical.GetSecretOptions.Builder
Enclosing class:
GetSecretOptions

public static final class GetSecretOptions.Builder extends Object
Builder of GetSecretOptions.
  • Method Details

    • projectId

      public GetSecretOptions.Builder projectId(String projectId)
      Sets the project id (default: the client's projectId).
      Parameters:
      projectId - the value
      Returns:
      this builder
    • environment

      public GetSecretOptions.Builder environment(String environment)
      Sets the environment slug (default: the client's environment).
      Parameters:
      environment - the value
      Returns:
      this builder
    • secretPath

      public GetSecretOptions.Builder secretPath(String secretPath)
      Sets the secret path (default: the client's secretPath).
      Parameters:
      secretPath - the value
      Returns:
      this builder
    • version

      public GetSecretOptions.Builder version(int 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

      public GetSecretOptions.Builder expandReferences(boolean expandReferences)
      Sets whether references are expanded (default true).
      Parameters:
      expandReferences - the value
      Returns:
      this builder
    • includeImports

      public GetSecretOptions.Builder includeImports(boolean includeImports)
      Sets whether the key is also found through secret imports (default true).
      Parameters:
      includeImports - the value
      Returns:
      this builder
    • viewSecretValue

      public GetSecretOptions.Builder viewSecretValue(boolean viewSecretValue)
      Sets whether the value is returned (default true); false returns metadata only.
      Parameters:
      viewSecretValue - the value
      Returns:
      this builder
    • build

      public GetSecretOptions build()
      Builds the options.
      Returns:
      the options