Class Definition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.put_trained_model.Definition.Builder
- All Implemented Interfaces:
ObjectBuilder<Definition>
- Enclosing class:
- Definition
public static class Definition.Builder extends ObjectBuilderBase implements ObjectBuilder<Definition>
Builder for
Definition.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Definitionbuild()Builds aDefinition.Definition.Builderpreprocessors(Preprocessor value, Preprocessor... values)Collection of preprocessorsDefinition.Builderpreprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Collection of preprocessorsDefinition.Builderpreprocessors(java.util.List<Preprocessor> list)Collection of preprocessorsDefinition.BuildertrainedModel(TrainedModel value)Required - The definition of the trained model.Definition.BuildertrainedModel(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)Required - The definition of the trained model.Methods 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
-
preprocessors
Collection of preprocessorsAPI name:
preprocessorsAdds all elements of
listtopreprocessors. -
preprocessors
Collection of preprocessorsAPI name:
preprocessorsAdds one or more values to
preprocessors. -
preprocessors
public final Definition.Builder preprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)Collection of preprocessorsAPI name:
preprocessorsAdds a value to
preprocessorsusing a builder lambda. -
trainedModel
Required - The definition of the trained model.API name:
trained_model -
trainedModel
public final Definition.Builder trainedModel(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)Required - 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.
-