@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 Object
Object.toString()
public GeoLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.