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 PostCalendarEventsRequest
build()
Builds aPostCalendarEventsRequest
.PostCalendarEventsRequest.Builder
calendarId(java.lang.String value)
Required - A string that uniquely identifies a calendar.PostCalendarEventsRequest.Builder
events(CalendarEvent value, CalendarEvent... values)
Required - A list of one of more scheduled events.PostCalendarEventsRequest.Builder
events(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)
Required - A list of one of more scheduled events.PostCalendarEventsRequest.Builder
events(java.util.List<CalendarEvent> list)
Required - A list of one of more scheduled events.protected PostCalendarEventsRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
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:
events
Adds all elements of
list
toevents
. -
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:
events
Adds 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:
events
Adds a value to
events
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PostCalendarEventsRequest.Builder>
-
build
Builds aPostCalendarEventsRequest
.- Specified by:
build
in interfaceObjectBuilder<PostCalendarEventsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-