Class GeoLocationDetails
- java.lang.Object
-
- com.amazonaws.services.route53.model.GeoLocationDetails
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GeoLocationDetails extends Object implements Serializable, Cloneable
A complex type that contains information about a
GeoLocation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoLocationDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoLocationDetailsclone()booleanequals(Object obj)StringgetContinentCode()The code for a continent geo location.StringgetContinentName()The name of the continent.StringgetCountryCode()The code for a country geo location.StringgetCountryName()The name of the country.StringgetSubdivisionCode()The code for a country's subdivision (e.g., a province of Canada).StringgetSubdivisionName()The name of the subdivision.inthashCode()voidsetContinentCode(String continentCode)The code for a continent geo location.voidsetContinentName(String continentName)The name of the continent.voidsetCountryCode(String countryCode)The code for a country geo location.voidsetCountryName(String countryName)The name of the country.voidsetSubdivisionCode(String subdivisionCode)The code for a country's subdivision (e.g., a province of Canada).voidsetSubdivisionName(String subdivisionName)The name of the subdivision.StringtoString()Returns a string representation of this object; useful for testing and debugging.GeoLocationDetailswithContinentCode(String continentCode)The code for a continent geo location.GeoLocationDetailswithContinentName(String continentName)The name of the continent.GeoLocationDetailswithCountryCode(String countryCode)The code for a country geo location.GeoLocationDetailswithCountryName(String countryName)The name of the country.GeoLocationDetailswithSubdivisionCode(String subdivisionCode)The code for a country's subdivision (e.g., a province of Canada).GeoLocationDetailswithSubdivisionName(String subdivisionName)The name of the subdivision.
-
-
-
Method Detail
-
setContinentCode
public void setContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
- Parameters:
continentCode- The code for a continent geo location. Note: only continent locations have a continent code.
-
getContinentCode
public String getContinentCode()
The code for a continent geo location. Note: only continent locations have a continent code.
- Returns:
- The code for a continent geo location. Note: only continent locations have a continent code.
-
withContinentCode
public GeoLocationDetails withContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
- Parameters:
continentCode- The code for a continent geo location. Note: only continent locations have a continent code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContinentName
public void setContinentName(String continentName)
The name of the continent. This element is only present if
ContinentCodeis also present.- Parameters:
continentName- The name of the continent. This element is only present ifContinentCodeis also present.
-
getContinentName
public String getContinentName()
The name of the continent. This element is only present if
ContinentCodeis also present.- Returns:
- The name of the continent. This element is only present if
ContinentCodeis also present.
-
withContinentName
public GeoLocationDetails withContinentName(String continentName)
The name of the continent. This element is only present if
ContinentCodeis also present.- Parameters:
continentName- The name of the continent. This element is only present ifContinentCodeis also present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCountryCode
public void setCountryCode(String countryCode)
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.- Parameters:
countryCode- The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.
-
getCountryCode
public String getCountryCode()
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.- Returns:
- The code for a country geo location. The default location uses
'*' for the country code and will match all locations that are
not matched by a geo location.
The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.
-
withCountryCode
public GeoLocationDetails withCountryCode(String countryCode)
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.- Parameters:
countryCode- The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.The default geo location uses a
*for the country code. All other country codes follow the ISO 3166 two-character code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCountryName
public void setCountryName(String countryName)
The name of the country. This element is only present if
CountryCodeis also present.- Parameters:
countryName- The name of the country. This element is only present ifCountryCodeis also present.
-
getCountryName
public String getCountryName()
The name of the country. This element is only present if
CountryCodeis also present.- Returns:
- The name of the country. This element is only present if
CountryCodeis also present.
-
withCountryName
public GeoLocationDetails withCountryName(String countryName)
The name of the country. This element is only present if
CountryCodeis also present.- Parameters:
countryName- The name of the country. This element is only present ifCountryCodeis also present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubdivisionCode
public void setSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
- Parameters:
subdivisionCode- The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
-
getSubdivisionCode
public String getSubdivisionCode()
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
- Returns:
- The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
-
withSubdivisionCode
public GeoLocationDetails withSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
- Parameters:
subdivisionCode- The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubdivisionName
public void setSubdivisionName(String subdivisionName)
The name of the subdivision. This element is only present if
SubdivisionCodeis also present.- Parameters:
subdivisionName- The name of the subdivision. This element is only present ifSubdivisionCodeis also present.
-
getSubdivisionName
public String getSubdivisionName()
The name of the subdivision. This element is only present if
SubdivisionCodeis also present.- Returns:
- The name of the subdivision. This element is only present if
SubdivisionCodeis also present.
-
withSubdivisionName
public GeoLocationDetails withSubdivisionName(String subdivisionName)
The name of the subdivision. This element is only present if
SubdivisionCodeis also present.- Parameters:
subdivisionName- The name of the subdivision. This element is only present ifSubdivisionCodeis also present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GeoLocationDetails clone()
-
-