@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Circle extends Object implements Serializable, Cloneable, StructuredPojo
A circle on the earth, as defined by a center point and a radius.
Constructor and Description |
---|
Circle() |
Modifier and Type | Method and Description |
---|---|
Circle |
clone() |
boolean |
equals(Object obj) |
List<Double> |
getCenter()
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude] . |
Double |
getRadius()
The radius of the circle in meters.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCenter(Collection<Double> center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude] . |
void |
setRadius(Double radius)
The radius of the circle in meters.
|
String |
toString()
Returns a string representation of this object.
|
Circle |
withCenter(Collection<Double> center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude] . |
Circle |
withCenter(Double... center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude] . |
Circle |
withRadius(Double radius)
The radius of the circle in meters.
|
public List<Double> getCenter()
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.
[longitude, latitude]
.public void setCenter(Collection<Double> center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.
center
- A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.public Circle withCenter(Double... center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.
NOTE: This method appends the values to the existing list (if any). Use
setCenter(java.util.Collection)
or withCenter(java.util.Collection)
if you want to override the
existing values.
center
- A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.public Circle withCenter(Collection<Double> center)
A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.
center
- A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form
[longitude, latitude]
.public void setRadius(Double radius)
The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers).
radius
- The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers).public Double getRadius()
The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers).
public Circle withRadius(Double radius)
The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers).
radius
- The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers).public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.