Class AggregateOutput.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.AggregateOutput.Builder
- All Implemented Interfaces:
ObjectBuilder<AggregateOutput>
- Enclosing class:
- AggregateOutput
public static class AggregateOutput.Builder extends java.lang.Object implements ObjectBuilder<AggregateOutput>
Builder for
AggregateOutput.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description AggregateOutputbuild()Builds aAggregateOutput.AggregateOutput.Builderexponent(Weights value)API name:exponentAggregateOutput.Builderexponent(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:exponentAggregateOutput.BuilderlogisticRegression(Weights value)API name:logistic_regressionAggregateOutput.BuilderlogisticRegression(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:logistic_regressionAggregateOutput.BuilderweightedMode(Weights value)API name:weighted_modeAggregateOutput.BuilderweightedMode(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_modeAggregateOutput.BuilderweightedSum(Weights value)API name:weighted_sumAggregateOutput.BuilderweightedSum(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_sumMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logisticRegression
API name:logistic_regression -
logisticRegression
public AggregateOutput.Builder logisticRegression(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:logistic_regression -
weightedSum
API name:weighted_sum -
weightedSum
public AggregateOutput.Builder weightedSum(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_sum -
weightedMode
API name:weighted_mode -
weightedMode
public AggregateOutput.Builder weightedMode(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_mode -
exponent
API name:exponent -
exponent
public AggregateOutput.Builder exponent(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:exponent -
build
Builds aAggregateOutput.- Specified by:
buildin interfaceObjectBuilder<AggregateOutput>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-