Class GetApiKeyRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.GetApiKeyRequest.Builder
All Implemented Interfaces:
ObjectBuilder<GetApiKeyRequest>
Enclosing class:
GetApiKeyRequest

public static class GetApiKeyRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<GetApiKeyRequest>
Builder for GetApiKeyRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      public final GetApiKeyRequest.Builder id​(@Nullable java.lang.String value)
      API key id of the API key to be retrieved

      API name: id

    • name

      public final GetApiKeyRequest.Builder name​(@Nullable java.lang.String value)
      API key name of the API key to be retrieved

      API name: name

    • owner

      public final GetApiKeyRequest.Builder owner​(@Nullable java.lang.Boolean value)
      flag to query API keys owned by the currently authenticated user

      API name: owner

    • realmName

      public final GetApiKeyRequest.Builder realmName​(@Nullable java.lang.String value)
      realm name of the user who created this API key to be retrieved

      API name: realm_name

    • username

      public final GetApiKeyRequest.Builder username​(@Nullable java.lang.String value)
      user name of the user who created this API key to be retrieved

      API name: username

    • build

      public GetApiKeyRequest build()
      Specified by:
      build in interface ObjectBuilder<GetApiKeyRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.