Class XyShapeQueryField.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.XyShapeQueryField.Builder
- All Implemented Interfaces:
CopyableBuilder<XyShapeQueryField.Builder,,XyShapeQueryField> MutableBuilder<XyShapeQueryField.Builder,,XyShapeQueryField> ObjectBuilder<XyShapeQueryField>
- Enclosing class:
XyShapeQueryField
public static class XyShapeQueryField.Builder
extends ObjectBuilderBase
implements CopyableBuilder<XyShapeQueryField.Builder,XyShapeQueryField>
Builder for
XyShapeQueryField.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aXyShapeQueryField.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:indexed_shapeindexedShape(FieldLookup value) API name:indexed_shaperelation(GeoShapeRelation value) API name:relationRequired - API name:shapeRequired - API name:shapeMethods 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<XyShapeQueryField.Builder,XyShapeQueryField> - Returns:
- a new builder instance.
-
indexedShape
API name:indexed_shape -
indexedShape
@Nonnull public final XyShapeQueryField.Builder indexedShape(Function<FieldLookup.Builder, ObjectBuilder<FieldLookup>> fn) API name:indexed_shape -
relation
API name:relation -
shape
Required - API name:shape -
shape
@Nonnull public final XyShapeQueryField.Builder shape(Function<XyShape.Builder, ObjectBuilder<XyShape>> fn) Required - API name:shape -
build
Builds aXyShapeQueryField.- Specified by:
buildin interfaceObjectBuilder<XyShapeQueryField>- Throws:
NullPointerException- if some of the required fields are null.
-