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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PostCalendarEventsResponse
build()
Builds aPostCalendarEventsResponse
.PostCalendarEventsResponse.Builder
events(CalendarEvent value, CalendarEvent... values)
Required - API name:events
PostCalendarEventsResponse.Builder
events(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)
Required - API name:events
PostCalendarEventsResponse.Builder
events(java.util.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
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
-
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(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-