Class TopMetricsAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<TopMetricsAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.TopMetricsAggregate.Builder
- All Implemented Interfaces:
WithJson<TopMetricsAggregate.Builder>
,ObjectBuilder<TopMetricsAggregate>
- Enclosing class:
- TopMetricsAggregate
public static class TopMetricsAggregate.Builder extends AggregateBase.AbstractBuilder<TopMetricsAggregate.Builder> implements ObjectBuilder<TopMetricsAggregate>
Builder for
TopMetricsAggregate
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TopMetricsAggregate
build()
Builds aTopMetricsAggregate
.protected TopMetricsAggregate.Builder
self()
TopMetricsAggregate.Builder
top(TopMetrics value, TopMetrics... values)
Required - API name:top
TopMetricsAggregate.Builder
top(java.util.function.Function<TopMetrics.Builder,ObjectBuilder<TopMetrics>> fn)
Required - API name:top
TopMetricsAggregate.Builder
top(java.util.List<TopMetrics> list)
Required - API name:top
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
top
Required - API name:top
Adds all elements of
list
totop
. -
top
Required - API name:top
Adds one or more values to
top
. -
top
public final TopMetricsAggregate.Builder top(java.util.function.Function<TopMetrics.Builder,ObjectBuilder<TopMetrics>> fn)Required - API name:top
Adds a value to
top
using a builder lambda. -
self
- Specified by:
self
in classAggregateBase.AbstractBuilder<TopMetricsAggregate.Builder>
-
build
Builds aTopMetricsAggregate
.- Specified by:
build
in interfaceObjectBuilder<TopMetricsAggregate>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-