Class StatsRequest.Builder
java.lang.Object
org.opensearch.client.opensearch.cluster.StatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StatsRequest>
- Enclosing class:
- StatsRequest
public static class StatsRequest.Builder extends java.lang.Object implements ObjectBuilder<StatsRequest>
Builder for
StatsRequest.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description StatsRequestbuild()Builds aStatsRequest.StatsRequest.BuilderflatSettings(java.lang.Boolean value)API name:flat_settingsStatsRequest.BuildernodeId(java.lang.String value)Comma-separated list of node filters used to limit returned information.StatsRequest.Buildertimeout(jakarta.json.JsonValue value)Period to wait for each node to respond.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeId
Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. API name:node_id -
flatSettings
API name:flat_settings -
timeout
Period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's _nodes.failed property. Defaults to no timeout. API name:timeout -
build
Builds aStatsRequest.- Specified by:
buildin interfaceObjectBuilder<StatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-