Class MsearchResponse.Builder<TDocument>
java.lang.Object
org.opensearch.client.opensearch._global.MsearchResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<MsearchResponse<TDocument>>
- Enclosing class:
- MsearchResponse<TDocument>
public static class MsearchResponse.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<MsearchResponse<TDocument>>
Builder for
MsearchResponse.-
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 MsearchResponse.Builder<TDocument>addResponses(jakarta.json.JsonValue value)Add a value toresponses(List), creating the list if needed.MsearchResponse<TDocument>build()Builds aMsearchResponse.MsearchResponse.Builder<TDocument>responses(jakarta.json.JsonValue... value)API name:responsesMsearchResponse.Builder<TDocument>responses(java.util.List<jakarta.json.JsonValue> value)API name:responsesMsearchResponse.Builder<TDocument>tDocumentSerializer(JsonpSerializer<TDocument> value)Serializer for TDocument.MsearchResponse.Builder<TDocument>took(java.lang.Number value)API name:took
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
took
API name:took -
responses
API name:responses -
responses
API name:responses -
addResponses
Add a value toresponses(List), creating the list if needed. -
tDocumentSerializer
public MsearchResponse.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 aMsearchResponse.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-