@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoLocation extends Object implements Serializable, Cloneable
A complex type that contains information about a geo location.
| Constructor and Description |
|---|
GeoLocation() |
| Modifier and Type | Method and Description |
|---|---|
GeoLocation |
clone() |
boolean |
equals(Object obj) |
String |
getContinentCode()
The two-letter code for the continent.
|
String |
getCountryCode()
The two-letter code for the country.
|
String |
getSubdivisionCode()
The code for the subdivision, for example, a state in the United States or a province in Canada.
|
int |
hashCode() |
void |
setContinentCode(String continentCode)
The two-letter code for the continent.
|
void |
setCountryCode(String countryCode)
The two-letter code for the country.
|
void |
setSubdivisionCode(String subdivisionCode)
The code for the subdivision, for example, a state in the United States or a province in Canada.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GeoLocation |
withContinentCode(String continentCode)
The two-letter code for the continent.
|
GeoLocation |
withCountryCode(String countryCode)
The two-letter code for the country.
|
GeoLocation |
withSubdivisionCode(String subdivisionCode)
The code for the subdivision, for example, a state in the United States or a province in Canada.
|
public void setContinentCode(String continentCode)
The two-letter code for the continent.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
continentCode - The two-letter code for the continent.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
public String getContinentCode()
The two-letter code for the continent.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
public GeoLocation withContinentCode(String continentCode)
The two-letter code for the continent.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
continentCode - The two-letter code for the continent.
Valid values: AF | AN | AS | EU | OC |
NA | SA
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
public void setCountryCode(String countryCode)
The two-letter code for the country.
countryCode - The two-letter code for the country.public String getCountryCode()
The two-letter code for the country.
public GeoLocation withCountryCode(String countryCode)
The two-letter code for the country.
countryCode - The two-letter code for the country.public void setSubdivisionCode(String subdivisionCode)
The code for the subdivision, for example, a state in the United States or a province in Canada.
subdivisionCode - The code for the subdivision, for example, a state in the United States or a province in Canada.public String getSubdivisionCode()
The code for the subdivision, for example, a state in the United States or a province in Canada.
public GeoLocation withSubdivisionCode(String subdivisionCode)
The code for the subdivision, for example, a state in the United States or a province in Canada.
subdivisionCode - The code for the subdivision, for example, a state in the United States or a province in Canada.public String toString()
toString in class ObjectObject.toString()public GeoLocation clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.