Class CreateApiKeyResponse

java.lang.Object
co.elastic.clients.elasticsearch.security.CreateApiKeyResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class CreateApiKeyResponse
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static CreateApiKeyResponse of​(java.util.function.Function<CreateApiKeyResponse.Builder,​ObjectBuilder<CreateApiKeyResponse>> fn)
    • apiKey

      public final java.lang.String apiKey()
      Required - Generated API key.

      API name: api_key

    • expiration

      @Nullable public final java.lang.Long expiration()
      Expiration in milliseconds for the API key.

      API name: expiration

    • id

      public final java.lang.String id()
      Required - Unique ID for this API key.

      API name: id

    • name

      public final java.lang.String name()
      Required - Specifies the name for this API key.

      API name: name

    • encoded

      public final java.lang.String encoded()
      Required - API key credentials which is the base64-encoding of the UTF-8 representation of id and api_key joined by a colon (:).

      API name: encoded

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupCreateApiKeyResponseDeserializer

      protected static void setupCreateApiKeyResponseDeserializer​(ObjectDeserializer<CreateApiKeyResponse.Builder> op)