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, response
Methods inherited from class co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase.AbstractBuilder
expirationTimeInMillis, id, isPartial, isRunning, startTimeInMillis
Methods 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:
tDocumentSerializer
in classAsyncSearchDocumentResponseBase.AbstractBuilder<TDocument,SubmitResponse.Builder<TDocument>>
-
self
- Specified by:
self
in classAsyncSearchResponseBase.AbstractBuilder<SubmitResponse.Builder<TDocument>>
-
build
Builds aSubmitResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-