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()
The two-letter code for the country or region of the endpoint.
|
Double |
getLatitude()
The latitude of the endpoint location, rounded to one decimal place.
|
Double |
getLongitude()
The longitude of the endpoint location, rounded to one decimal place.
|
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)
The two-letter code for the country or region of the endpoint.
|
void |
setLatitude(Double latitude)
The latitude of the endpoint location, rounded to one decimal place.
|
void |
setLongitude(Double longitude)
The longitude of the endpoint location, rounded to one decimal place.
|
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)
The two-letter code for the country or region of the endpoint.
|
EndpointLocation |
withLatitude(Double latitude)
The latitude of the endpoint location, rounded to one decimal place.
|
EndpointLocation |
withLongitude(Double longitude)
The longitude of the endpoint location, rounded to one decimal place.
|
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 - The two-letter code for the country or region of the
endpoint. Specified as an ISO 3166-1 alpha-2 code, such as
"US" for the United States.public EndpointLocation withCountry(String country)
Returns a reference to this object so that method calls can be chained together.
country - The two-letter code for the country or region of the
endpoint. Specified as an ISO 3166-1 alpha-2 code, such as
"US" for the United States.public Double getLatitude()
public void setLatitude(Double latitude)
latitude - The latitude of the endpoint location, rounded to one
decimal place.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 place.public Double getLongitude()
public void setLongitude(Double longitude)
longitude - The longitude of the endpoint location, rounded to one
decimal place.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 place.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, in the
United States, this corresponds to a state.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, in the
United States, this corresponds to a state.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.