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