Class InferenceConfigClassification.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InferenceConfigClassification.Builder>
co.elastic.clients.elasticsearch.ingest.InferenceConfigClassification.Builder
- All Implemented Interfaces:
WithJson<InferenceConfigClassification.Builder>,ObjectBuilder<InferenceConfigClassification>
- Enclosing class:
- InferenceConfigClassification
public static class InferenceConfigClassification.Builder extends WithJsonObjectBuilderBase<InferenceConfigClassification.Builder> implements ObjectBuilder<InferenceConfigClassification>
Builder for
InferenceConfigClassification.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description InferenceConfigClassificationbuild()Builds aInferenceConfigClassification.InferenceConfigClassification.BuildernumTopClasses(java.lang.Integer value)API name:num_top_classesInferenceConfigClassification.BuildernumTopFeatureImportanceValues(java.lang.Integer value)API name:num_top_feature_importance_valuesInferenceConfigClassification.BuilderpredictionFieldType(java.lang.String value)API name:prediction_field_typeInferenceConfigClassification.BuilderresultsField(java.lang.String value)API name:results_fieldprotected InferenceConfigClassification.Builderself()InferenceConfigClassification.BuildertopClassesResultsField(java.lang.String value)API name:top_classes_results_fieldMethods 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
-
numTopClasses
public final InferenceConfigClassification.Builder numTopClasses(@Nullable java.lang.Integer value)API name:num_top_classes -
numTopFeatureImportanceValues
public final InferenceConfigClassification.Builder numTopFeatureImportanceValues(@Nullable java.lang.Integer value)API name:num_top_feature_importance_values -
resultsField
API name:results_field -
topClassesResultsField
public final InferenceConfigClassification.Builder topClassesResultsField(@Nullable java.lang.String value)API name:top_classes_results_field -
predictionFieldType
public final InferenceConfigClassification.Builder predictionFieldType(@Nullable java.lang.String value)API name:prediction_field_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<InferenceConfigClassification.Builder>
-
build
Builds aInferenceConfigClassification.- Specified by:
buildin interfaceObjectBuilder<InferenceConfigClassification>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-