Class ResolveIndexRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ResolveIndexRequest.Builder>
co.elastic.clients.elasticsearch.indices.ResolveIndexRequest.Builder
- All Implemented Interfaces:
WithJson<ResolveIndexRequest.Builder>,ObjectBuilder<ResolveIndexRequest>
- Enclosing class:
- ResolveIndexRequest
public static class ResolveIndexRequest.Builder
extends RequestBase.AbstractBuilder<ResolveIndexRequest.Builder>
implements ObjectBuilder<ResolveIndexRequest>
Builder for
ResolveIndexRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices.build()Builds aResolveIndexRequest.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.ignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a missing or closed index.Filter indices by index mode - standard, lookup, time_series, etc.Filter indices by index mode - standard, lookup, time_series, etc.Required - Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.Required - Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.projectRouting(String value) Specifies a subset of projects to target using project metadata tags in a subset of Lucene query syntax.protected ResolveIndexRequest.Builderself()Methods 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
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targetingfoo*,bar*returns an error if an index starts withfoobut no index starts withbar.API name:
allow_no_indices -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final ResolveIndexRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
mode
Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.API name:
modeAdds all elements of
listtomode. -
mode
Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.API name:
modeAdds one or more values to
mode. -
name
Required - Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. Resources on remote clusters can be specified using the<cluster>:<name>syntax.API name:
nameAdds all elements of
listtoname. -
name
Required - Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. Resources on remote clusters can be specified using the<cluster>:<name>syntax.API name:
nameAdds one or more values to
name. -
projectRouting
Specifies a subset of projects to target using project metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). Examples: _alias:my-project _alias:_origin _alias:pr Supported in serverless only.API name:
project_routing -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ResolveIndexRequest.Builder>
-
build
Builds aResolveIndexRequest.- Specified by:
buildin interfaceObjectBuilder<ResolveIndexRequest>- Throws:
NullPointerException- if some of the required fields are null.
-