Class PostCalendarEventsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PostCalendarEventsRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class PostCalendarEventsRequest extends RequestBase implements JsonpSerializable
-
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,ElasticsearchError>
ENDPOINT
Endpoint "ml.post_calendar_events
". -
Constructor Summary
Constructors Constructor Description PostCalendarEventsRequest(PostCalendarEventsRequest.Builder builder)
PostCalendarEventsRequest(java.util.function.Function<PostCalendarEventsRequest.Builder,PostCalendarEventsRequest.Builder> fn)
-
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.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(DelegatingDeserializer<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,ElasticsearchError> ENDPOINTEndpoint "ml.post_calendar_events
".
-
-
Constructor Details
-
PostCalendarEventsRequest
-
PostCalendarEventsRequest
public PostCalendarEventsRequest(java.util.function.Function<PostCalendarEventsRequest.Builder,PostCalendarEventsRequest.Builder> fn)
-
-
Method Details
-
calendarId
public 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 may 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(DelegatingDeserializer<PostCalendarEventsRequest.Builder> op)
-