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 TopMetricsAggregatebuild()Builds aTopMetricsAggregate.protected TopMetricsAggregate.Builderself()TopMetricsAggregate.Buildertop(TopMetrics value, TopMetrics... values)Required - API name:topTopMetricsAggregate.Buildertop(java.util.function.Function<TopMetrics.Builder,ObjectBuilder<TopMetrics>> fn)Required - API name:topTopMetricsAggregate.Buildertop(java.util.List<TopMetrics> list)Required - API name:topMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:topAdds all elements of
listtotop. -
top
Required - API name:topAdds one or more values to
top. -
top
public final TopMetricsAggregate.Builder top(java.util.function.Function<TopMetrics.Builder,ObjectBuilder<TopMetrics>> fn)Required - API name:topAdds a value to
topusing a builder lambda. -
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<TopMetricsAggregate.Builder>
-
build
Builds aTopMetricsAggregate.- Specified by:
buildin interfaceObjectBuilder<TopMetricsAggregate>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-