public class GeoLocationDetails extends Object implements Serializable
A complex type that contains information about a
GeoLocation .
| Constructor and Description |
|---|
GeoLocationDetails() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContinentCode()
The code for a continent geo location.
|
String |
getContinentName()
The name of the continent.
|
String |
getCountryCode()
The code for a country geo location.
|
String |
getCountryName()
The name of the country.
|
String |
getSubdivisionCode()
The code for a country's subdivision (e.g., a province of Canada).
|
String |
getSubdivisionName()
The name of the subdivision.
|
int |
hashCode() |
void |
setContinentCode(String continentCode)
The code for a continent geo location.
|
void |
setContinentName(String continentName)
The name of the continent.
|
void |
setCountryCode(String countryCode)
The code for a country geo location.
|
void |
setCountryName(String countryName)
The name of the country.
|
void |
setSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada).
|
void |
setSubdivisionName(String subdivisionName)
The name of the subdivision.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GeoLocationDetails |
withContinentCode(String continentCode)
The code for a continent geo location.
|
GeoLocationDetails |
withContinentName(String continentName)
The name of the continent.
|
GeoLocationDetails |
withCountryCode(String countryCode)
The code for a country geo location.
|
GeoLocationDetails |
withCountryName(String countryName)
The name of the country.
|
GeoLocationDetails |
withSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada).
|
GeoLocationDetails |
withSubdivisionName(String subdivisionName)
The name of the subdivision.
|
public String getContinentCode()
Constraints:
Length: 2 - 2
public void setContinentCode(String continentCode)
Constraints:
Length: 2 - 2
continentCode - The code for a continent geo location. Note: only continent locations
have a continent code.public GeoLocationDetails withContinentCode(String continentCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 2
continentCode - The code for a continent geo location. Note: only continent locations
have a continent code.public String getContinentName()
ContinentCode is also present.
Constraints:
Length: 1 - 32
ContinentCode is also present.public void setContinentName(String continentName)
ContinentCode is also present.
Constraints:
Length: 1 - 32
continentName - The name of the continent. This element is only present if
ContinentCode is also present.public GeoLocationDetails withContinentName(String continentName)
ContinentCode is also present.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
continentName - The name of the continent. This element is only present if
ContinentCode is also present.public String getCountryCode()
The default geo location uses a * for
the country code. All other country codes follow the ISO 3166
two-character code.
Constraints:
Length: 1 - 2
The default geo location uses a * for
the country code. All other country codes follow the ISO 3166
two-character code.
public void setCountryCode(String countryCode)
The default geo location uses a * for
the country code. All other country codes follow the ISO 3166
two-character code.
Constraints:
Length: 1 - 2
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.
public GeoLocationDetails withCountryCode(String countryCode)
The default geo location uses a * for
the country code. All other country codes follow the ISO 3166
two-character code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
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.
public String getCountryName()
CountryCode is also present.
Constraints:
Length: 1 - 64
CountryCode is also present.public void setCountryName(String countryName)
CountryCode is also present.
Constraints:
Length: 1 - 64
countryName - The name of the country. This element is only present if
CountryCode is also present.public GeoLocationDetails withCountryName(String countryName)
CountryCode is also present.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
countryName - The name of the country. This element is only present if
CountryCode is also present.public String getSubdivisionCode()
Constraints:
Length: 1 - 3
public void setSubdivisionCode(String subdivisionCode)
Constraints:
Length: 1 - 3
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.public GeoLocationDetails withSubdivisionCode(String subdivisionCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 3
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.public String getSubdivisionName()
SubdivisionCode is also present.
Constraints:
Length: 1 - 64
SubdivisionCode is also present.public void setSubdivisionName(String subdivisionName)
SubdivisionCode is also present.
Constraints:
Length: 1 - 64
subdivisionName - The name of the subdivision. This element is only present if
SubdivisionCode is also present.public GeoLocationDetails withSubdivisionName(String subdivisionName)
SubdivisionCode is also present.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
subdivisionName - The name of the subdivision. This element is only present if
SubdivisionCode is also present.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.