Class GeoLocation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.GeoLocation.Builder
- All Implemented Interfaces:
ObjectBuilder<GeoLocation>
- Enclosing class:
- GeoLocation
public static class GeoLocation.Builder extends ObjectBuilderBase implements ObjectBuilder<GeoLocation>
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GeoLocation
build()
ObjectBuilder<GeoLocation>
coords(java.util.List<java.lang.Double> v)
ObjectBuilder<GeoLocation>
geohash(GeoHashLocation v)
ObjectBuilder<GeoLocation>
geohash(java.util.function.Function<GeoHashLocation.Builder,ObjectBuilder<GeoHashLocation>> fn)
ObjectBuilder<GeoLocation>
latlon(LatLonGeoLocation v)
ObjectBuilder<GeoLocation>
latlon(java.util.function.Function<LatLonGeoLocation.Builder,ObjectBuilder<LatLonGeoLocation>> fn)
ObjectBuilder<GeoLocation>
text(java.lang.String v)
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coords
-
geohash
-
geohash
public ObjectBuilder<GeoLocation> geohash(java.util.function.Function<GeoHashLocation.Builder,ObjectBuilder<GeoHashLocation>> fn) -
latlon
-
latlon
public ObjectBuilder<GeoLocation> latlon(java.util.function.Function<LatLonGeoLocation.Builder,ObjectBuilder<LatLonGeoLocation>> fn) -
text
-
build
- Specified by:
build
in interfaceObjectBuilder<GeoLocation>
-