Class ExistsAliasRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ExistsAliasRequest.Builder>
org.opensearch.client.opensearch.indices.ExistsAliasRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ExistsAliasRequest.Builder,,ExistsAliasRequest> MutableBuilder<ExistsAliasRequest.Builder,,ExistsAliasRequest> ObjectBuilder<ExistsAliasRequest>
- Enclosing class:
ExistsAliasRequest
public static class ExistsAliasRequest.Builder
extends RequestBase.AbstractBuilder<ExistsAliasRequest.Builder>
implements CopyableBuilder<ExistsAliasRequest.Builder,ExistsAliasRequest>
Builder for
ExistsAliasRequest.-
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 indexes.build()Builds aExistsAliasRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.ignoreUnavailable(Boolean value) Iffalse, requests that include a missing data stream or index in the target indexes or data streams return an error.Comma-separated list of data streams or indexes used to limit the request.Comma-separated list of data streams or indexes used to limit the request.Iftrue, the request retrieves information from the local node only.Required - Comma-separated list of aliases to check.Required - Comma-separated list of aliases to check.protected ExistsAliasRequest.Builderself()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<ExistsAliasRequest.Builder,ExistsAliasRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ExistsAliasRequest.Builder>
-
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes. This behavior applies even if the request targets other open indexes.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. Valid values are:all,open,closed,hidden,none.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull public final ExistsAliasRequest.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. Valid values are:all,open,closed,hidden,none.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
Comma-separated list of data streams or indexes 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
Comma-separated list of data streams or indexes 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
Iftrue, the request retrieves information from the local node only.API name:
local -
name
Required - Comma-separated list of aliases to check. Supports wildcards (*).API name:
nameAdds all elements of
listtoname. -
name
Required - Comma-separated list of aliases to check. Supports wildcards (*).API name:
nameAdds one or more values to
name. -
build
Builds aExistsAliasRequest.- Specified by:
buildin interfaceObjectBuilder<ExistsAliasRequest>- Throws:
NullPointerException- if some of the required fields are null.
-