Class InferenceConfig.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ingest.InferenceConfig.Builder
-
- All Implemented Interfaces:
ObjectBuilder<InferenceConfig>
- Enclosing class:
- InferenceConfig
public static class InferenceConfig.Builder extends ObjectBuilderBase implements ObjectBuilder<InferenceConfig>
Builder forInferenceConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferenceConfig
build()
Builds aInferenceConfig
.InferenceConfig.Builder
regression(java.util.function.Function<InferenceConfigRegression.Builder,ObjectBuilder<InferenceConfigRegression>> fn)
API name:regression
InferenceConfig.Builder
regression(InferenceConfigRegression value)
API name:regression
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
regression
public final InferenceConfig.Builder regression(@Nullable InferenceConfigRegression value)
API name:regression
-
regression
public final InferenceConfig.Builder regression(java.util.function.Function<InferenceConfigRegression.Builder,ObjectBuilder<InferenceConfigRegression>> fn)
API name:regression
-
build
public InferenceConfig build()
Builds aInferenceConfig
.- Specified by:
build
in interfaceObjectBuilder<InferenceConfig>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-