Class UpdateResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.WriteResponseBase.AbstractBuilder<UpdateResponse.Builder<TDocument>>
co.elastic.clients.elasticsearch.core.UpdateResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<UpdateResponse<TDocument>>
- Enclosing class:
- UpdateResponse<TDocument>
public static class UpdateResponse.Builder<TDocument> extends WriteResponseBase.AbstractBuilder<UpdateResponse.Builder<TDocument>> implements ObjectBuilder<UpdateResponse<TDocument>>
Builder for
UpdateResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description UpdateResponse<TDocument>
build()
Builds aUpdateResponse
.UpdateResponse.Builder<TDocument>
get(InlineGet<TDocument> value)
API name:get
UpdateResponse.Builder<TDocument>
get(java.util.function.Function<InlineGet.Builder<TDocument>,ObjectBuilder<InlineGet<TDocument>>> fn)
API name:get
protected UpdateResponse.Builder<TDocument>
self()
UpdateResponse.Builder<TDocument>
tDocumentSerializer(JsonpSerializer<TDocument> value)
Serializer for TDocument.Methods inherited from class co.elastic.clients.elasticsearch._types.WriteResponseBase.AbstractBuilder
forcedRefresh, id, index, primaryTerm, result, seqNo, shards, shards, type, version
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
get
API name:get
-
get
public final UpdateResponse.Builder<TDocument> get(java.util.function.Function<InlineGet.Builder<TDocument>,ObjectBuilder<InlineGet<TDocument>>> fn)API name:get
-
tDocumentSerializer
public final UpdateResponse.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. -
self
- Specified by:
self
in classWriteResponseBase.AbstractBuilder<UpdateResponse.Builder<TDocument>>
-
build
Builds aUpdateResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-