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
  • Field Details

  • 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 DateTime 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 DateTime 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

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupCalendarEventDeserializer

      protected static void setupCalendarEventDeserializer​(ObjectDeserializer<CalendarEvent.Builder> op)