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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GeoCentroidAggregatebuild()Builds aGeoCentroidAggregate.GeoCentroidAggregate.Buildercount(long value)Required - API name:countGeoCentroidAggregate.Builderlocation(GeoLocation value)API name:locationGeoCentroidAggregate.Builderlocation(java.util.function.Function<GeoLocation.Builder,ObjectBuilder<GeoLocation>> fn)API 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, _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
-
count
Required - API name:count -
location
API name:location -
location
public final GeoCentroidAggregate.Builder location(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-