Class CalendarEvent
java.lang.Object
co.elastic.clients.elasticsearch.ml.CalendarEvent
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CalendarEvent extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CalendarEvent.Builder
Builder forCalendarEvent
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CalendarEvent>
_DESERIALIZER
Json deserializer forCalendarEvent
-
Method Summary
Modifier and Type Method Description java.lang.String
calendarId()
A string that uniquely identifies a calendar.java.lang.String
description()
Required - A description of the scheduled event.DateTime
endTime()
Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.java.lang.String
eventId()
API name:event_id
static CalendarEvent
of(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> 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
setupCalendarEventDeserializer(ObjectDeserializer<CalendarEvent.Builder> op)
DateTime
startTime()
Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCalendarEvent
-
-
Method Details
-
of
public static CalendarEvent of(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn) -
calendarId
@Nullable public final java.lang.String calendarId()A string that uniquely identifies a calendar.API name:
calendar_id
-
eventId
@Nullable public final java.lang.String eventId()API name:event_id
-
description
public final java.lang.String description()Required - A description of the scheduled event.API name:
description
-
endTime
Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.API name:
end_time
-
startTime
Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.API name:
start_time
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupCalendarEventDeserializer
-