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, meta
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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
map
todata
. -
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_importance
Adds all elements of
list
tofeatureImportance
. -
featureImportance
public final InferenceAggregate.Builder featureImportance(InferenceFeatureImportance value, InferenceFeatureImportance... values)API name:feature_importance
Adds one or more values to
featureImportance
. -
featureImportance
public final InferenceAggregate.Builder featureImportance(java.util.function.Function<InferenceFeatureImportance.Builder,ObjectBuilder<InferenceFeatureImportance>> fn)API name:feature_importance
Adds a value to
featureImportance
using a builder lambda. -
topClasses
API name:top_classes
Adds all elements of
list
totopClasses
. -
topClasses
public final InferenceAggregate.Builder topClasses(InferenceTopClassEntry value, InferenceTopClassEntry... values)API name:top_classes
Adds one or more values to
topClasses
. -
topClasses
public final InferenceAggregate.Builder topClasses(java.util.function.Function<InferenceTopClassEntry.Builder,ObjectBuilder<InferenceTopClassEntry>> fn)API name:top_classes
Adds a value to
topClasses
using a builder lambda. -
warning
API name:warning
-
self
- Specified by:
self
in classAggregateBase.AbstractBuilder<InferenceAggregate.Builder>
-
build
Builds aInferenceAggregate
.- Specified by:
build
in interfaceObjectBuilder<InferenceAggregate>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-