Class StatsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.watcher.StatsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<StatsResponse>
- Enclosing class:
- StatsResponse
public static class StatsResponse.Builder extends java.lang.Object implements ObjectBuilder<StatsResponse>
Builder for
StatsResponse.-
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
-
nodeStats
API name:_nodes -
nodeStats
public StatsResponse.Builder nodeStats(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)API name:_nodes -
clusterName
API name:cluster_name -
manuallyStopped
API name:manually_stopped -
stats
API name:stats -
stats
API name:stats -
addStats
Add a value tostats(List), creating the list if needed. 4 -
stats
public StatsResponse.Builder stats(java.util.function.Function<WatcherNodeStats.Builder,ObjectBuilder<WatcherNodeStats>> fn)Setstats(List)to a singleton list. -
addStats
public StatsResponse.Builder addStats(java.util.function.Function<WatcherNodeStats.Builder,ObjectBuilder<WatcherNodeStats>> fn)Add a value tostats(List), creating the list if needed. 5 -
build
Builds aStatsResponse.- Specified by:
buildin interfaceObjectBuilder<StatsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-