Class GeoCentroidAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeoCentroidAggregate.Builder
- All Implemented Interfaces:
WithJson<GeoCentroidAggregate.Builder>,ObjectBuilder<GeoCentroidAggregate>
- Enclosing class:
- GeoCentroidAggregate
public static class GeoCentroidAggregate.Builder
extends AggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
implements ObjectBuilder<GeoCentroidAggregate>
Builder for
GeoCentroidAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoCentroidAggregate.count(long value) Required - API name:countlocation(GeoLocation value) API name:locationAPI name:locationprotected GeoCentroidAggregate.Builderself()Methods 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, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count -
location
API name:location -
location
public final GeoCentroidAggregate.Builder location(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) API name:location -
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
-
build
Builds aGeoCentroidAggregate.- Specified by:
buildin interfaceObjectBuilder<GeoCentroidAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-