@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()
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 |
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)
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.
|
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 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
- 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 String getCountry()
public EndpointLocation withCountry(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 void setLatitude(Double latitude)
latitude
- The latitude of the endpoint location, rounded to one decimal place.public Double getLatitude()
public EndpointLocation withLatitude(Double latitude)
latitude
- The latitude of the endpoint location, rounded to one decimal place.public void setLongitude(Double longitude)
longitude
- The longitude of the endpoint location, rounded to one decimal place.public Double getLongitude()
public EndpointLocation withLongitude(Double longitude)
longitude
- The longitude of the endpoint location, rounded to one decimal place.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, in the United States, this corresponds to a state.public String getRegion()
public EndpointLocation withRegion(String region)
region
- The region of the endpoint location. For example, in the United States, this corresponds to 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.