Class ClusterStatsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ClusterStatsRequest.Builder>
org.opensearch.client.opensearch.cluster.ClusterStatsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ClusterStatsRequest.Builder,,ClusterStatsRequest> MutableBuilder<ClusterStatsRequest.Builder,,ClusterStatsRequest> ObjectBuilder<ClusterStatsRequest>
- Enclosing class:
ClusterStatsRequest
public static class ClusterStatsRequest.Builder
extends RequestBase.AbstractBuilder<ClusterStatsRequest.Builder>
implements CopyableBuilder<ClusterStatsRequest.Builder,ClusterStatsRequest>
Builder for
ClusterStatsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterStatsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.flatSettings(Boolean value) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.indexMetric(List<IndexMetric> list) A comma-separated list of index metric groups, for example,docs,store.indexMetric(IndexMetric value, IndexMetric... values) A comma-separated list of index metric groups, for example,docs,store.Limit the information returned to the specified metrics.Limit the information returned to the specified metrics.A comma-separated list of node IDs used to filter results.A comma-separated list of node IDs used to filter results.protected ClusterStatsRequest.Builderself()The amount of time to wait for each node to respond.The amount of time to wait for each node to respond.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<ClusterStatsRequest.Builder,ClusterStatsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ClusterStatsRequest.Builder>
-
flatSettings
Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of"cluster": { "max_shards_per_node": 500 }is"cluster.max_shards_per_node": "500".API name:
flat_settings -
indexMetric
A comma-separated list of index metric groups, for example,docs,store.API name:
index_metricAdds all elements of
listtoindexMetric. -
indexMetric
@Nonnull public final ClusterStatsRequest.Builder indexMetric(IndexMetric value, IndexMetric... values) A comma-separated list of index metric groups, for example,docs,store.API name:
index_metricAdds one or more values to
indexMetric. -
metric
Limit the information returned to the specified metrics.API name:
metricAdds all elements of
listtometric. -
metric
Limit the information returned to the specified metrics.API name:
metricAdds one or more values to
metric. -
nodeId
A comma-separated list of node IDs used to filter results. Supports node filters.API name:
node_idAdds all elements of
listtonodeId. -
nodeId
A comma-separated list of node IDs used to filter results. Supports node filters.API name:
node_idAdds one or more values to
nodeId. -
timeout
The amount of time to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's_nodes.failedproperty. Defaults to no timeout.API name:
timeout -
timeout
@Nonnull public final ClusterStatsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's_nodes.failedproperty. Defaults to no timeout.API name:
timeout -
build
Builds aClusterStatsRequest.- Specified by:
buildin interfaceObjectBuilder<ClusterStatsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-