Class UsageRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.UsageRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<UsageRequest>
- Enclosing class:
- UsageRequest
public static class UsageRequest.Builder extends java.lang.Object implements ObjectBuilder<UsageRequest>
Builder for
UsageRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description UsageRequest.Builder
addMetric(java.lang.String value)
Add a value tometric(List)
, creating the list if needed.UsageRequest.Builder
addNodeId(java.lang.String value)
Add a value tonodeId(List)
, creating the list if needed.UsageRequest
build()
Builds aUsageRequest
.UsageRequest.Builder
metric(java.lang.String... value)
Limit the information returned to the specified metricsUsageRequest.Builder
metric(java.util.List<java.lang.String> value)
Limit the information returned to the specified metricsUsageRequest.Builder
nodeId(java.lang.String... value)
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 nodesUsageRequest.Builder
nodeId(java.util.List<java.lang.String> value)
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 nodesUsageRequest.Builder
timeout(java.lang.String value)
Explicit operation timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
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
-
addNodeId
Add a value tonodeId(List)
, creating the list if needed. 4 -
metric
Limit the information returned to the specified metricsAPI name:
metric
-
metric
Limit the information returned to the specified metricsAPI name:
metric
-
addMetric
Add a value tometric(List)
, creating the list if needed. 4 -
timeout
Explicit operation timeoutAPI name:
timeout
-
build
Builds aUsageRequest
.- Specified by:
build
in interfaceObjectBuilder<UsageRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-