Class PhraseSuggestCollateQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PhraseSuggestCollateQuery.Builder>
co.elastic.clients.elasticsearch.core.search.PhraseSuggestCollateQuery.Builder
- All Implemented Interfaces:
WithJson<PhraseSuggestCollateQuery.Builder>
,ObjectBuilder<PhraseSuggestCollateQuery>
- Enclosing class:
- PhraseSuggestCollateQuery
public static class PhraseSuggestCollateQuery.Builder
extends WithJsonObjectBuilderBase<PhraseSuggestCollateQuery.Builder>
implements ObjectBuilder<PhraseSuggestCollateQuery>
Builder for
PhraseSuggestCollateQuery
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPhraseSuggestCollateQuery
.The search template ID.protected PhraseSuggestCollateQuery.Builder
self()
source
(ScriptSource value) The query source.The query source.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
The search template ID.API name:
id
-
source
The query source.API name:
source
-
source
public final PhraseSuggestCollateQuery.Builder source(Function<ScriptSource.Builder, ObjectBuilder<ScriptSource>> fn) The query source.API name:
source
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PhraseSuggestCollateQuery.Builder>
-
build
Builds aPhraseSuggestCollateQuery
.- Specified by:
build
in interfaceObjectBuilder<PhraseSuggestCollateQuery>
- Throws:
NullPointerException
- if some of the required fields are null.
-