Class CalendarEvent.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CalendarEvent.Builder>
co.elastic.clients.elasticsearch.ml.CalendarEvent.Builder
- All Implemented Interfaces:
WithJson<CalendarEvent.Builder>,ObjectBuilder<CalendarEvent>
- Enclosing class:
- CalendarEvent
public static class CalendarEvent.Builder extends WithJsonObjectBuilderBase<CalendarEvent.Builder> implements ObjectBuilder<CalendarEvent>
Builder for
CalendarEvent.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CalendarEventbuild()Builds aCalendarEvent.CalendarEvent.BuildercalendarId(java.lang.String value)A string that uniquely identifies a calendar.CalendarEvent.Builderdescription(java.lang.String value)Required - A description of the scheduled event.CalendarEvent.BuilderendTime(java.lang.String value)Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.CalendarEvent.BuildereventId(java.lang.String value)API name:event_idprotected CalendarEvent.Builderself()CalendarEvent.BuilderstartTime(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 co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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
A string that uniquely identifies a calendar.API name:
calendar_id -
eventId
API name:event_id -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CalendarEvent.Builder>
-
build
Builds aCalendarEvent.- Specified by:
buildin interfaceObjectBuilder<CalendarEvent>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-