Class AggregateOutput.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AggregateOutput.Builder>
co.elastic.clients.elasticsearch.ml.put_trained_model.AggregateOutput.Builder
- All Implemented Interfaces:
WithJson<AggregateOutput.Builder>,ObjectBuilder<AggregateOutput>
- Enclosing class:
- AggregateOutput
public static class AggregateOutput.Builder
extends WithJsonObjectBuilderBase<AggregateOutput.Builder>
implements ObjectBuilder<AggregateOutput>
Builder for
AggregateOutput.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAggregateOutput.final AggregateOutput.BuilderAPI name:exponentfinal AggregateOutput.BuilderAPI name:exponentfinal AggregateOutput.BuilderlogisticRegression(Weights value) API name:logistic_regressionfinal AggregateOutput.BuilderAPI name:logistic_regressionprotected AggregateOutput.Builderself()final AggregateOutput.BuilderweightedMode(Weights value) API name:weighted_modefinal AggregateOutput.BuilderAPI name:weighted_modefinal AggregateOutput.BuilderweightedSum(Weights value) API name:weighted_sumfinal AggregateOutput.BuilderAPI name:weighted_sumMethods 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
-
logisticRegression
API name:logistic_regression -
logisticRegression
public final AggregateOutput.Builder logisticRegression(Function<Weights.Builder, ObjectBuilder<Weights>> fn) API name:logistic_regression -
weightedSum
API name:weighted_sum -
weightedSum
public final AggregateOutput.Builder weightedSum(Function<Weights.Builder, ObjectBuilder<Weights>> fn) API name:weighted_sum -
weightedMode
API name:weighted_mode -
weightedMode
public final AggregateOutput.Builder weightedMode(Function<Weights.Builder, ObjectBuilder<Weights>> fn) API name:weighted_mode -
exponent
API name:exponent -
exponent
API name:exponent -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AggregateOutput.Builder>
-
build
Builds aAggregateOutput.- Specified by:
buildin interfaceObjectBuilder<AggregateOutput>- Throws:
NullPointerException- if some of the required fields are null.
-