Class StateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<StateRequest.Builder>
co.elastic.clients.elasticsearch.cluster.StateRequest.Builder
- All Implemented Interfaces:
WithJson<StateRequest.Builder>,ObjectBuilder<StateRequest>
- Enclosing class:
- StateRequest
public static class StateRequest.Builder
extends RequestBase.AbstractBuilder<StateRequest.Builder>
implements ObjectBuilder<StateRequest>
Builder for
StateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StateRequest.BuilderallowNoIndices(Boolean value) Whether to ignore if a wildcard indices expression resolves into no concrete indices.build()Builds aStateRequest.final StateRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.final StateRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indices that are open, closed or both.final StateRequest.BuilderflatSettings(Boolean value) Return settings in flat format (default: false)final StateRequest.BuilderignoreUnavailable(Boolean value) Whether specified concrete indices should be ignored when unavailable (missing or closed)final StateRequest.BuilderA comma-separated list of index names; use_allor empty string to perform the operation on all indicesfinal StateRequest.BuilderA comma-separated list of index names; use_allor empty string to perform the operation on all indicesfinal StateRequest.BuilderReturn local information, do not retrieve the state from master node (default: false)final StateRequest.BuildermasterTimeout(Time value) Deprecated.9.2.0final StateRequest.BuilderDeprecated.9.2.0final StateRequest.BuilderLimit the information returned to the specified metricsfinal StateRequest.BuilderLimit the information returned to the specified metricsprotected StateRequest.Builderself()final StateRequest.BuilderwaitForMetadataVersion(Long value) Wait for the metadata version to be equal or greater than the specified metadata versionfinal StateRequest.BuilderwaitForTimeout(Time value) The maximum time to wait for wait_for_metadata_version before timing outfinal StateRequest.BuilderThe maximum time to wait for wait_for_metadata_version before timing outMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
flatSettings
Return settings in flat format (default: false)API name:
flat_settings -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
local
Return local information, do not retrieve the state from master node (default: false)API name:
local -
masterTimeout
Deprecated.9.2.0Timeout for waiting for new cluster state in case it is blockedAPI name:
master_timeout -
masterTimeout
@Deprecated public final StateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.9.2.0Timeout for waiting for new cluster state in case it is blockedAPI name:
master_timeout -
metric
Limit the information returned to the specified metricsAPI name:
metricAdds all elements of
listtometric. -
metric
Limit the information returned to the specified metricsAPI name:
metricAdds one or more values to
metric. -
waitForMetadataVersion
Wait for the metadata version to be equal or greater than the specified metadata versionAPI name:
wait_for_metadata_version -
waitForTimeout
The maximum time to wait for wait_for_metadata_version before timing outAPI name:
wait_for_timeout -
waitForTimeout
The maximum time to wait for wait_for_metadata_version before timing outAPI name:
wait_for_timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<StateRequest.Builder>
-
build
Builds aStateRequest.- Specified by:
buildin interfaceObjectBuilder<StateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-