Class GeoPolygonQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<GeoPolygonQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.GeoPolygonQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoPolygonQuery.Builder,,GeoPolygonQuery> MutableBuilder<GeoPolygonQuery.Builder,,GeoPolygonQuery> ObjectBuilder<GeoPolygonQuery>
- Enclosing class:
GeoPolygonQuery
public static class GeoPolygonQuery.Builder
extends QueryBase.AbstractBuilder<GeoPolygonQuery.Builder>
implements CopyableBuilder<GeoPolygonQuery.Builder,GeoPolygonQuery>
Builder for
GeoPolygonQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoPolygonQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GeoPolygonQuery.BuilderRequired -final GeoPolygonQuery.BuilderignoreUnmapped(Boolean value) API name:ignore_unmappedfinal GeoPolygonQuery.BuilderRequired -final GeoPolygonQuery.Builderpolygon(GeoPolygonPoints value) Required -protected GeoPolygonQuery.Builderself()final GeoPolygonQuery.BuilderAPI name:validation_methodMethods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods 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<GeoPolygonQuery.Builder,GeoPolygonQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoPolygonQuery.Builder>
-
field
Required - -
ignoreUnmapped
API name:ignore_unmapped -
polygon
Required - -
polygon
@Nonnull public final GeoPolygonQuery.Builder polygon(Function<GeoPolygonPoints.Builder, ObjectBuilder<GeoPolygonPoints>> fn) Required - -
validationMethod
API name:validation_method -
build
Builds aGeoPolygonQuery.- Specified by:
buildin interfaceObjectBuilder<GeoPolygonQuery>- Throws:
NullPointerException- if some of the required fields are null.
-