Class PostRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.license.PostRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class PostRequest
extends RequestBase
implements JsonpSerializable
Updates the license for the cluster.
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

      @Nullable public final java.lang.Boolean acknowledge()
      Specifies whether you acknowledge the license changes.

      API name: acknowledge

    • license

      @Nullable public final License license()
      API name: license
    • licenses

      public final java.util.List<License> licenses()
      Required - A sequence of one or more JSON documents containing the license information.

      API name: licenses

    • 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)
    • setupPostRequestDeserializer

      protected static void setupPostRequestDeserializer​(ObjectDeserializer<PostRequest.Builder> op)