All Implemented Interfaces:
ApiRequest<GetKv2.Request>
Enclosing class:
GetKv2

public static final class GetKv2.Request extends VaultRequest<GetKv2.Request>
Request object. Can be configured with additional headers, query parameters etc.
  • Method Details

    • builder

      public static GetKv2.Request builder()
      Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method is ApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory) used by the RestApi.
      Returns:
      new request builder
    • create

      public static GetKv2.Request create(String path)
      Create a request for path.
      Parameters:
      path - path of the secret to get
      Returns:
      new request
    • path

      public GetKv2.Request path(String path)
      Path of the secret to get.
      Parameters:
      path - secret's path
      Returns:
      updated request
    • version

      public GetKv2.Request version(int version)
      Version of the secret to get.
      Parameters:
      version - secret's version
      Returns:
      updated request