Class NodesUsageRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<NodesUsageRequest.Builder>
co.elastic.clients.elasticsearch.nodes.NodesUsageRequest.Builder
- All Implemented Interfaces:
WithJson<NodesUsageRequest.Builder>
,ObjectBuilder<NodesUsageRequest>
- Enclosing class:
- NodesUsageRequest
public static class NodesUsageRequest.Builder
extends RequestBase.AbstractBuilder<NodesUsageRequest.Builder>
implements ObjectBuilder<NodesUsageRequest>
Builder for
NodesUsageRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aNodesUsageRequest
.Limits the information returned to the specific metrics.Limits the information returned to the specific metrics.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 nodesA 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 nodesprotected NodesUsageRequest.Builder
self()
Period to wait for a response.Period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metric
Limits the information returned to the specific metrics. A comma-separated list of the following options:_all
,rest_actions
.API name:
metric
Adds all elements of
list
tometric
. -
metric
Limits the information returned to the specific metrics. A comma-separated list of the following options:_all
,rest_actions
.API 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
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
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
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<NodesUsageRequest.Builder>
-
build
Builds aNodesUsageRequest
.- Specified by:
build
in interfaceObjectBuilder<NodesUsageRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-