public class EndpointLocation
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EndpointLocation() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCity()
The city where the endpoint is located.
|
java.lang.String |
getCountry()
The two-letter code for the country or region of the endpoint.
|
java.lang.Double |
getLatitude()
The latitude of the endpoint location, rounded to one decimal place.
|
java.lang.Double |
getLongitude()
The longitude of the endpoint location, rounded to one decimal place.
|
java.lang.String |
getPostalCode()
The postal code or zip code of the endpoint.
|
java.lang.String |
getRegion()
The region of the endpoint location.
|
int |
hashCode() |
void |
setCity(java.lang.String city)
The city where the endpoint is located.
|
void |
setCountry(java.lang.String country)
The two-letter code for the country or region of the endpoint.
|
void |
setLatitude(java.lang.Double latitude)
The latitude of the endpoint location, rounded to one decimal place.
|
void |
setLongitude(java.lang.Double longitude)
The longitude of the endpoint location, rounded to one decimal place.
|
void |
setPostalCode(java.lang.String postalCode)
The postal code or zip code of the endpoint.
|
void |
setRegion(java.lang.String region)
The region of the endpoint location.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointLocation |
withCity(java.lang.String city)
The city where the endpoint is located.
|
EndpointLocation |
withCountry(java.lang.String country)
The two-letter code for the country or region of the endpoint.
|
EndpointLocation |
withLatitude(java.lang.Double latitude)
The latitude of the endpoint location, rounded to one decimal place.
|
EndpointLocation |
withLongitude(java.lang.Double longitude)
The longitude of the endpoint location, rounded to one decimal place.
|
EndpointLocation |
withPostalCode(java.lang.String postalCode)
The postal code or zip code of the endpoint.
|
EndpointLocation |
withRegion(java.lang.String region)
The region of the endpoint location.
|
public java.lang.String getCity()
public void setCity(java.lang.String city)
city
- The city where the endpoint is located.public EndpointLocation withCity(java.lang.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 java.lang.String getCountry()
public void setCountry(java.lang.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(java.lang.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 java.lang.Double getLatitude()
public void setLatitude(java.lang.Double latitude)
latitude
- The latitude of the endpoint location, rounded to one
decimal place.public EndpointLocation withLatitude(java.lang.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 java.lang.Double getLongitude()
public void setLongitude(java.lang.Double longitude)
longitude
- The longitude of the endpoint location, rounded to one
decimal place.public EndpointLocation withLongitude(java.lang.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 java.lang.String getPostalCode()
public void setPostalCode(java.lang.String postalCode)
postalCode
- The postal code or zip code of the endpoint.public EndpointLocation withPostalCode(java.lang.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 java.lang.String getRegion()
public void setRegion(java.lang.String region)
region
- The region of the endpoint location. For example, in the
United States, this corresponds to a state.public EndpointLocation withRegion(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.