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
Constructors -
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_localto 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_localto return information from the node you're connecting to, leave empty to get information from all nodesprotected NodesUsageRequest.Builderself()Period to wait for a response.Period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
metricAdds all elements of
listtometric. -
metric
Limits the information returned to the specific metrics. A comma-separated list of the following options:_all,rest_actions.API name:
metricAdds one or more values to
metric. -
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_idAdds all elements of
listtonodeId. -
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_idAdds 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:
selfin classRequestBase.AbstractBuilder<NodesUsageRequest.Builder>
-
build
Builds aNodesUsageRequest.- Specified by:
buildin interfaceObjectBuilder<NodesUsageRequest>- Throws:
NullPointerException- if some of the required fields are null.
-