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 PostCalendarEventsResponsebuild()Builds aPostCalendarEventsResponse.PostCalendarEventsResponse.Builderevents(CalendarEvent value, CalendarEvent... values)Required - API name:eventsPostCalendarEventsResponse.Builderevents(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)Required - API name:eventsPostCalendarEventsResponse.Builderevents(java.util.List<CalendarEvent> list)Required - API name:eventsprotected PostCalendarEventsResponse.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
-
events
Required - API name:eventsAdds all elements of
listtoevents. -
events
public final PostCalendarEventsResponse.Builder events(CalendarEvent value, CalendarEvent... values)Required - API name:eventsAdds one or more values to
events. -
events
public final PostCalendarEventsResponse.Builder events(java.util.function.Function<CalendarEvent.Builder,ObjectBuilder<CalendarEvent>> fn)Required - API name:eventsAdds a value to
eventsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PostCalendarEventsResponse.Builder>
-
build
Builds aPostCalendarEventsResponse.- Specified by:
buildin interfaceObjectBuilder<PostCalendarEventsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-