Class GeoBoundingBoxQuery.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
-
- org.opensearch.client.opensearch._types.query_dsl.GeoBoundingBoxQuery.Builder
-
- All Implemented Interfaces:
ObjectBuilder<GeoBoundingBoxQuery>
- Enclosing class:
- GeoBoundingBoxQuery
public static class GeoBoundingBoxQuery.Builder extends QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder> implements ObjectBuilder<GeoBoundingBoxQuery>
Builder forGeoBoundingBoxQuery
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GeoBoundingBoxQuery.Builder
boundingBox(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)
Required -GeoBoundingBoxQuery.Builder
boundingBox(GeoBounds value)
Required -GeoBoundingBoxQuery
build()
Builds aGeoBoundingBoxQuery
.GeoBoundingBoxQuery.Builder
field(java.lang.String value)
Required -GeoBoundingBoxQuery.Builder
ignoreUnmapped(java.lang.Boolean value)
API name:ignore_unmapped
protected GeoBoundingBoxQuery.Builder
self()
GeoBoundingBoxQuery.Builder
type(GeoExecution value)
Deprecated.7.14.0GeoBoundingBoxQuery.Builder
validationMethod(GeoValidationMethod value)
API name:validation_method
-
Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryName
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
field
public final GeoBoundingBoxQuery.Builder field(java.lang.String value)
Required -
-
boundingBox
public final GeoBoundingBoxQuery.Builder boundingBox(GeoBounds value)
Required -
-
boundingBox
public final GeoBoundingBoxQuery.Builder boundingBox(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)
Required -
-
type
@Deprecated public final GeoBoundingBoxQuery.Builder type(@Nullable GeoExecution value)
Deprecated.7.14.0API name:type
-
validationMethod
public final GeoBoundingBoxQuery.Builder validationMethod(@Nullable GeoValidationMethod value)
API name:validation_method
-
ignoreUnmapped
public final GeoBoundingBoxQuery.Builder ignoreUnmapped(@Nullable java.lang.Boolean value)
API name:ignore_unmapped
-
self
protected GeoBoundingBoxQuery.Builder self()
- Specified by:
self
in classQueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
-
build
public GeoBoundingBoxQuery build()
Builds aGeoBoundingBoxQuery
.- Specified by:
build
in interfaceObjectBuilder<GeoBoundingBoxQuery>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-