Class Definition.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.Definition.Builder
- All Implemented Interfaces:
ObjectBuilder<Definition>
- Enclosing class:
- Definition
public static class Definition.Builder extends java.lang.Object implements ObjectBuilder<Definition>
Builder for
Definition.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Definition.BuilderaddPreprocessors(Preprocessor value)Add a value topreprocessors(List), creating the list if needed.Definition.BuilderaddPreprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Add a value topreprocessors(List), creating the list if needed.Definitionbuild()Builds aDefinition.Definition.Builderpreprocessors(Preprocessor... value)Collection of preprocessorsDefinition.Builderpreprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Setpreprocessors(List)to a singleton list.Definition.Builderpreprocessors(java.util.List<Preprocessor> value)Collection of preprocessorsDefinition.BuildertrainedModel(TrainedModel value)The definition of the trained model.Definition.BuildertrainedModel(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)The definition of the trained model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
preprocessors
Collection of preprocessorsAPI name:
preprocessors -
preprocessors
Collection of preprocessorsAPI name:
preprocessors -
addPreprocessors
Add a value topreprocessors(List), creating the list if needed. 4 -
preprocessors
public Definition.Builder preprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Setpreprocessors(List)to a singleton list. -
addPreprocessors
public Definition.Builder addPreprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Add a value topreprocessors(List), creating the list if needed. 5 -
trainedModel
The definition of the trained model.API name:
trained_model -
trainedModel
public Definition.Builder trainedModel(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)The definition of the trained model.API name:
trained_model -
build
Builds aDefinition.- Specified by:
buildin interfaceObjectBuilder<Definition>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-