Class Ensemble.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Ensemble.Builder>
co.elastic.clients.elasticsearch.ml.put_trained_model.Ensemble.Builder
- All Implemented Interfaces:
WithJson<Ensemble.Builder>
,ObjectBuilder<Ensemble>
- Enclosing class:
- Ensemble
public static class Ensemble.Builder
extends WithJsonObjectBuilderBase<Ensemble.Builder>
implements ObjectBuilder<Ensemble>
Builder for
Ensemble
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Ensemble.Builder
aggregateOutput
(AggregateOutput value) API name:aggregate_output
final Ensemble.Builder
API name:aggregate_output
build()
Builds aEnsemble
.final Ensemble.Builder
classificationLabels
(String value, String... values) API name:classification_labels
final Ensemble.Builder
classificationLabels
(List<String> list) API name:classification_labels
final Ensemble.Builder
featureNames
(String value, String... values) API name:feature_names
final Ensemble.Builder
featureNames
(List<String> list) API name:feature_names
protected Ensemble.Builder
self()
final Ensemble.Builder
targetType
(String value) API name:target_type
final Ensemble.Builder
trainedModels
(TrainedModel value, TrainedModel... values) Required - API name:trained_models
final Ensemble.Builder
Required - API name:trained_models
final Ensemble.Builder
trainedModels
(List<TrainedModel> list) Required - API name:trained_models
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregateOutput
API name:aggregate_output
-
aggregateOutput
public final Ensemble.Builder aggregateOutput(Function<AggregateOutput.Builder, ObjectBuilder<AggregateOutput>> fn) API name:aggregate_output
-
classificationLabels
API name:classification_labels
Adds all elements of
list
toclassificationLabels
. -
classificationLabels
API name:classification_labels
Adds one or more values to
classificationLabels
. -
featureNames
API name:feature_names
Adds all elements of
list
tofeatureNames
. -
featureNames
API name:feature_names
Adds one or more values to
featureNames
. -
targetType
API name:target_type
-
trainedModels
Required - API name:trained_models
Adds all elements of
list
totrainedModels
. -
trainedModels
Required - API name:trained_models
Adds one or more values to
trainedModels
. -
trainedModels
public final Ensemble.Builder trainedModels(Function<TrainedModel.Builder, ObjectBuilder<TrainedModel>> fn) Required - API name:trained_models
Adds a value to
trainedModels
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Ensemble.Builder>
-
build
Builds aEnsemble
.- Specified by:
build
in interfaceObjectBuilder<Ensemble>
- Throws:
NullPointerException
- if some of the required fields are null.
-