Class NodesUsageRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.NodesUsageRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<NodesUsageRequest>
- Enclosing class:
- NodesUsageRequest
public static class NodesUsageRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<NodesUsageRequest>
Builder forNodesUsageRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodesUsageRequestbuild()Builds aNodesUsageRequest.NodesUsageRequest.Buildermetric(java.lang.String value, java.lang.String... values)Limit the information returned to the specified metricsNodesUsageRequest.Buildermetric(java.util.List<java.lang.String> list)Limit the information returned to the specified metricsNodesUsageRequest.BuildernodeId(java.lang.String value, java.lang.String... values)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 nodesNodesUsageRequest.BuildernodeId(java.util.List<java.lang.String> list)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 nodesNodesUsageRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutNodesUsageRequest.Buildertimeout(Time value)Explicit operation timeout-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
metric
public final NodesUsageRequest.Builder metric(java.util.List<java.lang.String> list)
Limit the information returned to the specified metricsAPI name:
metricAdds all elements of
listtometric.
-
metric
public final NodesUsageRequest.Builder metric(java.lang.String value, java.lang.String... values)
Limit the information returned to the specified metricsAPI name:
metricAdds one or more values to
metric.
-
nodeId
public final NodesUsageRequest.Builder nodeId(java.util.List<java.lang.String> list)
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
public final NodesUsageRequest.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_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
public final NodesUsageRequest.Builder timeout(@Nullable Time value)
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
public NodesUsageRequest build()
Builds aNodesUsageRequest.- Specified by:
buildin interfaceObjectBuilder<NodesUsageRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-