Class GrantApiKeyResponse

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

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

  • Method Details

    • of

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

      public final java.lang.String apiKey()
      Required - API name: api_key
    • id

      public final java.lang.String id()
      Required - API name: id
    • name

      public final java.lang.String name()
      Required - API name: name
    • expiration

      @Nullable public final java.lang.Long expiration()
      API name: expiration
    • encoded

      public final java.lang.String encoded()
      Required - 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
    • setupGrantApiKeyResponseDeserializer

      protected static void setupGrantApiKeyResponseDeserializer​(ObjectDeserializer<GrantApiKeyResponse.Builder> op)