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

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

  • Method Details

    • of

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

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

      @Nullable public final Time expiration()
      API name: expiration
    • roleDescriptors

      public final java.util.List<java.util.Map<java.lang.String,​JsonData>> roleDescriptors()
      API name: role_descriptors
    • 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)
    • setupApiKeyDeserializer

      protected static void setupApiKeyDeserializer​(ObjectDeserializer<ApiKey.Builder> op)