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 classPostRequest.BuilderBuilder 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>_DESERIALIZERJson deserializer forPostRequeststatic Endpoint<PostRequest,PostResponse,ErrorResponse>_ENDPOINTEndpoint "license.post". -
Method Summary
Modifier and Type Method Description java.lang.Booleanacknowledge()Specifies whether you acknowledge the license changes.Licenselicense()API name:licensejava.util.List<License>licenses()Required - A sequence of one or more JSON documents containing the license information.static PostRequestof(java.util.function.Function<PostRequest.Builder,ObjectBuilder<PostRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPostRequestDeserializer(ObjectDeserializer<PostRequest.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPostRequestDeserializer
-