Class GetSourceResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.GetSourceResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<GetSourceResponse<TDocument>>
- Enclosing class:
- GetSourceResponse<TDocument>
public static class GetSourceResponse.Builder<TDocument> extends ObjectBuilderBase implements ObjectBuilder<GetSourceResponse<TDocument>>
Builder for
GetSourceResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetSourceResponse<TDocument>
build()
Builds aGetSourceResponse
.GetSourceResponse.Builder<TDocument>
tDocumentSerializer(JsonpSerializer<TDocument> value)
Serializer for TDocument.GetSourceResponse.Builder<TDocument>
valueBody(TDocument value)
Required - Response value.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
-
valueBody
Required - Response value.API name:
_value_body
-
tDocumentSerializer
public final GetSourceResponse.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 aGetSourceResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-