Class ShapeQuery.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<ShapeQuery.Builder>
-
- org.opensearch.client.opensearch._types.query_dsl.ShapeQuery.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShapeQuery>
- Enclosing class:
- ShapeQuery
public static class ShapeQuery.Builder extends QueryBase.AbstractBuilder<ShapeQuery.Builder> implements ObjectBuilder<ShapeQuery>
Builder forShapeQuery.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeQuerybuild()Builds aShapeQuery.ShapeQuery.Builderfield(java.lang.String value)Required -ShapeQuery.BuilderignoreUnmapped(java.lang.Boolean value)API name:ignore_unmappedprotected ShapeQuery.Builderself()ShapeQuery.Buildershape(java.util.function.Function<ShapeFieldQuery.Builder,ObjectBuilder<ShapeFieldQuery>> fn)Required -ShapeQuery.Buildershape(ShapeFieldQuery value)Required --
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, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
field
public final ShapeQuery.Builder field(java.lang.String value)
Required -
-
shape
public final ShapeQuery.Builder shape(ShapeFieldQuery value)
Required -
-
shape
public final ShapeQuery.Builder shape(java.util.function.Function<ShapeFieldQuery.Builder,ObjectBuilder<ShapeFieldQuery>> fn)
Required -
-
ignoreUnmapped
public final ShapeQuery.Builder ignoreUnmapped(@Nullable java.lang.Boolean value)
API name:ignore_unmapped
-
self
protected ShapeQuery.Builder self()
- Specified by:
selfin classQueryBase.AbstractBuilder<ShapeQuery.Builder>
-
build
public ShapeQuery build()
Builds aShapeQuery.- Specified by:
buildin interfaceObjectBuilder<ShapeQuery>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-