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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostRequest.Builder
Builder forPostRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PostRequest>
_DESERIALIZER
Json deserializer forPostRequest
static Endpoint<PostRequest,PostResponse,ErrorResponse>
_ENDPOINT
Endpoint "license.post
". -
Method Summary
Modifier and Type Method Description java.lang.Boolean
acknowledge()
Specifies whether you acknowledge the license changes.License
license()
API name:license
java.util.List<License>
licenses()
Required - A sequence of one or more JSON documents containing the license information.static PostRequest
of(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPostRequestDeserializer(ObjectDeserializer<PostRequest.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPostRequest
-
_ENDPOINT
Endpoint "license.post
".
-
-
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
API name:license
-
licenses
Required - A sequence of one or more JSON documents containing the license information.API name:
licenses
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPostRequestDeserializer
-