Class AgenticQueryTranslatorRequestProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.search_pipeline.AgenticQueryTranslatorRequestProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<AgenticQueryTranslatorRequestProcessor.Builder,,AgenticQueryTranslatorRequestProcessor> MutableBuilder<AgenticQueryTranslatorRequestProcessor.Builder,,AgenticQueryTranslatorRequestProcessor> ObjectBuilder<AgenticQueryTranslatorRequestProcessor>
- Enclosing class:
AgenticQueryTranslatorRequestProcessor
public static class AgenticQueryTranslatorRequestProcessor.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AgenticQueryTranslatorRequestProcessor.Builder,AgenticQueryTranslatorRequestProcessor>
Builder for
AgenticQueryTranslatorRequestProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - The ID of the agent to use for query translation.build()Builds aAgenticQueryTranslatorRequestProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.description(String value) API name:descriptionignoreFailure(Boolean value) API name:ignore_failureAPI 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<AgenticQueryTranslatorRequestProcessor.Builder,AgenticQueryTranslatorRequestProcessor> - Returns:
- a new builder instance.
-
agentId
Required - The ID of the agent to use for query translation.API name:
agent_id -
description
@Nonnull public final AgenticQueryTranslatorRequestProcessor.Builder description(@Nullable String value) API name:description -
ignoreFailure
@Nonnull public final AgenticQueryTranslatorRequestProcessor.Builder ignoreFailure(@Nullable Boolean value) API name:ignore_failure -
tag
API name:tag -
build
Builds aAgenticQueryTranslatorRequestProcessor.- Specified by:
buildin interfaceObjectBuilder<AgenticQueryTranslatorRequestProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-