Class WatcherNodeStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.watcher.stats.WatcherNodeStats.Builder
- All Implemented Interfaces:
ObjectBuilder<WatcherNodeStats>
- Enclosing class:
- WatcherNodeStats
public static class WatcherNodeStats.Builder extends java.lang.Object implements ObjectBuilder<WatcherNodeStats>
Builder for
WatcherNodeStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
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
-
currentWatches
API name:current_watches
-
currentWatches
API name:current_watches
-
addCurrentWatches
Add a value tocurrentWatches(List)
, creating the list if needed. -
currentWatches
public WatcherNodeStats.Builder currentWatches(java.util.function.Function<WatchRecordStats.Builder,ObjectBuilder<WatchRecordStats>> fn)SetcurrentWatches(List)
to a singleton list. -
addCurrentWatches
public WatcherNodeStats.Builder addCurrentWatches(java.util.function.Function<WatchRecordStats.Builder,ObjectBuilder<WatchRecordStats>> fn)Add a value tocurrentWatches(List)
, creating the list if needed. -
executionThreadPool
Required - API name:execution_thread_pool
-
executionThreadPool
public WatcherNodeStats.Builder executionThreadPool(java.util.function.Function<ExecutionThreadPool.Builder,ObjectBuilder<ExecutionThreadPool>> fn)Required - API name:execution_thread_pool
-
queuedWatches
public WatcherNodeStats.Builder queuedWatches(@Nullable java.util.List<WatchRecordQueuedStats> value)API name:queued_watches
-
queuedWatches
API name:queued_watches
-
addQueuedWatches
Add a value toqueuedWatches(List)
, creating the list if needed. -
queuedWatches
public WatcherNodeStats.Builder queuedWatches(java.util.function.Function<WatchRecordQueuedStats.Builder,ObjectBuilder<WatchRecordQueuedStats>> fn)SetqueuedWatches(List)
to a singleton list. -
addQueuedWatches
public WatcherNodeStats.Builder addQueuedWatches(java.util.function.Function<WatchRecordQueuedStats.Builder,ObjectBuilder<WatchRecordQueuedStats>> fn)Add a value toqueuedWatches(List)
, creating the list if needed. -
watchCount
Required - API name:watch_count
-
watcherState
Required - API name:watcher_state
-
nodeId
Required - API name:node_id
-
build
Builds aWatcherNodeStats
.- Specified by:
build
in interfaceObjectBuilder<WatcherNodeStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-