Class XyShape.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.XyShape.Builder
- All Implemented Interfaces:
CopyableBuilder<XyShape.Builder,,XyShape> MutableBuilder<XyShape.Builder,,XyShape> ObjectBuilder<XyShape>
- Enclosing class:
XyShape
public static class XyShape.Builder
extends ObjectBuilderBase
implements CopyableBuilder<XyShape.Builder,XyShape>
Builder for
XyShape.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aXyShape.final XyShape.Buildercoordinates(List<JsonData> list) API name:coordinatesfinal XyShape.Buildercoordinates(JsonData value, JsonData... values) API name:coordinatescopy()Create a new builderCopyableBuilderthat is a copy of this one.final XyShape.BuilderAPI name:typeMethods 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<XyShape.Builder,XyShape> - Returns:
- a new builder instance.
-
coordinates
API name:coordinatesAdds all elements of
listtocoordinates. -
coordinates
API name:coordinatesAdds one or more values to
coordinates. -
type
API name:type -
build
Builds aXyShape.- Specified by:
buildin interfaceObjectBuilder<XyShape>- Throws:
NullPointerException- if some of the required fields are null.
-