Class Suggest.Builder<T>
java.lang.Object
org.opensearch.client.opensearch._global.search.Suggest.Builder<T>
- All Implemented Interfaces:
ObjectBuilder<Suggest<T>>
public static class Suggest.Builder<T> extends java.lang.Object implements ObjectBuilder<Suggest<T>>
Builder for
Suggest
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V>
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Suggest.Builder<T>
addOptions(jakarta.json.JsonValue value)
Add a value tooptions(List)
, creating the list if needed.Suggest<T>
build()
Builds aSuggest
.Suggest.Builder<T>
length(java.lang.Number value)
API name:length
Suggest.Builder<T>
offset(java.lang.Number value)
API name:offset
Suggest.Builder<T>
options(jakarta.json.JsonValue... value)
API name:options
Suggest.Builder<T>
options(java.util.List<jakarta.json.JsonValue> value)
API name:options
Suggest.Builder<T>
text(java.lang.String value)
API name:text
Suggest.Builder<T>
tSerializer(JsonpSerializer<T> value)
Serializer for T.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
length
API name:length
-
offset
API name:offset
-
options
API name:options
-
options
API name:options
-
addOptions
Add a value tooptions(List)
, creating the list if needed. -
text
API name:text
-
tSerializer
Serializer for T. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aSuggest
.- Specified by:
build
in interfaceObjectBuilder<T>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-