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 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_regressionprotected AggregateOutput.Builderself()AggregateOutput.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 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
-
logisticRegression
API name:logistic_regression -
logisticRegression
public final AggregateOutput.Builder logisticRegression(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:logistic_regression -
weightedSum
API name:weighted_sum -
weightedSum
public final AggregateOutput.Builder weightedSum(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_sum -
weightedMode
API name:weighted_mode -
weightedMode
public final AggregateOutput.Builder weightedMode(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:weighted_mode -
exponent
API name:exponent -
exponent
public final AggregateOutput.Builder exponent(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)API name:exponent -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AggregateOutput.Builder>
-
build
Builds aAggregateOutput.- Specified by:
buildin interfaceObjectBuilder<AggregateOutput>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-