Class InferenceProcessor.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
-
- org.opensearch.client.opensearch.ingest.InferenceProcessor.Builder
-
- All Implemented Interfaces:
ObjectBuilder<InferenceProcessor>
- Enclosing class:
- InferenceProcessor
public static class InferenceProcessor.Builder extends ProcessorBase.AbstractBuilder<InferenceProcessor.Builder> implements ObjectBuilder<InferenceProcessor>
Builder forInferenceProcessor
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferenceProcessor
build()
Builds aInferenceProcessor
.InferenceProcessor.Builder
fieldMap(java.lang.String key, JsonData value)
API name:field_map
InferenceProcessor.Builder
fieldMap(java.util.Map<java.lang.String,JsonData> map)
API name:field_map
InferenceProcessor.Builder
inferenceConfig(java.util.function.Function<InferenceConfig.Builder,ObjectBuilder<InferenceConfig>> fn)
API name:inference_config
InferenceProcessor.Builder
inferenceConfig(InferenceConfig value)
API name:inference_config
InferenceProcessor.Builder
modelId(java.lang.String value)
Required - API name:model_id
protected InferenceProcessor.Builder
self()
InferenceProcessor.Builder
targetField(java.lang.String value)
Required - API name:target_field
-
Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
if_, ignoreFailure, onFailure, onFailure, onFailure, tag
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
modelId
public final InferenceProcessor.Builder modelId(java.lang.String value)
Required - API name:model_id
-
targetField
public final InferenceProcessor.Builder targetField(java.lang.String value)
Required - API name:target_field
-
fieldMap
public final InferenceProcessor.Builder fieldMap(java.util.Map<java.lang.String,JsonData> map)
API name:field_map
Adds all entries of
map
tofieldMap
.
-
fieldMap
public final InferenceProcessor.Builder fieldMap(java.lang.String key, JsonData value)
API name:field_map
Adds an entry to
fieldMap
.
-
inferenceConfig
public final InferenceProcessor.Builder inferenceConfig(@Nullable InferenceConfig value)
API name:inference_config
-
inferenceConfig
public final InferenceProcessor.Builder inferenceConfig(java.util.function.Function<InferenceConfig.Builder,ObjectBuilder<InferenceConfig>> fn)
API name:inference_config
-
self
protected InferenceProcessor.Builder self()
- Specified by:
self
in classProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
-
build
public InferenceProcessor build()
Builds aInferenceProcessor
.- Specified by:
build
in interfaceObjectBuilder<InferenceProcessor>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-