Class WatcherNodeStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<WatcherNodeStats.Builder>
co.elastic.clients.elasticsearch.watcher.stats.WatcherNodeStats.Builder
- All Implemented Interfaces:
WithJson<WatcherNodeStats.Builder>,ObjectBuilder<WatcherNodeStats>
- Enclosing class:
- WatcherNodeStats
public static class WatcherNodeStats.Builder
extends WithJsonObjectBuilderBase<WatcherNodeStats.Builder>
implements ObjectBuilder<WatcherNodeStats>
Builder for
WatcherNodeStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aWatcherNodeStats.final WatcherNodeStats.BuildercurrentWatches(WatchRecordStats value, WatchRecordStats... values) API name:current_watchesfinal WatcherNodeStats.BuilderAPI name:current_watchesfinal WatcherNodeStats.BuildercurrentWatches(List<WatchRecordStats> list) API name:current_watchesfinal WatcherNodeStats.BuilderRequired - API name:execution_thread_poolfinal WatcherNodeStats.BuilderRequired - API name:execution_thread_poolfinal WatcherNodeStats.BuilderRequired - API name:node_idfinal WatcherNodeStats.BuilderqueuedWatches(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) API name:queued_watchesfinal WatcherNodeStats.BuilderAPI name:queued_watchesfinal WatcherNodeStats.BuilderAPI name:queued_watchesprotected WatcherNodeStats.Builderself()final WatcherNodeStats.BuilderwatchCount(long value) Required - API name:watch_countfinal WatcherNodeStats.BuilderwatcherState(WatcherState value) Required - API name:watcher_stateMethods 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
-
currentWatches
API name:current_watchesAdds all elements of
listtocurrentWatches. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(WatchRecordStats value, WatchRecordStats... values) API name:current_watchesAdds one or more values to
currentWatches. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(Function<WatchRecordStats.Builder, ObjectBuilder<WatchRecordStats>> fn) API name:current_watchesAdds a value to
currentWatchesusing a builder lambda. -
executionThreadPool
Required - API name:execution_thread_pool -
executionThreadPool
public final WatcherNodeStats.Builder executionThreadPool(Function<ExecutionThreadPool.Builder, ObjectBuilder<ExecutionThreadPool>> fn) Required - API name:execution_thread_pool -
queuedWatches
API name:queued_watchesAdds all elements of
listtoqueuedWatches. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) API name:queued_watchesAdds one or more values to
queuedWatches. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(Function<WatchRecordQueuedStats.Builder, ObjectBuilder<WatchRecordQueuedStats>> fn) API name:queued_watchesAdds a value to
queuedWatchesusing a builder lambda. -
watchCount
Required - API name:watch_count -
watcherState
Required - API name:watcher_state -
nodeId
Required - API name:node_id -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<WatcherNodeStats.Builder>
-
build
Builds aWatcherNodeStats.- Specified by:
buildin interfaceObjectBuilder<WatcherNodeStats>- Throws:
NullPointerException- if some of the required fields are null.
-