Class GeoHashGridAggregation.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
-
- org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder>
-
- org.opensearch.client.opensearch._types.aggregations.GeoHashGridAggregation.Builder
-
- All Implemented Interfaces:
ObjectBuilder<GeoHashGridAggregation>
- Enclosing class:
- GeoHashGridAggregation
public static class GeoHashGridAggregation.Builder extends BucketAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder> implements ObjectBuilder<GeoHashGridAggregation>
Builder forGeoHashGridAggregation.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoHashGridAggregation.Builderbounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)API name:boundsGeoHashGridAggregation.Builderbounds(GeoBounds value)API name:boundsGeoHashGridAggregationbuild()Builds aGeoHashGridAggregation.GeoHashGridAggregation.Builderfield(java.lang.String value)API name:fieldGeoHashGridAggregation.Builderprecision(java.util.function.Function<GeoHashPrecision.Builder,ObjectBuilder<GeoHashPrecision>> fn)API name:precisionGeoHashGridAggregation.Builderprecision(GeoHashPrecision value)API name:precisionprotected GeoHashGridAggregation.Builderself()GeoHashGridAggregation.BuildershardSize(java.lang.Integer value)API name:shard_sizeGeoHashGridAggregation.Buildersize(java.lang.Integer value)API name:size-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, name
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
bounds
public final GeoHashGridAggregation.Builder bounds(@Nullable GeoBounds value)
API name:bounds
-
bounds
public final GeoHashGridAggregation.Builder bounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)
API name:bounds
-
field
public final GeoHashGridAggregation.Builder field(@Nullable java.lang.String value)
API name:field
-
precision
public final GeoHashGridAggregation.Builder precision(@Nullable GeoHashPrecision value)
API name:precision
-
precision
public final GeoHashGridAggregation.Builder precision(java.util.function.Function<GeoHashPrecision.Builder,ObjectBuilder<GeoHashPrecision>> fn)
API name:precision
-
shardSize
public final GeoHashGridAggregation.Builder shardSize(@Nullable java.lang.Integer value)
API name:shard_size
-
size
public final GeoHashGridAggregation.Builder size(@Nullable java.lang.Integer value)
API name:size
-
self
protected GeoHashGridAggregation.Builder self()
- Specified by:
selfin classAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder>
-
build
public GeoHashGridAggregation build()
Builds aGeoHashGridAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoHashGridAggregation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-