Class PostCalendarEventsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PostCalendarEventsResponse.Builder>
co.elastic.clients.elasticsearch.ml.PostCalendarEventsResponse.Builder
- All Implemented Interfaces:
WithJson<PostCalendarEventsResponse.Builder>
,ObjectBuilder<PostCalendarEventsResponse>
- Enclosing class:
- PostCalendarEventsResponse
public static class PostCalendarEventsResponse.Builder
extends WithJsonObjectBuilderBase<PostCalendarEventsResponse.Builder>
implements ObjectBuilder<PostCalendarEventsResponse>
Builder for
PostCalendarEventsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPostCalendarEventsResponse
.events
(CalendarEvent value, CalendarEvent... values) Required - API name:events
Required - API name:events
events
(List<CalendarEvent> list) Required - API name:events
protected PostCalendarEventsResponse.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
Required - API name:events
Adds all elements of
list
toevents
. -
events
public final PostCalendarEventsResponse.Builder events(CalendarEvent value, CalendarEvent... values) Required - API name:events
Adds one or more values to
events
. -
events
public final PostCalendarEventsResponse.Builder events(Function<CalendarEvent.Builder, ObjectBuilder<CalendarEvent>> fn) Required - API name:events
Adds a value to
events
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PostCalendarEventsResponse.Builder>
-
build
Builds aPostCalendarEventsResponse
.- Specified by:
build
in interfaceObjectBuilder<PostCalendarEventsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-