Class NodesUsageRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<NodesUsageRequest.Builder>
org.opensearch.client.opensearch.nodes.NodesUsageRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<NodesUsageRequest.Builder,,NodesUsageRequest> MutableBuilder<NodesUsageRequest.Builder,,NodesUsageRequest> ObjectBuilder<NodesUsageRequest>
- Enclosing class:
NodesUsageRequest
public static class NodesUsageRequest.Builder
extends RequestBase.AbstractBuilder<NodesUsageRequest.Builder>
implements CopyableBuilder<NodesUsageRequest.Builder,NodesUsageRequest>
Builder for
NodesUsageRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodesUsageRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.metric(List<NodesUsageMetric> list) Limits the information returned to the specific metrics.metric(NodesUsageMetric value, NodesUsageMetric... values) 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 org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<NodesUsageRequest.Builder,NodesUsageRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<NodesUsageRequest.Builder>
-
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
@Nonnull public final NodesUsageRequest.Builder metric(NodesUsageMetric value, NodesUsageMetric... values) 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
@Nonnull public final NodesUsageRequest.Builder timeout(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 aNodesUsageRequest.- Specified by:
buildin interfaceObjectBuilder<NodesUsageRequest>- Throws:
NullPointerException- if some of the required fields are null.
-