Class ExplainResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.ExplainResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<ExplainResponse<TDocument>>
- Enclosing class:
- ExplainResponse<TDocument>
public static class ExplainResponse.Builder<TDocument> extends ObjectBuilderBase implements ObjectBuilder<ExplainResponse<TDocument>>
Builder for
ExplainResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ExplainResponse<TDocument>build()Builds aExplainResponse.ExplainResponse.Builder<TDocument>explanation(ExplanationDetail value)API name:explanationExplainResponse.Builder<TDocument>explanation(java.util.function.Function<ExplanationDetail.Builder,ObjectBuilder<ExplanationDetail>> fn)API name:explanationExplainResponse.Builder<TDocument>get(InlineGet<TDocument> value)API name:getExplainResponse.Builder<TDocument>get(java.util.function.Function<InlineGet.Builder<TDocument>,ObjectBuilder<InlineGet<TDocument>>> fn)API name:getExplainResponse.Builder<TDocument>id(java.lang.String value)Required - API name:_idExplainResponse.Builder<TDocument>index(java.lang.String value)Required - API name:_indexExplainResponse.Builder<TDocument>matched(boolean value)Required - API name:matchedExplainResponse.Builder<TDocument>tDocumentSerializer(JsonpSerializer<TDocument> value)Serializer for TDocument.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - API name:_index -
id
Required - API name:_id -
matched
Required - API name:matched -
explanation
API name:explanation -
explanation
public final ExplainResponse.Builder<TDocument> explanation(java.util.function.Function<ExplanationDetail.Builder,ObjectBuilder<ExplanationDetail>> fn)API name:explanation -
get
API name:get -
get
public final ExplainResponse.Builder<TDocument> get(java.util.function.Function<InlineGet.Builder<TDocument>,ObjectBuilder<InlineGet<TDocument>>> fn)API name:get -
tDocumentSerializer
public final ExplainResponse.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 aExplainResponse.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-