public class EndpointLocation extends Object implements Serializable
| Constructor and Description |
|---|
EndpointLocation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCity()
The city where the endpoint is located.
|
String |
getCountry()
Country according to ISO 3166-1 Alpha-2 codes.
|
Double |
getLatitude()
The latitude of the endpoint location.
|
Double |
getLongitude()
The longitude of the endpoint location.
|
String |
getPostalCode()
The postal code or zip code of the endpoint.
|
String |
getRegion()
The region of the endpoint location.
|
int |
hashCode() |
void |
setCity(String city)
The city where the endpoint is located.
|
void |
setCountry(String country)
Country according to ISO 3166-1 Alpha-2 codes.
|
void |
setLatitude(Double latitude)
The latitude of the endpoint location.
|
void |
setLongitude(Double longitude)
The longitude of the endpoint location.
|
void |
setPostalCode(String postalCode)
The postal code or zip code of the endpoint.
|
void |
setRegion(String region)
The region of the endpoint location.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointLocation |
withCity(String city)
The city where the endpoint is located.
|
EndpointLocation |
withCountry(String country)
Country according to ISO 3166-1 Alpha-2 codes.
|
EndpointLocation |
withLatitude(Double latitude)
The latitude of the endpoint location.
|
EndpointLocation |
withLongitude(Double longitude)
The longitude of the endpoint location.
|
EndpointLocation |
withPostalCode(String postalCode)
The postal code or zip code of the endpoint.
|
EndpointLocation |
withRegion(String region)
The region of the endpoint location.
|
public String getCity()
public void setCity(String city)
city - The city where the endpoint is located.public EndpointLocation withCity(String city)
Returns a reference to this object so that method calls can be chained together.
city - The city where the endpoint is located.public String getCountry()
public void setCountry(String country)
country - Country according to ISO 3166-1 Alpha-2 codes. For
example, US.public EndpointLocation withCountry(String country)
Returns a reference to this object so that method calls can be chained together.
country - Country according to ISO 3166-1 Alpha-2 codes. For
example, US.public Double getLatitude()
public void setLatitude(Double latitude)
latitude - The latitude of the endpoint location. Rounded to one
decimal (Roughly corresponding to a mile).public EndpointLocation withLatitude(Double latitude)
Returns a reference to this object so that method calls can be chained together.
latitude - The latitude of the endpoint location. Rounded to one
decimal (Roughly corresponding to a mile).public Double getLongitude()
public void setLongitude(Double longitude)
longitude - The longitude of the endpoint location. Rounded to one
decimal (Roughly corresponding to a mile).public EndpointLocation withLongitude(Double longitude)
Returns a reference to this object so that method calls can be chained together.
longitude - The longitude of the endpoint location. Rounded to one
decimal (Roughly corresponding to a mile).public String getPostalCode()
public void setPostalCode(String postalCode)
postalCode - The postal code or zip code of the endpoint.public EndpointLocation withPostalCode(String postalCode)
Returns a reference to this object so that method calls can be chained together.
postalCode - The postal code or zip code of the endpoint.public String getRegion()
public void setRegion(String region)
region - The region of the endpoint location. For example,
corresponds to a state in US.public EndpointLocation withRegion(String region)
Returns a reference to this object so that method calls can be chained together.
region - The region of the endpoint location. For example,
corresponds to a state in US.public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.