Class InferenceConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InferenceConfig.Builder>
co.elastic.clients.elasticsearch.ingest.InferenceConfig.Builder
- All Implemented Interfaces:
WithJson<InferenceConfig.Builder>,ObjectBuilder<InferenceConfig>
- Enclosing class:
- InferenceConfig
public static class InferenceConfig.Builder extends WithJsonObjectBuilderBase<InferenceConfig.Builder> implements ObjectBuilder<InferenceConfig>
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description InferenceConfigbuild()ObjectBuilder<InferenceConfig>classification(InferenceConfigClassification v)ObjectBuilder<InferenceConfig>classification(java.util.function.Function<InferenceConfigClassification.Builder,ObjectBuilder<InferenceConfigClassification>> fn)ObjectBuilder<InferenceConfig>regression(InferenceConfigRegression v)ObjectBuilder<InferenceConfig>regression(java.util.function.Function<InferenceConfigRegression.Builder,ObjectBuilder<InferenceConfigRegression>> fn)protected InferenceConfig.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
selfin classWithJsonObjectBuilderBase<InferenceConfig.Builder>
-
regression
-
regression
public ObjectBuilder<InferenceConfig> regression(java.util.function.Function<InferenceConfigRegression.Builder,ObjectBuilder<InferenceConfigRegression>> fn) -
classification
-
classification
public ObjectBuilder<InferenceConfig> classification(java.util.function.Function<InferenceConfigClassification.Builder,ObjectBuilder<InferenceConfigClassification>> fn) -
build
- Specified by:
buildin interfaceObjectBuilder<InferenceConfig>
-