Class ExecuteWatchResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ExecuteWatchResponse.Builder>
co.elastic.clients.elasticsearch.watcher.ExecuteWatchResponse.Builder
- All Implemented Interfaces:
WithJson<ExecuteWatchResponse.Builder>,ObjectBuilder<ExecuteWatchResponse>
- Enclosing class:
- ExecuteWatchResponse
public static class ExecuteWatchResponse.Builder
extends WithJsonObjectBuilderBase<ExecuteWatchResponse.Builder>
implements ObjectBuilder<ExecuteWatchResponse>
Builder for
ExecuteWatchResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aExecuteWatchResponse.Required - The watch record identifier as it would be stored in the.watcher-historyindex.protected ExecuteWatchResponse.Builderself()watchRecord(WatchRecord value) Required - The watch record document as it would be stored in the.watcher-historyindex.Required - The watch record document as it would be stored in the.watcher-historyindex.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
-
id
Required - The watch record identifier as it would be stored in the.watcher-historyindex.API name:
_id -
watchRecord
Required - The watch record document as it would be stored in the.watcher-historyindex.API name:
watch_record -
watchRecord
public final ExecuteWatchResponse.Builder watchRecord(Function<WatchRecord.Builder, ObjectBuilder<WatchRecord>> fn) Required - The watch record document as it would be stored in the.watcher-historyindex.API name:
watch_record -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ExecuteWatchResponse.Builder>
-
build
Builds aExecuteWatchResponse.- Specified by:
buildin interfaceObjectBuilder<ExecuteWatchResponse>- Throws:
NullPointerException- if some of the required fields are null.
-