Class GeoPolygonPoints.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GeoPolygonPoints.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.GeoPolygonPoints.Builder
- All Implemented Interfaces:
WithJson<GeoPolygonPoints.Builder>
,ObjectBuilder<GeoPolygonPoints>
- Enclosing class:
- GeoPolygonPoints
public static class GeoPolygonPoints.Builder extends WithJsonObjectBuilderBase<GeoPolygonPoints.Builder> implements ObjectBuilder<GeoPolygonPoints>
Builder for
GeoPolygonPoints
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GeoPolygonPoints
build()
Builds aGeoPolygonPoints
.GeoPolygonPoints.Builder
points(GeoLocation value, GeoLocation... values)
Required - API name:points
GeoPolygonPoints.Builder
points(java.util.function.Function<GeoLocation.Builder,ObjectBuilder<GeoLocation>> fn)
Required - API name:points
GeoPolygonPoints.Builder
points(java.util.List<GeoLocation> list)
Required - API name:points
protected GeoPolygonPoints.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
points
Required - API name:points
Adds all elements of
list
topoints
. -
points
Required - API name:points
Adds one or more values to
points
. -
points
public final GeoPolygonPoints.Builder points(java.util.function.Function<GeoLocation.Builder,ObjectBuilder<GeoLocation>> fn)Required - API name:points
Adds a value to
points
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GeoPolygonPoints.Builder>
-
build
Builds aGeoPolygonPoints
.- Specified by:
build
in interfaceObjectBuilder<GeoPolygonPoints>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-