Class HealthRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<HealthRequest.Builder,,HealthRequest> MutableBuilder<HealthRequest.Builder,,HealthRequest> ObjectBuilder<HealthRequest>
- Enclosing class:
HealthRequest
HealthRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal HealthRequest.BuilderawarenessAttribute(String value) The name of the awareness attribute for which to return the cluster health status (for example,zone).build()Builds aHealthRequest.final HealthRequest.BuilderThe amount of time to wait for a response from the cluster manager node.final HealthRequest.BuilderclusterManagerTimeout(Time value) The amount of time to wait for a response from the cluster manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.final HealthRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Specifies the type of index that wildcard expressions can match.final HealthRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match.final HealthRequest.BuilderA comma-separated list of data streams, indexes, and aliases used to limit the request.final HealthRequest.BuilderA comma-separated list of data streams, indexes, and aliases used to limit the request.final HealthRequest.Builderlevel(ClusterHealthLevel value) Controls the amount of detail included in the cluster health response.final HealthRequest.BuilderWhether to return information from the local node only instead of from the cluster manager node.final HealthRequest.BuilderDeprecated.final HealthRequest.BuildermasterTimeout(Time value) Deprecated.protected HealthRequest.Builderself()final HealthRequest.BuilderThe amount of time to wait for a response from the cluster manager node.final HealthRequest.BuilderThe amount of time to wait for a response from the cluster manager node.final HealthRequest.BuilderWaits until the specified number of shards is active before returning a response.final HealthRequest.BuilderWaits until the specified number of shards is active before returning a response.final HealthRequest.BuilderwaitForEvents(WaitForEvents value) Waits until all currently queued events with the given priority are processed.final HealthRequest.BuilderWaits until the specified number of nodes (N) is available.final HealthRequest.BuilderwaitForNodes(WaitForNodes value) Waits until the specified number of nodes (N) is available.final HealthRequest.BuilderWhether to wait until there are no initializing shards in the cluster.final HealthRequest.BuilderwaitForNoRelocatingShards(Boolean value) Whether to wait until there are no relocating shards in the cluster.final HealthRequest.BuilderwaitForStatus(HealthStatus value) Waits until the cluster health reaches the specified status or better.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<HealthRequest.Builder,HealthRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HealthRequest.Builder>
-
awarenessAttribute
The name of the awareness attribute for which to return the cluster health status (for example,zone). Applicable only iflevelis set toawareness_attributes.API name:
awareness_attribute -
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final HealthRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
expandWildcards
Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull public final HealthRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds one or more values to
index. -
level
Controls the amount of detail included in the cluster health response.API name:
level -
local
Whether to return information from the local node only instead of from the cluster manager node.API name:
local -
masterTimeout
Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final HealthRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
timeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
timeout -
timeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
timeout -
waitForActiveShards
@Nonnull public final HealthRequest.Builder waitForActiveShards(@Nullable WaitForActiveShards value) Waits until the specified number of shards is active before returning a response. Useallfor all shards.API name:
wait_for_active_shards -
waitForActiveShards
@Nonnull public final HealthRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) Waits until the specified number of shards is active before returning a response. Useallfor all shards.API name:
wait_for_active_shards -
waitForEvents
Waits until all currently queued events with the given priority are processed.API name:
wait_for_events -
waitForNoInitializingShards
Whether to wait until there are no initializing shards in the cluster.API name:
wait_for_no_initializing_shards -
waitForNoRelocatingShards
Whether to wait until there are no relocating shards in the cluster.API name:
wait_for_no_relocating_shards -
waitForNodes
Waits until the specified number of nodes (N) is available. Accepts>=N,<=N,>N, and<N. You can also usege(N),le(N),gt(N), andlt(N)notation.API name:
wait_for_nodes -
waitForNodes
@Nonnull public final HealthRequest.Builder waitForNodes(Function<WaitForNodes.Builder, ObjectBuilder<WaitForNodes>> fn) Waits until the specified number of nodes (N) is available. Accepts>=N,<=N,>N, and<N. You can also usege(N),le(N),gt(N), andlt(N)notation.API name:
wait_for_nodes -
waitForStatus
Waits until the cluster health reaches the specified status or better.API name:
wait_for_status -
build
Builds aHealthRequest.- Specified by:
buildin interfaceObjectBuilder<HealthRequest>- Throws:
NullPointerException- if some of the required fields are null.
-