Class CalendarEvent.Builder

java.lang.Object
co.elastic.clients.elasticsearch.ml.CalendarEvent.Builder
All Implemented Interfaces:
ObjectBuilder<CalendarEvent>
Enclosing class:
CalendarEvent

public static class CalendarEvent.Builder
extends java.lang.Object
implements ObjectBuilder<CalendarEvent>
Builder for CalendarEvent.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    CalendarEvent build()
    Builds a CalendarEvent.
    CalendarEvent.Builder calendarId​(java.lang.String value)
    API name: calendar_id
    CalendarEvent.Builder description​(java.lang.String value)
    Required - A description of the scheduled event.
    CalendarEvent.Builder endTime​(java.lang.String value)
    Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
    CalendarEvent.Builder eventId​(java.lang.String value)
    API name: event_id
    CalendarEvent.Builder startTime​(java.lang.String value)
    Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • calendarId

      public CalendarEvent.Builder calendarId​(@Nullable java.lang.String value)
      API name: calendar_id
    • eventId

      public CalendarEvent.Builder eventId​(@Nullable java.lang.String value)
      API name: event_id
    • description

      public CalendarEvent.Builder description​(java.lang.String value)
      Required - A description of the scheduled event.

      API name: description

    • endTime

      public CalendarEvent.Builder endTime​(java.lang.String value)
      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 CalendarEvent.Builder startTime​(java.lang.String value)
      Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.

      API name: start_time

    • build

      public CalendarEvent build()
      Builds a CalendarEvent.
      Specified by:
      build in interface ObjectBuilder<CalendarEvent>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.