Class PostCalendarEventsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PostCalendarEventsRequest.Builder>
co.elastic.clients.elasticsearch.ml.PostCalendarEventsRequest.Builder
- All Implemented Interfaces:
WithJson<PostCalendarEventsRequest.Builder>,ObjectBuilder<PostCalendarEventsRequest>
- Enclosing class:
- PostCalendarEventsRequest
public static class PostCalendarEventsRequest.Builder extends WithJsonObjectBuilderBase<PostCalendarEventsRequest.Builder> implements ObjectBuilder<PostCalendarEventsRequest>
Builder for
PostCalendarEventsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PostCalendarEventsRequestbuild()Builds aPostCalendarEventsRequest.PostCalendarEventsRequest.BuildercalendarId(java.lang.String value)Required - A string that uniquely identifies a calendar.PostCalendarEventsRequest.Builderevents(CalendarEvent value, CalendarEvent... values)Required - A list of one of more scheduled events.PostCalendarEventsRequest.Builderevents(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)Required - A list of one of more scheduled events.PostCalendarEventsRequest.Builderevents(java.util.List<CalendarEvent> list)Required - A list of one of more scheduled events.protected PostCalendarEventsRequest.Builderself()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
Required - A string that uniquely identifies a calendar.API name:
calendar_id -
events
Required - A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.API name:
eventsAdds all elements of
listtoevents. -
events
public final PostCalendarEventsRequest.Builder events(CalendarEvent value, CalendarEvent... values)Required - A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.API name:
eventsAdds one or more values to
events. -
events
public final PostCalendarEventsRequest.Builder events(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)Required - A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.API name:
eventsAdds a value to
eventsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PostCalendarEventsRequest.Builder>
-
build
Builds aPostCalendarEventsRequest.- Specified by:
buildin interfaceObjectBuilder<PostCalendarEventsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-