Class MultisearchHeader.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MultisearchHeader.Builder>
co.elastic.clients.elasticsearch.core.msearch.MultisearchHeader.Builder
- All Implemented Interfaces:
WithJson<MultisearchHeader.Builder>
,ObjectBuilder<MultisearchHeader>
- Enclosing class:
- MultisearchHeader
public static class MultisearchHeader.Builder extends WithJsonObjectBuilderBase<MultisearchHeader.Builder> implements ObjectBuilder<MultisearchHeader>
Builder for
MultisearchHeader
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MultisearchHeader.Builder
allowNoIndices(java.lang.Boolean value)
API name:allow_no_indices
MultisearchHeader
build()
Builds aMultisearchHeader
.MultisearchHeader.Builder
expandWildcards(ExpandWildcard value, ExpandWildcard... values)
API name:expand_wildcards
MultisearchHeader.Builder
expandWildcards(java.util.List<ExpandWildcard> list)
API name:expand_wildcards
MultisearchHeader.Builder
ignoreUnavailable(java.lang.Boolean value)
API name:ignore_unavailable
MultisearchHeader.Builder
index(java.lang.String value, java.lang.String... values)
API name:index
MultisearchHeader.Builder
index(java.util.List<java.lang.String> list)
API name:index
MultisearchHeader.Builder
preference(java.lang.String value)
API name:preference
MultisearchHeader.Builder
requestCache(java.lang.Boolean value)
API name:request_cache
MultisearchHeader.Builder
routing(java.lang.String value)
API name:routing
MultisearchHeader.Builder
searchType(SearchType value)
API name:search_type
protected MultisearchHeader.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoIndices
API name:allow_no_indices
-
expandWildcards
API name:expand_wildcards
Adds all elements of
list
toexpandWildcards
. -
expandWildcards
public final MultisearchHeader.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)API name:expand_wildcards
Adds one or more values to
expandWildcards
. -
index
API name:index
Adds all elements of
list
toindex
. -
index
API name:index
Adds one or more values to
index
. -
preference
API name:preference
-
requestCache
API name:request_cache
-
routing
API name:routing
-
searchType
API name:search_type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MultisearchHeader.Builder>
-
build
Builds aMultisearchHeader
.- Specified by:
build
in interfaceObjectBuilder<MultisearchHeader>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-