Class InferenceAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<InferenceAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.InferenceAggregate.Builder
- All Implemented Interfaces:
WithJson<InferenceAggregate.Builder>,ObjectBuilder<InferenceAggregate>
- Enclosing class:
- InferenceAggregate
public static class InferenceAggregate.Builder extends AggregateBase.AbstractBuilder<InferenceAggregate.Builder> implements ObjectBuilder<InferenceAggregate>
Builder for
InferenceAggregate.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods 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
-
data
Additional dataAdds all entries of
maptodata. -
data
Additional dataAdds an entry to
data. -
value
API name:value -
value
public final InferenceAggregate.Builder value(java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)API name:value -
value
API name:value -
value
API name:value -
value
API name:value -
value
API name:value -
featureImportance
public final InferenceAggregate.Builder featureImportance(java.util.List<InferenceFeatureImportance> list)API name:feature_importanceAdds all elements of
listtofeatureImportance. -
featureImportance
public final InferenceAggregate.Builder featureImportance(InferenceFeatureImportance value, InferenceFeatureImportance... values)API name:feature_importanceAdds one or more values to
featureImportance. -
featureImportance
public final InferenceAggregate.Builder featureImportance(java.util.function.Function<InferenceFeatureImportance.Builder,ObjectBuilder<InferenceFeatureImportance>> fn)API name:feature_importanceAdds a value to
featureImportanceusing a builder lambda. -
topClasses
API name:top_classesAdds all elements of
listtotopClasses. -
topClasses
public final InferenceAggregate.Builder topClasses(InferenceTopClassEntry value, InferenceTopClassEntry... values)API name:top_classesAdds one or more values to
topClasses. -
topClasses
public final InferenceAggregate.Builder topClasses(java.util.function.Function<InferenceTopClassEntry.Builder,ObjectBuilder<InferenceTopClassEntry>> fn)API name:top_classesAdds a value to
topClassesusing a builder lambda. -
warning
API name:warning -
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<InferenceAggregate.Builder>
-
build
Builds aInferenceAggregate.- Specified by:
buildin interfaceObjectBuilder<InferenceAggregate>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-