Class PostCalendarEventsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PostCalendarEventsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PostCalendarEventsRequest
extends RequestBase
implements JsonpSerializable
Add scheduled events to the calendar.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PostCalendarEventsRequest>Json deserializer forPostCalendarEventsRequestEndpoint "ml.post_calendar_events". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - A string that uniquely identifies a calendar.final List<CalendarEvent>events()Required - A list of one of more scheduled events.static PostCalendarEventsRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupPostCalendarEventsRequestDeserializer(ObjectDeserializer<PostCalendarEventsRequest.Builder> op) Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPostCalendarEventsRequest -
_ENDPOINT
public static final Endpoint<PostCalendarEventsRequest,PostCalendarEventsResponse, _ENDPOINTErrorResponse> Endpoint "ml.post_calendar_events".
-
-
Method Details
-
of
public static PostCalendarEventsRequest of(Function<PostCalendarEventsRequest.Builder, ObjectBuilder<PostCalendarEventsRequest>> fn) -
calendarId
Required - A string that uniquely identifies a calendar.API name:
calendar_id -
events
Required - A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.API name:
events -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPostCalendarEventsRequestDeserializer
protected static void setupPostCalendarEventsRequestDeserializer(ObjectDeserializer<PostCalendarEventsRequest.Builder> op)
-