Class StateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<StateRequest.Builder>
org.opensearch.client.opensearch.cluster.StateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<StateRequest.Builder,,StateRequest> MutableBuilder<StateRequest.Builder,,StateRequest> ObjectBuilder<StateRequest>
- Enclosing class:
StateRequest
public static class StateRequest.Builder
extends RequestBase.AbstractBuilder<StateRequest.Builder>
implements CopyableBuilder<StateRequest.Builder,StateRequest>
Builder for
StateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StateRequest.BuilderallowNoIndices(Boolean value) Whether to ignore a wildcard index expression that resolves into no concrete indexes.build()Builds aStateRequest.final StateRequest.BuilderThe amount of time to wait for a response from the cluster manager node.final StateRequest.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 StateRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Specifies the type of index that wildcard expressions can match.final StateRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match.final StateRequest.BuilderflatSettings(Boolean value) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.final StateRequest.BuilderignoreUnavailable(Boolean value) Whether the specified concrete indexes should be ignored when unavailable (missing or closed).final StateRequest.BuilderA comma-separated list of data streams, indexes, and aliases used to limit the request.final StateRequest.BuilderA comma-separated list of data streams, indexes, and aliases used to limit the request.final StateRequest.BuilderWhether to return information from the local node only instead of from the cluster manager node.final StateRequest.BuilderDeprecated.final StateRequest.BuildermasterTimeout(Time value) Deprecated.final StateRequest.Buildermetric(List<ClusterStateMetric> list) Limits the information returned to only the specified metric groups.final StateRequest.Buildermetric(ClusterStateMetric value, ClusterStateMetric... values) Limits the information returned to only the specified metric groups.protected StateRequest.Builderself()final StateRequest.BuilderwaitForMetadataVersion(Long value) Wait for the metadata version to be equal or greater than the specified metadata version.final StateRequest.BuilderThe maximum time to wait forwait_for_metadata_versionbefore timing out.final StateRequest.BuilderwaitForTimeout(Time value) The maximum time to wait forwait_for_metadata_versionbefore timing out.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<StateRequest.Builder,StateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<StateRequest.Builder>
-
allowNoIndices
Whether to ignore a wildcard index expression that resolves into no concrete indexes. This includes the_allstring or when no indexes have been specified.API name:
allow_no_indices -
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 StateRequest.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 StateRequest.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. -
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 -
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. -
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 StateRequest.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 -
metric
Limits the information returned to only the specified metric groups.API name:
metricAdds all elements of
listtometric. -
metric
@Nonnull public final StateRequest.Builder metric(ClusterStateMetric value, ClusterStateMetric... values) Limits the information returned to only the specified metric groups.API name:
metricAdds one or more values to
metric. -
waitForMetadataVersion
Wait for the metadata version to be equal or greater than the specified metadata version.API name:
wait_for_metadata_version -
waitForTimeout
The maximum time to wait forwait_for_metadata_versionbefore timing out.API name:
wait_for_timeout -
waitForTimeout
@Nonnull public final StateRequest.Builder waitForTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The maximum time to wait forwait_for_metadata_versionbefore timing out.API name:
wait_for_timeout -
build
Builds aStateRequest.- Specified by:
buildin interfaceObjectBuilder<StateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-