Class GeoCentroidAggregate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.GeoCentroidAggregate.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoCentroidAggregate.Builder,,GeoCentroidAggregate> MutableBuilder<GeoCentroidAggregate.Builder,,GeoCentroidAggregate> ObjectBuilder<GeoCentroidAggregate>
- Enclosing class:
GeoCentroidAggregate
public static class GeoCentroidAggregate.Builder
extends AggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
implements CopyableBuilder<GeoCentroidAggregate.Builder,GeoCentroidAggregate>
Builder for
GeoCentroidAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoCentroidAggregate.copy()Create a new builderCopyableBuilderthat is a copy of this one.count(long value) Required - API name:countAPI name:locationlocation(GeoLocation value) API name:locationprotected GeoCentroidAggregate.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GeoCentroidAggregate.Builder,GeoCentroidAggregate> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<GeoCentroidAggregate.Builder>
-
count
Required - API name:count -
location
API name:location -
location
@Nonnull public final GeoCentroidAggregate.Builder location(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) API name:location -
build
Builds aGeoCentroidAggregate.- Specified by:
buildin interfaceObjectBuilder<GeoCentroidAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-