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 classCalendarEvent.BuilderBuilder forCalendarEvent. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CalendarEvent>_DESERIALIZERJson deserializer forCalendarEvent -
Method Summary
Modifier and Type Method Description java.lang.StringcalendarId()A string that uniquely identifies a calendar.java.lang.Stringdescription()Required - A description of the scheduled event.java.lang.StringendTime()Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.java.lang.StringeventId()API name:event_idstatic CalendarEventof(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> 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 voidsetupCalendarEventDeserializer(ObjectDeserializer<CalendarEvent.Builder> op)java.lang.StringstartTime()Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.java.lang.StringtoString()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
public final java.lang.String 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
public final java.lang.String 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCalendarEventDeserializer
-