Class CloneApiKeyResponse

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

@JsonpDeserializable public class CloneApiKeyResponse extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • apiKey

      public final String apiKey()
      Required - The generated API key value for the cloned key.

      API name: api_key

    • expiration

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

      API name: expiration

    • id

      public final String id()
      Required - The unique ID of the cloned API key.

      API name: id

    • name

      public final String name()
      Required - The name of the cloned API key.

      API name: name

    • encoded

      public final 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 String toString()
      Overrides:
      toString in class Object
    • setupCloneApiKeyResponseDeserializer

      protected static void setupCloneApiKeyResponseDeserializer(ObjectDeserializer<CloneApiKeyResponse.Builder> op)