@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Location extends Object implements Serializable, Cloneable, StructuredPojo
Represents a latitude and longitude pair, expressed in geographic coordinate system degrees (for example, 47.6204, -122.3491).
Elevation is currently not supported.
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
clone() |
boolean |
equals(Object obj) |
Double |
getLatitude()
The latitude.
|
Double |
getLongitude()
The longitude.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLatitude(Double latitude)
The latitude.
|
void |
setLongitude(Double longitude)
The longitude.
|
String |
toString()
Returns a string representation of this object.
|
Location |
withLatitude(Double latitude)
The latitude.
|
Location |
withLongitude(Double longitude)
The longitude.
|
public void setLatitude(Double latitude)
The latitude.
latitude
- The latitude.public Double getLatitude()
The latitude.
public Location withLatitude(Double latitude)
The latitude.
latitude
- The latitude.public void setLongitude(Double longitude)
The longitude.
longitude
- The longitude.public Double getLongitude()
The longitude.
public Location withLongitude(Double longitude)
The longitude.
longitude
- The longitude.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.