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
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelInferenceFeatureImportancebuild()Builds aTrainedModelInferenceFeatureImportance.TrainedModelInferenceFeatureImportance.Builderclasses(TrainedModelInferenceClassImportance value, TrainedModelInferenceClassImportance... values)API name:classesTrainedModelInferenceFeatureImportance.Builderclasses(java.util.function.Function<TrainedModelInferenceClassImportance.Builder,ObjectBuilder<TrainedModelInferenceClassImportance>> fn)API name:classesTrainedModelInferenceFeatureImportance.Builderclasses(java.util.List<TrainedModelInferenceClassImportance> list)API name:classesTrainedModelInferenceFeatureImportance.BuilderfeatureName(java.lang.String value)Required - API name:feature_nameTrainedModelInferenceFeatureImportance.Builderimportance(java.lang.Double value)API name:importanceprotected TrainedModelInferenceFeatureImportance.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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
-
featureName
Required - API name:feature_name -
importance
public final TrainedModelInferenceFeatureImportance.Builder importance(@Nullable java.lang.Double value)API name:importance -
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(java.util.List<TrainedModelInferenceClassImportance> list)API name:classesAdds all elements of
listtoclasses. -
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(TrainedModelInferenceClassImportance value, TrainedModelInferenceClassImportance... values)API name:classesAdds one or more values to
classes. -
classes
public final TrainedModelInferenceFeatureImportance.Builder classes(java.util.function.Function<TrainedModelInferenceClassImportance.Builder,ObjectBuilder<TrainedModelInferenceClassImportance>> fn)API name:classesAdds a value to
classesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelInferenceFeatureImportance.Builder>
-
build
Builds aTrainedModelInferenceFeatureImportance.- Specified by:
buildin interfaceObjectBuilder<TrainedModelInferenceFeatureImportance>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-