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) A setting that does two separate checks on the index expression.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 concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable.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
A setting that does two separate checks on the index expression. Iffalse, the request returns an error (1) if any wildcard expression (including_alland*) resolves to zero matching indices or (2) if the complete set of resolved indices, aliases or data streams is empty after all expressions are evaluated. Iftrue, index expressions that resolve to no indices are allowed and the request returns an empty result.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.
-