Class GeoBoundsAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase.AbstractBuilder<GeoBoundsAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.GeoBoundsAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoBoundsAggregation.Builder,,GeoBoundsAggregation> MutableBuilder<GeoBoundsAggregation.Builder,,GeoBoundsAggregation> ObjectBuilder<GeoBoundsAggregation>
- Enclosing class:
GeoBoundsAggregation
public static class GeoBoundsAggregation.Builder
extends MetricAggregationBase.AbstractBuilder<GeoBoundsAggregation.Builder>
implements CopyableBuilder<GeoBoundsAggregation.Builder,GeoBoundsAggregation>
Builder for
GeoBoundsAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoBoundsAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected GeoBoundsAggregation.Builderself()wrapLongitude(Boolean value) Specifies whether the bounding box should be allowed to overlap the international date line.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<GeoBoundsAggregation.Builder,GeoBoundsAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<GeoBoundsAggregation.Builder>
-
wrapLongitude
Specifies whether the bounding box should be allowed to overlap the international date line.API name:
wrap_longitude -
build
Builds aGeoBoundsAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoBoundsAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-