Class RerankResponseProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.search_pipeline.RerankResponseProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<RerankResponseProcessor.Builder,,RerankResponseProcessor> MutableBuilder<RerankResponseProcessor.Builder,,RerankResponseProcessor> ObjectBuilder<RerankResponseProcessor>
- Enclosing class:
RerankResponseProcessor
public static class RerankResponseProcessor.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RerankResponseProcessor.Builder,RerankResponseProcessor>
Builder for
RerankResponseProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRerankResponseProcessor.API name:contextcontext(RerankContext value) API name:contextcopy()Create a new builderCopyableBuilderthat is a copy of this one.description(String value) API name:descriptionignoreFailure(Boolean value) API name:ignore_failureAPI name:ml_opensearchmlOpensearch(MLOpenSearchReranker value) API name:ml_opensearchAPI name:tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RerankResponseProcessor.Builder,RerankResponseProcessor> - Returns:
- a new builder instance.
-
context
API name:context -
context
@Nonnull public final RerankResponseProcessor.Builder context(Function<RerankContext.Builder, ObjectBuilder<RerankContext>> fn) API name:context -
description
API name:description -
ignoreFailure
API name:ignore_failure -
mlOpensearch
@Nonnull public final RerankResponseProcessor.Builder mlOpensearch(@Nullable MLOpenSearchReranker value) API name:ml_opensearch -
mlOpensearch
@Nonnull public final RerankResponseProcessor.Builder mlOpensearch(Function<MLOpenSearchReranker.Builder, ObjectBuilder<MLOpenSearchReranker>> fn) API name:ml_opensearch -
tag
API name:tag -
build
Builds aRerankResponseProcessor.- Specified by:
buildin interfaceObjectBuilder<RerankResponseProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-