Class NodesInfoRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.NodesInfoRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<NodesInfoRequest>
- Enclosing class:
- NodesInfoRequest
public static class NodesInfoRequest.Builder extends java.lang.Object implements ObjectBuilder<NodesInfoRequest>
Builder for
NodesInfoRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description NodesInfoRequest.BuilderaddMetric(java.lang.String value)Add a value tometric(List), creating the list if needed.NodesInfoRequest.BuilderaddNodeId(java.lang.String value)Add a value tonodeId(List), creating the list if needed.NodesInfoRequestbuild()Builds aNodesInfoRequest.NodesInfoRequest.BuilderflatSettings(java.lang.Boolean value)If true, returns settings in flat format.NodesInfoRequest.BuildermasterTimeout(java.lang.String value)Period to wait for a connection to the master node.NodesInfoRequest.Buildermetric(java.lang.String... value)Limits the information returned to the specific metrics.NodesInfoRequest.Buildermetric(java.util.List<java.lang.String> value)Limits the information returned to the specific metrics.NodesInfoRequest.BuildernodeId(java.lang.String... value)Comma-separated list of node IDs or names used to limit returned information.NodesInfoRequest.BuildernodeId(java.util.List<java.lang.String> value)Comma-separated list of node IDs or names used to limit returned information.NodesInfoRequest.Buildertimeout(java.lang.String value)Period to wait for a response.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
-
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id -
addNodeId
Add a value tonodeId(List), creating the list if needed. -
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.API name:
metric -
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.API name:
metric -
addMetric
Add a value tometric(List), creating the list if needed. -
flatSettings
If true, returns settings in flat format.API name:
flat_settings -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
build
Builds aNodesInfoRequest.- Specified by:
buildin interfaceObjectBuilder<NodesInfoRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-