Class TermSuggestOption.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.search.TermSuggestOption.Builder
- All Implemented Interfaces:
ObjectBuilder<TermSuggestOption>
- Enclosing class:
- TermSuggestOption
public static class TermSuggestOption.Builder extends ObjectBuilderBase implements ObjectBuilder<TermSuggestOption>
Builder for
TermSuggestOption
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TermSuggestOption
build()
Builds aTermSuggestOption
.TermSuggestOption.Builder
freq(long value)
Required - API name:freq
TermSuggestOption.Builder
score(double value)
Required - API name:score
TermSuggestOption.Builder
text(java.lang.String value)
Required - API name:text
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
-
text
Required - API name:text
-
freq
Required - API name:freq
-
score
Required - API name:score
-
build
Builds aTermSuggestOption
.- Specified by:
build
in interfaceObjectBuilder<TermSuggestOption>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-