Class TrainedModelInferenceFeatureImportance.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelInferenceFeatureImportance.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceFeatureImportance.Builder
- All Implemented Interfaces:
WithJson<TrainedModelInferenceFeatureImportance.Builder>
,ObjectBuilder<TrainedModelInferenceFeatureImportance>
- Enclosing class:
- TrainedModelInferenceFeatureImportance
public static class TrainedModelInferenceFeatureImportance.Builder
extends WithJsonObjectBuilderBase<TrainedModelInferenceFeatureImportance.Builder>
implements ObjectBuilder<TrainedModelInferenceFeatureImportance>
Builder for
TrainedModelInferenceFeatureImportance
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTrainedModelInferenceFeatureImportance
.classes
(TrainedModelInferenceClassImportance value, TrainedModelInferenceClassImportance... values) API name:classes
classes
(Function<TrainedModelInferenceClassImportance.Builder, ObjectBuilder<TrainedModelInferenceClassImportance>> fn) API name:classes
API name:classes
featureName
(String value) Required - API name:feature_name
importance
(Double value) API name:importance
self()
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
-
featureName
Required - API name:feature_name
-
importance
API name:importance
-
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(List<TrainedModelInferenceClassImportance> list) API name:classes
Adds all elements of
list
toclasses
. -
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(TrainedModelInferenceClassImportance value, TrainedModelInferenceClassImportance... values) API name:classes
Adds one or more values to
classes
. -
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(Function<TrainedModelInferenceClassImportance.Builder, ObjectBuilder<TrainedModelInferenceClassImportance>> fn) API name:classes
Adds a value to
classes
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelInferenceFeatureImportance.Builder>
-
build
Builds aTrainedModelInferenceFeatureImportance
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelInferenceFeatureImportance>
- Throws:
NullPointerException
- if some of the required fields are null.
-