Class StatsAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder<StatsAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.StatsAggregation.Builder
- All Implemented Interfaces:
ObjectBuilder<StatsAggregation>
- Enclosing class:
- StatsAggregation
public static class StatsAggregation.Builder extends FormatMetricAggregationBase.AbstractBuilder<StatsAggregation.Builder> implements ObjectBuilder<StatsAggregation>
Builder for
StatsAggregation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StatsAggregation
build()
Builds aStatsAggregation
.protected StatsAggregation.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.FormatMetricAggregationBase.AbstractBuilder
format
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, missing, script, script
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
-
self
- Specified by:
self
in classMetricAggregationBase.AbstractBuilder<StatsAggregation.Builder>
-
build
Builds aStatsAggregation
.- Specified by:
build
in interfaceObjectBuilder<StatsAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-