Class GeoLocation
- java.lang.Object
-
- com.amazonaws.services.route53.model.GeoLocation
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GeoLocation extends Object implements Serializable, Cloneable
A complex type that contains information about a geo location.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoLocationclone()booleanequals(Object obj)StringgetContinentCode()The code for a continent geo location.StringgetCountryCode()The code for a country geo location.StringgetSubdivisionCode()The code for a country's subdivision (e.g., a province of Canada).inthashCode()voidsetContinentCode(String continentCode)The code for a continent geo location.voidsetCountryCode(String countryCode)The code for a country geo location.voidsetSubdivisionCode(String subdivisionCode)The code for a country's subdivision (e.g., a province of Canada).StringtoString()Returns a string representation of this object; useful for testing and debugging.GeoLocationwithContinentCode(String continentCode)The code for a continent geo location.GeoLocationwithCountryCode(String countryCode)The code for a country geo location.GeoLocationwithSubdivisionCode(String subdivisionCode)The code for a country's subdivision (e.g., a province of Canada).
-
-
-
Method Detail
-
setContinentCode
public void setContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.- Parameters:
continentCode- The code for a continent geo location. Note: only continent locations have a continent code.Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.
-
getContinentCode
public String getContinentCode()
The code for a continent geo location. Note: only continent locations have a continent code.
Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.- Returns:
- The code for a continent geo location. Note: only continent
locations have a continent code.
Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.
-
withContinentCode
public GeoLocation withContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.- Parameters:
continentCode- The code for a continent geo location. Note: only continent locations have a continent code.Valid values:
AF|AN|AS|EU|OC|NA|SAConstraint: Specifying
ContinentCodewith eitherCountryCodeorSubdivisionCodereturns an InvalidInput error.- 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 GeoLocation 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.
-
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.
Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.- 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.Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.
-
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.
Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.- 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.
Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.
-
withSubdivisionCode
public GeoLocation 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.
Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.- 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.Constraint: Specifying
SubdivisionCodewithoutCountryCodereturns an InvalidInput error.- 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 GeoLocation clone()
-
-