Class NodesInfoRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.NodesInfoRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<NodesInfoRequest>
- Enclosing class:
- NodesInfoRequest
public static class NodesInfoRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<NodesInfoRequest>
Builder for
NodesInfoRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodesInfoRequest
build()
Builds aNodesInfoRequest
.NodesInfoRequest.Builder
flatSettings(java.lang.Boolean value)
If true, returns settings in flat format.NodesInfoRequest.Builder
masterTimeout(Time value)
Period to wait for a connection to the master node.NodesInfoRequest.Builder
masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the master node.NodesInfoRequest.Builder
metric(java.lang.String value, java.lang.String... values)
Limits the information returned to the specific metrics.NodesInfoRequest.Builder
metric(java.util.List<java.lang.String> list)
Limits the information returned to the specific metrics.NodesInfoRequest.Builder
nodeId(java.lang.String value, java.lang.String... values)
Comma-separated list of node IDs or names used to limit returned information.NodesInfoRequest.Builder
nodeId(java.util.List<java.lang.String> list)
Comma-separated list of node IDs or names used to limit returned information.NodesInfoRequest.Builder
timeout(Time value)
Period to wait for a response.NodesInfoRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a response.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
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
-
masterTimeout
public final NodesInfoRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)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
-
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.API name:
metric
Adds all elements of
list
tometric
. -
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.API name:
metric
Adds one or more values to
metric
. -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id
Adds all elements of
list
tonodeId
. -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id
Adds one or more values to
nodeId
. -
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
-
timeout
public final NodesInfoRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)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:
build
in interfaceObjectBuilder<NodesInfoRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-