Class GeoCentroidAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.GeoCentroidAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoCentroidAggregation.Builder,,GeoCentroidAggregation> MutableBuilder<GeoCentroidAggregation.Builder,,GeoCentroidAggregation> ObjectBuilder<GeoCentroidAggregation>
- Enclosing class:
GeoCentroidAggregation
public static class GeoCentroidAggregation.Builder
extends MetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
implements CopyableBuilder<GeoCentroidAggregation.Builder,GeoCentroidAggregation>
Builder for
GeoCentroidAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoCentroidAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:countAPI name:locationlocation(GeoLocation value) API name:locationprotected GeoCentroidAggregation.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, missing, script, scriptMethods 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<GeoCentroidAggregation.Builder,GeoCentroidAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
-
count
API name:count -
location
API name:location -
location
@Nonnull public final GeoCentroidAggregation.Builder location(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) API name:location -
build
Builds aGeoCentroidAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoCentroidAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-