Class InfoRequest.Builder
java.lang.Object
org.opensearch.client.opensearch.nodes.InfoRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<InfoRequest>
- Enclosing class:
- InfoRequest
public static class InfoRequest.Builder extends java.lang.Object implements ObjectBuilder<InfoRequest>
Builder for
InfoRequest
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V>
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description InfoRequest.Builder
addMetric(java.lang.String value)
Add a value tometric(List)
, creating the list if needed.InfoRequest
build()
Builds aInfoRequest
.InfoRequest.Builder
flatSettings(java.lang.Boolean value)
If true, returns settings in flat format.InfoRequest.Builder
masterTimeout(jakarta.json.JsonValue value)
Period to wait for a connection to the master node.InfoRequest.Builder
metric(java.lang.String... value)
Limits the information returned to the specific metrics.InfoRequest.Builder
metric(java.util.List<java.lang.String> value)
Limits the information returned to the specific metrics.InfoRequest.Builder
nodeId(java.lang.String value)
Comma-separated list of node IDs or names used to limit returned information.InfoRequest.Builder
timeout(jakarta.json.JsonValue value)
Period to wait for a response.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeId
Comma-separated list of node IDs or names used to limit returned information. API name:node_id
-
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. API name:metric
-
metric
Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. API name:metric
-
addMetric
Add a value tometric(List)
, creating the list if needed. -
flatSettings
If true, returns settings in flat format. API name:flat_settings
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. API name:master_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
-
build
Builds aInfoRequest
.- Specified by:
build
in interfaceObjectBuilder<InfoRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-