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

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

    • builder

      public static DestroyKv2.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
    • path

      public DestroyKv2.Request path(String path)
      Path of the secret to destroy.
      Parameters:
      path - secret's path
      Returns:
      updated request
    • versions

      public DestroyKv2.Request versions(int... versions)
      Version(s) of the secret to destroy.
      Parameters:
      versions - secret's version(s)
      Returns:
      updated request
    • addVersion

      public DestroyKv2.Request addVersion(int version)
      Add a secret version to destroy.
      Parameters:
      version - secret's version
      Returns:
      updated request