@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoLocation extends Object implements Serializable, Cloneable, StructuredPojo
Provides the latitude and longitude coordinates of a location.
| Constructor and Description |
|---|
GeoLocation() |
| Modifier and Type | Method and Description |
|---|---|
GeoLocation |
clone() |
boolean |
equals(Object obj) |
Double |
getLat()
The latitude of the location.
|
Double |
getLon()
The longitude of the location.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLat(Double lat)
The latitude of the location.
|
void |
setLon(Double lon)
The longitude of the location.
|
String |
toString()
Returns a string representation of this object.
|
GeoLocation |
withLat(Double lat)
The latitude of the location.
|
GeoLocation |
withLon(Double lon)
The longitude of the location.
|
public void setLon(Double lon)
The longitude of the location.
lon - The longitude of the location.public Double getLon()
The longitude of the location.
public GeoLocation withLon(Double lon)
The longitude of the location.
lon - The longitude of the location.public void setLat(Double lat)
The latitude of the location.
lat - The latitude of the location.public Double getLat()
The latitude of the location.
public GeoLocation withLat(Double lat)
The latitude of the location.
lat - The latitude of the location.public String toString()
toString in class ObjectObject.toString()public GeoLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.