@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Geometry extends Object implements Serializable, Cloneable, StructuredPojo
The structure representing a Geometry in terms of Type and Coordinates as per GeoJson spec.
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
clone() |
boolean |
equals(Object obj) |
List<List<List<Double>>> |
getCoordinates()
The coordinates of the GeoJson Geometry.
|
String |
getType()
GeoJson Geometry types like Polygon and MultiPolygon.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCoordinates(Collection<List<List<Double>>> coordinates)
The coordinates of the GeoJson Geometry.
|
void |
setType(String type)
GeoJson Geometry types like Polygon and MultiPolygon.
|
String |
toString()
Returns a string representation of this object.
|
Geometry |
withCoordinates(Collection<List<List<Double>>> coordinates)
The coordinates of the GeoJson Geometry.
|
Geometry |
withCoordinates(List<List<Double>>... coordinates)
The coordinates of the GeoJson Geometry.
|
Geometry |
withType(String type)
GeoJson Geometry types like Polygon and MultiPolygon.
|
public List<List<List<Double>>> getCoordinates()
The coordinates of the GeoJson Geometry.
public void setCoordinates(Collection<List<List<Double>>> coordinates)
The coordinates of the GeoJson Geometry.
coordinates - The coordinates of the GeoJson Geometry.public Geometry withCoordinates(List<List<Double>>... coordinates)
The coordinates of the GeoJson Geometry.
NOTE: This method appends the values to the existing list (if any). Use
setCoordinates(java.util.Collection) or withCoordinates(java.util.Collection) if you want to
override the existing values.
coordinates - The coordinates of the GeoJson Geometry.public Geometry withCoordinates(Collection<List<List<Double>>> coordinates)
The coordinates of the GeoJson Geometry.
coordinates - The coordinates of the GeoJson Geometry.public void setType(String type)
GeoJson Geometry types like Polygon and MultiPolygon.
type - GeoJson Geometry types like Polygon and MultiPolygon.public String getType()
GeoJson Geometry types like Polygon and MultiPolygon.
public Geometry withType(String type)
GeoJson Geometry types like Polygon and MultiPolygon.
type - GeoJson Geometry types like Polygon and MultiPolygon.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.