Class PostCalendarEventsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<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 RequestBase.AbstractBuilder<PostCalendarEventsRequest.Builder>
implements ObjectBuilder<PostCalendarEventsRequest>
Builder for
PostCalendarEventsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPostCalendarEventsRequest.calendarId(String value) Required - A string that uniquely identifies a calendar.events(CalendarEvent value, CalendarEvent... values) Required - A list of one of more scheduled events.Required - A list of one of more scheduled events.events(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, _mapPutAll
-
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
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(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 classRequestBase.AbstractBuilder<PostCalendarEventsRequest.Builder>
-
build
Builds aPostCalendarEventsRequest.- Specified by:
buildin interfaceObjectBuilder<PostCalendarEventsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-