Class NeuralQueryEnricherRequestProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.search_pipeline.NeuralQueryEnricherRequestProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<NeuralQueryEnricherRequestProcessor.Builder,,NeuralQueryEnricherRequestProcessor> MutableBuilder<NeuralQueryEnricherRequestProcessor.Builder,,NeuralQueryEnricherRequestProcessor> ObjectBuilder<NeuralQueryEnricherRequestProcessor>
- Enclosing class:
NeuralQueryEnricherRequestProcessor
public static class NeuralQueryEnricherRequestProcessor.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NeuralQueryEnricherRequestProcessor.Builder,NeuralQueryEnricherRequestProcessor>
Builder for
NeuralQueryEnricherRequestProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNeuralQueryEnricherRequestProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.defaultModelId(String value) API name:default_model_iddescription(String value) API name:descriptionneuralFieldDefaultId(String key, String value) API name:neural_field_default_idneuralFieldDefaultId(Map<String, String> map) API name:neural_field_default_idAPI 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<NeuralQueryEnricherRequestProcessor.Builder,NeuralQueryEnricherRequestProcessor> - Returns:
- a new builder instance.
-
defaultModelId
@Nonnull public final NeuralQueryEnricherRequestProcessor.Builder defaultModelId(@Nullable String value) API name:default_model_id -
description
@Nonnull public final NeuralQueryEnricherRequestProcessor.Builder description(@Nullable String value) API name:description -
neuralFieldDefaultId
@Nonnull public final NeuralQueryEnricherRequestProcessor.Builder neuralFieldDefaultId(Map<String, String> map) API name:neural_field_default_idAdds all elements of
maptoneuralFieldDefaultId. -
neuralFieldDefaultId
@Nonnull public final NeuralQueryEnricherRequestProcessor.Builder neuralFieldDefaultId(String key, String value) API name:neural_field_default_idAdds an entry to
neuralFieldDefaultId. -
tag
API name:tag -
build
Builds aNeuralQueryEnricherRequestProcessor.- Specified by:
buildin interfaceObjectBuilder<NeuralQueryEnricherRequestProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-