@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointLocation extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
EndpointLocation() |
Modifier and Type | Method and Description |
---|---|
EndpointLocation |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setCity(String city)
city
- The city where the endpoint is located.public String getCity()
public EndpointLocation withCity(String city)
city
- The city where the endpoint is located.public void setCountry(String country)
country
- Country according to ISO 3166-1 Alpha-2 codes. For example, US.public String getCountry()
public EndpointLocation withCountry(String country)
country
- Country according to ISO 3166-1 Alpha-2 codes. For example, US.public void setLatitude(Double latitude)
latitude
- The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).public Double getLatitude()
public EndpointLocation withLatitude(Double latitude)
latitude
- The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).public void setLongitude(Double longitude)
longitude
- The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).public Double getLongitude()
public EndpointLocation withLongitude(Double longitude)
longitude
- The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).public void setPostalCode(String postalCode)
postalCode
- The postal code or zip code of the endpoint.public String getPostalCode()
public EndpointLocation withPostalCode(String postalCode)
postalCode
- The postal code or zip code of the endpoint.public void setRegion(String region)
region
- The region of the endpoint location. For example, corresponds to a state in US.public String getRegion()
public EndpointLocation withRegion(String region)
region
- The region of the endpoint location. For example, corresponds to a state in US.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.