Class NodesUsageRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.NodesUsageRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<NodesUsageRequest>
- Enclosing class:
- NodesUsageRequest
public static class NodesUsageRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<NodesUsageRequest>
Builder for
NodesUsageRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodesUsageRequest
build()
Builds aNodesUsageRequest
.NodesUsageRequest.Builder
metric(java.lang.String value, java.lang.String... values)
Limit the information returned to the specified metricsNodesUsageRequest.Builder
metric(java.util.List<java.lang.String> list)
Limit the information returned to the specified metricsNodesUsageRequest.Builder
nodeId(java.lang.String value, java.lang.String... values)
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesNodesUsageRequest.Builder
nodeId(java.util.List<java.lang.String> list)
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesNodesUsageRequest.Builder
timeout(Time value)
Explicit operation timeoutNodesUsageRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Explicit operation timeoutMethods 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
-
metric
Limit the information returned to the specified metricsAPI name:
metric
Adds all elements of
list
tometric
. -
metric
Limit the information returned to the specified metricsAPI name:
metric
Adds one or more values to
metric
. -
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_id
Adds all elements of
list
tonodeId
. -
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_id
Adds one or more values to
nodeId
. -
timeout
Explicit operation timeoutAPI name:
timeout
-
timeout
public final NodesUsageRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutAPI name:
timeout
-
build
Builds aNodesUsageRequest
.- Specified by:
build
in interfaceObjectBuilder<NodesUsageRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-