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