Class GetGeoLocationRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
A complex type that contains information about the request to get a geo location.
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe code for a continent geo location.The code for a country geo location.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).toString()Returns a string representation of this object; useful for testing and debugging.withContinentCode(String continentCode) The code for a continent geo location.withCountryCode(String countryCode) The code for a country geo location.withSubdivisionCode(String subdivisionCode) The code for a country's subdivision (e.g., a province of Canada).Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
GetGeoLocationRequest
public GetGeoLocationRequest()
-
-
Method Details
-
setContinentCode
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
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
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
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
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
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
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
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
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
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-