@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 geographic 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()
For geolocation resource record sets, the two-letter code for a country.
|
String |
getSubdivisionCode()
For geolocation resource record sets, the two-letter code for a state of the United States.
|
int |
hashCode() |
void |
setContinentCode(String continentCode)
The two-letter code for the continent.
|
void |
setCountryCode(String countryCode)
For geolocation resource record sets, the two-letter code for a country.
|
void |
setSubdivisionCode(String subdivisionCode)
For geolocation resource record sets, the two-letter code for a state of the United States.
|
String |
toString()
Returns a string representation of this object.
|
GeoLocation |
withContinentCode(String continentCode)
The two-letter code for the continent.
|
GeoLocation |
withCountryCode(String countryCode)
For geolocation resource record sets, the two-letter code for a country.
|
GeoLocation |
withSubdivisionCode(String subdivisionCode)
For geolocation resource record sets, the two-letter code for a state of the United States.
|
public void setContinentCode(String continentCode)
The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
continentCode
- The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
public String getContinentCode()
The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
public GeoLocation withContinentCode(String continentCode)
The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
continentCode
- The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
public void setCountryCode(String countryCode)
For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
countryCode
- For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
public String getCountryCode()
For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
public GeoLocation withCountryCode(String countryCode)
For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
countryCode
- For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
public void setSubdivisionCode(String subdivisionCode)
For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't
support any other values for SubdivisionCode
. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on
the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for CountryCode
.
subdivisionCode
- For geolocation resource record sets, the two-letter code for a state of the United States. Route 53
doesn't support any other values for SubdivisionCode
. For a list of state abbreviations, see
Appendix B: Two–Letter State and Possession
Abbreviations on the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for
CountryCode
.
public String getSubdivisionCode()
For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't
support any other values for SubdivisionCode
. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on
the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for CountryCode
.
SubdivisionCode
. For a list of state abbreviations, see
Appendix B: Two–Letter State and Possession
Abbreviations on the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for
CountryCode
.
public GeoLocation withSubdivisionCode(String subdivisionCode)
For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't
support any other values for SubdivisionCode
. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on
the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for CountryCode
.
subdivisionCode
- For geolocation resource record sets, the two-letter code for a state of the United States. Route 53
doesn't support any other values for SubdivisionCode
. For a list of state abbreviations, see
Appendix B: Two–Letter State and Possession
Abbreviations on the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for
CountryCode
.
public String toString()
toString
in class Object
Object.toString()
public GeoLocation clone()