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

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

    • builder

      public static CreateKv2.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
    • secretValues

      public CreateKv2.Request secretValues(Map<String,String> values)
      Values of the secret being created.
      Parameters:
      values - values to use
      Returns:
      updated request
    • addSecretValue

      public CreateKv2.Request addSecretValue(String key, String value)
      Add a new secret value to the secret being created.
      Parameters:
      key - key of the value
      value - value
      Returns:
      updated request
    • path

      public CreateKv2.Request path(String path)
      Secret path.
      Parameters:
      path - path of the secret to create
      Returns:
      updated request