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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAggregateOutput
.final AggregateOutput.Builder
API name:exponent
final AggregateOutput.Builder
API name:exponent
final AggregateOutput.Builder
logisticRegression
(Weights value) API name:logistic_regression
final AggregateOutput.Builder
API name:logistic_regression
protected AggregateOutput.Builder
self()
final AggregateOutput.Builder
weightedMode
(Weights value) API name:weighted_mode
final AggregateOutput.Builder
API name:weighted_mode
final AggregateOutput.Builder
weightedSum
(Weights value) API name:weighted_sum
final AggregateOutput.Builder
API name:weighted_sum
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
self
in classWithJsonObjectBuilderBase<AggregateOutput.Builder>
-
build
Builds aAggregateOutput
.- Specified by:
build
in interfaceObjectBuilder<AggregateOutput>
- Throws:
NullPointerException
- if some of the required fields are null.
-