Class InferenceAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.PipelineAggregationBase.AbstractBuilder<InferenceAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.InferenceAggregation.Builder
- All Implemented Interfaces:
WithJson<InferenceAggregation.Builder>,ObjectBuilder<InferenceAggregation>
- Enclosing class:
- InferenceAggregation
public static class InferenceAggregation.Builder
extends PipelineAggregationBase.AbstractBuilder<InferenceAggregation.Builder>
implements ObjectBuilder<InferenceAggregation>
Builder for
InferenceAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aInferenceAggregation.inferenceConfig(InferenceConfig value) Contains the inference type and its options.Contains the inference type and its options.Required - The ID or alias for the trained model.protected InferenceAggregation.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.PipelineAggregationBase.AbstractBuilder
format, gapPolicyMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder
bucketsPath, bucketsPathMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
Required - The ID or alias for the trained model.API name:
model_id -
inferenceConfig
Contains the inference type and its options.API name:
inference_config -
inferenceConfig
public final InferenceAggregation.Builder inferenceConfig(Function<InferenceConfig.Builder, ObjectBuilder<InferenceConfig>> fn) Contains the inference type and its options.API name:
inference_config -
self
- Specified by:
selfin classBucketPathAggregation.AbstractBuilder<InferenceAggregation.Builder>
-
build
Builds aInferenceAggregation.- Specified by:
buildin interfaceObjectBuilder<InferenceAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-