Class SubmitResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.async_search.AsyncSearchDocumentResponseBase.AbstractBuilder<TDocument,SubmitResponse.Builder<TDocument>>
co.elastic.clients.elasticsearch.async_search.SubmitResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<SubmitResponse<TDocument>>
- Enclosing class:
- SubmitResponse<TDocument>
public static class SubmitResponse.Builder<TDocument> extends AsyncSearchDocumentResponseBase.AbstractBuilder<TDocument,SubmitResponse.Builder<TDocument>> implements ObjectBuilder<SubmitResponse<TDocument>>
Builder for
SubmitResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SubmitResponse<TDocument>build()Builds aSubmitResponse.protected SubmitResponse.Builder<TDocument>self()SubmitResponse.Builder<TDocument>tDocumentSerializer(JsonpSerializer<TDocument> value)Serializer for TDocument.Methods inherited from class co.elastic.clients.elasticsearch.async_search.AsyncSearchDocumentResponseBase.AbstractBuilder
response, responseMethods inherited from class co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase.AbstractBuilder
expirationTimeInMillis, id, isPartial, isRunning, startTimeInMillisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tDocumentSerializer
public SubmitResponse.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.- Overrides:
tDocumentSerializerin classAsyncSearchDocumentResponseBase.AbstractBuilder<TDocument,SubmitResponse.Builder<TDocument>>
-
self
- Specified by:
selfin classAsyncSearchResponseBase.AbstractBuilder<SubmitResponse.Builder<TDocument>>
-
build
Builds aSubmitResponse.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-