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 class
PostCalendarEventsRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forPostCalendarEventsRequest
static Endpoint<PostCalendarEventsRequest,PostCalendarEventsResponse,ErrorResponse>
_ENDPOINT
Endpoint "ml.post_calendar_events
". -
Method Summary
Modifier and Type Method Description java.lang.String
calendarId()
Required - A string that uniquely identifies a calendar.java.util.List<CalendarEvent>
events()
Required - A list of one of more scheduled events.static PostCalendarEventsRequest
of(java.util.function.Function<PostCalendarEventsRequest.Builder,ObjectBuilder<PostCalendarEventsRequest>> 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
setupPostCalendarEventsRequestDeserializer(ObjectDeserializer<PostCalendarEventsRequest.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 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPostCalendarEventsRequestDeserializer
protected static void setupPostCalendarEventsRequestDeserializer(ObjectDeserializer<PostCalendarEventsRequest.Builder> op)
-