Class ExplainResponse.Builder<TDocument>
java.lang.Object
org.opensearch.client.opensearch._global.ExplainResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<ExplainResponse<TDocument>>
- Enclosing class:
- ExplainResponse<TDocument>
public static class ExplainResponse.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<ExplainResponse<TDocument>>
Builder for
ExplainResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
API name:_index -
type
API name:_type -
id
API name:_id -
matched
API name:matched -
explanation
API name:explanation -
explanation
public ExplainResponse.Builder<TDocument> explanation(java.util.function.Function<ExplanationDetail.Builder,ObjectBuilder<ExplanationDetail>> fn)API name:explanation -
get
API name:get -
get
public ExplainResponse.Builder<TDocument> get(java.util.function.Function<InlineGet.Builder<TDocument>,ObjectBuilder<InlineGet<TDocument>>> fn)API name:get -
tDocumentSerializer
public 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.
-