@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()
The two-letter code for the country.
|
String |
getSubdivisionCode()
The code for the subdivision.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
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. Route 53 currently supports only states in the United States.
subdivisionCode - The code for the subdivision. Route 53 currently supports only states in the United States.public String getSubdivisionCode()
The code for the subdivision. Route 53 currently supports only states in the United States.
public GeoLocation withSubdivisionCode(String subdivisionCode)
The code for the subdivision. Route 53 currently supports only states in the United States.
subdivisionCode - The code for the subdivision. Route 53 currently supports only states in the United States.public String toString()
toString in class ObjectObject.toString()public GeoLocation clone()
Copyright © 2020. All rights reserved.