Class TopMetricsAggregation.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder<TopMetricsAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.TopMetricsAggregation.Builder
- All Implemented Interfaces:
ObjectBuilder<TopMetricsAggregation>
- Enclosing class:
- TopMetricsAggregation
public static class TopMetricsAggregation.Builder extends MetricAggregationBase.AbstractBuilder<TopMetricsAggregation.Builder> implements ObjectBuilder<TopMetricsAggregation>
Builder for
TopMetricsAggregation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, scriptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metrics
API name:metrics -
metrics
API name:metrics -
addMetrics
Add a value tometrics(List), creating the list if needed. -
metrics
public TopMetricsAggregation.Builder metrics(java.util.function.Function<TopMetricsValue.Builder,ObjectBuilder<TopMetricsValue>> fn)Setmetrics(List)to a singleton list. -
addMetrics
public TopMetricsAggregation.Builder addMetrics(java.util.function.Function<TopMetricsValue.Builder,ObjectBuilder<TopMetricsValue>> fn)Add a value tometrics(List), creating the list if needed. -
size
API name:size -
sort
API name:sort -
sort
API name:sort -
addSort
Add a value tosort(List), creating the list if needed. -
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<TopMetricsAggregation.Builder>
-
build
Builds aTopMetricsAggregation.- Specified by:
buildin interfaceObjectBuilder<TopMetricsAggregation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-