Class AggregateOutput.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.put_trained_model.AggregateOutput.Builder
- All Implemented Interfaces:
ObjectBuilder<AggregateOutput>
- Enclosing class:
- AggregateOutput
public static class AggregateOutput.Builder extends ObjectBuilderBase implements ObjectBuilder<AggregateOutput>
Builder for
AggregateOutput
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AggregateOutput
build()
Builds aAggregateOutput
.AggregateOutput.Builder
exponent(Weights value)
API name:exponent
AggregateOutput.Builder
exponent(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)
API name:exponent
AggregateOutput.Builder
logisticRegression(Weights value)
API name:logistic_regression
AggregateOutput.Builder
logisticRegression(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)
API name:logistic_regression
AggregateOutput.Builder
weightedMode(Weights value)
API name:weighted_mode
AggregateOutput.Builder
weightedMode(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)
API name:weighted_mode
AggregateOutput.Builder
weightedSum(Weights value)
API name:weighted_sum
AggregateOutput.Builder
weightedSum(java.util.function.Function<Weights.Builder,ObjectBuilder<Weights>> fn)
API name:weighted_sum
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
-
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
-
build
Builds aAggregateOutput
.- Specified by:
build
in interfaceObjectBuilder<AggregateOutput>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-