Class Definition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Definition.Builder>
co.elastic.clients.elasticsearch.ml.put_trained_model.Definition.Builder
- All Implemented Interfaces:
WithJson<Definition.Builder>
,ObjectBuilder<Definition>
- Enclosing class:
- Definition
public static class Definition.Builder extends WithJsonObjectBuilderBase<Definition.Builder> implements ObjectBuilder<Definition>
Builder for
Definition
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Definition
build()
Builds aDefinition
.Definition.Builder
preprocessors(Preprocessor value, Preprocessor... values)
Collection of preprocessorsDefinition.Builder
preprocessors(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)
Collection of preprocessorsDefinition.Builder
preprocessors(java.util.List<Preprocessor> list)
Collection of preprocessorsprotected Definition.Builder
self()
Definition.Builder
trainedModel(TrainedModel value)
Required - The definition of the trained model.Definition.Builder
trainedModel(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)
Required - The definition of the trained model.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
topreprocessors
. -
preprocessors
Collection of preprocessorsAPI name:
preprocessors
Adds 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:
preprocessors
Adds a value to
preprocessors
using 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Definition.Builder>
-
build
Builds aDefinition
.- Specified by:
build
in interfaceObjectBuilder<Definition>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-