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
Adds scheduled events to a calendar.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostCalendarEventsRequest.BuilderBuilder forPostCalendarEventsRequest.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<PostCalendarEventsRequest>_DESERIALIZERJson deserializer forPostCalendarEventsRequeststatic Endpoint<PostCalendarEventsRequest,PostCalendarEventsResponse,ErrorResponse>_ENDPOINTEndpoint "ml.post_calendar_events". -
Method Summary
Modifier and Type Method Description java.lang.StringcalendarId()Required - A string that uniquely identifies a calendar.java.util.List<CalendarEvent>events()Required - A list of one of more scheduled events.static PostCalendarEventsRequestof(java.util.function.Function<PostCalendarEventsRequest.Builder,ObjectBuilder<PostCalendarEventsRequest>> 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 voidsetupPostCalendarEventsRequestDeserializer(ObjectDeserializer<PostCalendarEventsRequest.Builder> op)Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPostCalendarEventsRequest -
_ENDPOINT
public static final Endpoint<PostCalendarEventsRequest,PostCalendarEventsResponse,ErrorResponse> _ENDPOINTEndpoint "ml.post_calendar_events".
-
-
Method Details
-
of
public static PostCalendarEventsRequest of(java.util.function.Function<PostCalendarEventsRequest.Builder,ObjectBuilder<PostCalendarEventsRequest>> fn) -
calendarId
public final java.lang.String 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)
-