Class GetOptions

java.lang.Object
codes.grow.packages.vault.secrets.GetOptions

public final class GetOptions extends Object
Options of read operations: a specific version and/or path.
  • Method Details

    • none

      public static GetOptions none()
      Returns the empty options (latest version, default path).
      Returns:
      the defaults
    • builder

      public static GetOptions.Builder builder()
      Starts a builder.
      Returns:
      a new builder
    • version

      public Optional<String> version()
      Returns the requested version.
      Returns:
      the version, or empty for the latest
    • path

      public Optional<String> path()
      Returns the path / mount / folder.
      Returns:
      the path, or empty for the provider default
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object