Class GeoLineAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GeoLineAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeoLineAggregation.Builder
- All Implemented Interfaces:
WithJson<GeoLineAggregation.Builder>,ObjectBuilder<GeoLineAggregation>
- Enclosing class:
- GeoLineAggregation
public static class GeoLineAggregation.Builder
extends WithJsonObjectBuilderBase<GeoLineAggregation.Builder>
implements ObjectBuilder<GeoLineAggregation>
Builder for
GeoLineAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoLineAggregation.includeSort(Boolean value) API name:include_sortpoint(GeoLinePoint value) Required - API name:pointRequired - API name:pointprotected GeoLineAggregation.Builderself()API name:sizesort(GeoLineSort value) Required - API name:sortRequired - API name:sortAPI name:sort_orderMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
point
Required - API name:point -
point
public final GeoLineAggregation.Builder point(Function<GeoLinePoint.Builder, ObjectBuilder<GeoLinePoint>> fn) Required - API name:point -
sort
Required - API name:sort -
sort
public final GeoLineAggregation.Builder sort(Function<GeoLineSort.Builder, ObjectBuilder<GeoLineSort>> fn) Required - API name:sort -
includeSort
API name:include_sort -
sortOrder
API name:sort_order -
size
API name:size -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GeoLineAggregation.Builder>
-
build
Builds aGeoLineAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoLineAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-