Class MsearchTemplateResponse.Builder<TDocument>
java.lang.Object
org.opensearch.client.opensearch._global.MsearchTemplateResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<MsearchTemplateResponse<TDocument>>
- Enclosing class:
- MsearchTemplateResponse<TDocument>
public static class MsearchTemplateResponse.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<MsearchTemplateResponse<TDocument>>
Builder for
MsearchTemplateResponse.-
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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
responses
public MsearchTemplateResponse.Builder<TDocument> responses(java.util.List<SearchResponse<TDocument>> value)API name:responses -
responses
API name:responses -
addResponses
Add a value toresponses(List), creating the list if needed. -
responses
public MsearchTemplateResponse.Builder<TDocument> responses(java.util.function.Function<SearchResponse.Builder<TDocument>,ObjectBuilder<SearchResponse<TDocument>>> fn)Setresponses(List)to a singleton list. -
addResponses
public MsearchTemplateResponse.Builder<TDocument> addResponses(java.util.function.Function<SearchResponse.Builder<TDocument>,ObjectBuilder<SearchResponse<TDocument>>> fn)Add a value toresponses(List), creating the list if needed. -
took
API name:took -
tDocumentSerializer
public MsearchTemplateResponse.Builder<TDocument> tDocumentSerializer(@Nullable JsonpSerializer<TDocument> value)Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aMsearchTemplateResponse.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-