@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointLocation extends Object implements Serializable, Cloneable, StructuredPojo
Specifies geographic information about an endpoint.
Constructor and Description |
---|
EndpointLocation() |
Modifier and Type | Method and Description |
---|---|
EndpointLocation |
clone() |
boolean |
equals(Object obj) |
String |
getCity()
The name of the city where the endpoint is located.
|
String |
getCountry()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.
|
Double |
getLatitude()
The latitude coordinate of the endpoint location, rounded to one decimal place.
|
Double |
getLongitude()
The longitude coordinate of the endpoint location, rounded to one decimal place.
|
String |
getPostalCode()
The postal or ZIP code for the area where the endpoint is located.
|
String |
getRegion()
The name of the region where the endpoint is located.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCity(String city)
The name of the city where the endpoint is located.
|
void |
setCountry(String country)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.
|
void |
setLatitude(Double latitude)
The latitude coordinate of the endpoint location, rounded to one decimal place.
|
void |
setLongitude(Double longitude)
The longitude coordinate of the endpoint location, rounded to one decimal place.
|
void |
setPostalCode(String postalCode)
The postal or ZIP code for the area where the endpoint is located.
|
void |
setRegion(String region)
The name of the region where the endpoint is located.
|
String |
toString()
Returns a string representation of this object.
|
EndpointLocation |
withCity(String city)
The name of the city where the endpoint is located.
|
EndpointLocation |
withCountry(String country)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.
|
EndpointLocation |
withLatitude(Double latitude)
The latitude coordinate of the endpoint location, rounded to one decimal place.
|
EndpointLocation |
withLongitude(Double longitude)
The longitude coordinate of the endpoint location, rounded to one decimal place.
|
EndpointLocation |
withPostalCode(String postalCode)
The postal or ZIP code for the area where the endpoint is located.
|
EndpointLocation |
withRegion(String region)
The name of the region where the endpoint is located.
|
public void setCity(String city)
The name of the city where the endpoint is located.
city
- The name of the city where the endpoint is located.public String getCity()
The name of the city where the endpoint is located.
public EndpointLocation withCity(String city)
The name of the city where the endpoint is located.
city
- The name of the city where the endpoint is located.public void setCountry(String country)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
country
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is
located. For example, US for the United States.public String getCountry()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
public EndpointLocation withCountry(String country)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
country
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is
located. For example, US for the United States.public void setLatitude(Double latitude)
The latitude coordinate of the endpoint location, rounded to one decimal place.
latitude
- The latitude coordinate of the endpoint location, rounded to one decimal place.public Double getLatitude()
The latitude coordinate of the endpoint location, rounded to one decimal place.
public EndpointLocation withLatitude(Double latitude)
The latitude coordinate of the endpoint location, rounded to one decimal place.
latitude
- The latitude coordinate of the endpoint location, rounded to one decimal place.public void setLongitude(Double longitude)
The longitude coordinate of the endpoint location, rounded to one decimal place.
longitude
- The longitude coordinate of the endpoint location, rounded to one decimal place.public Double getLongitude()
The longitude coordinate of the endpoint location, rounded to one decimal place.
public EndpointLocation withLongitude(Double longitude)
The longitude coordinate of the endpoint location, rounded to one decimal place.
longitude
- The longitude coordinate of the endpoint location, rounded to one decimal place.public void setPostalCode(String postalCode)
The postal or ZIP code for the area where the endpoint is located.
postalCode
- The postal or ZIP code for the area where the endpoint is located.public String getPostalCode()
The postal or ZIP code for the area where the endpoint is located.
public EndpointLocation withPostalCode(String postalCode)
The postal or ZIP code for the area where the endpoint is located.
postalCode
- The postal or ZIP code for the area where the endpoint is located.public void setRegion(String region)
The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
region
- The name of the region where the endpoint is located. For locations in the United States, this value is
the name of a state.public String getRegion()
The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
public EndpointLocation withRegion(String region)
The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
region
- The name of the region where the endpoint is located. For locations in the United States, this value is
the name of a state.public String toString()
toString
in class Object
Object.toString()
public EndpointLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.