Class TermSuggestOption.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.TermSuggestOption.Builder
-
- All Implemented Interfaces:
ObjectBuilder<TermSuggestOption>
- Enclosing class:
- TermSuggestOption
public static class TermSuggestOption.Builder extends ObjectBuilderBase implements ObjectBuilder<TermSuggestOption>
Builder forTermSuggestOption
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermSuggestOption
build()
Builds aTermSuggestOption
.TermSuggestOption.Builder
freq(java.lang.Long value)
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 org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
text
public final TermSuggestOption.Builder text(java.lang.String value)
Required - API name:text
-
freq
public final TermSuggestOption.Builder freq(@Nullable java.lang.Long value)
API name:freq
-
score
public final TermSuggestOption.Builder score(double value)
Required - API name:score
-
build
public TermSuggestOption build()
Builds aTermSuggestOption
.- Specified by:
build
in interfaceObjectBuilder<TermSuggestOption>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-