public class ListGeoLocationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ListGeoLocations operation.
To retrieve a list of supported geo locations, send a
GET request to the 2013-04-01/geolocations
resource. The response to this request includes a
GeoLocationDetailsList element with zero, one, or
multiple GeoLocationDetails child elements. The list is
sorted by country code, and then subdivision code, followed by
continents at the end of the list.
By default, the list of geo locations is displayed on a single page.
You can control the length of the page that is displayed by using the
MaxItems parameter. If the list is truncated,
IsTruncated will be set to true and a combination
of NextContinentCode, NextCountryCode,
NextSubdivisionCode will be populated. You can pass these as
parameters to StartContinentCode, StartCountryCode,
StartSubdivisionCode to control the geo location that the list
begins with.
NOOP| Constructor and Description |
|---|
ListGeoLocationsRequest() |
| Modifier and Type | Method and Description |
|---|---|
ListGeoLocationsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getMaxItems()
The maximum number of geo locations you want in the response body.
|
String |
getStartContinentCode()
The first continent code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
String |
getStartCountryCode()
The first country code in the lexicographic ordering of geo locations
that you want the
ListGeoLocations request to list. |
String |
getStartSubdivisionCode()
The first subdivision code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
int |
hashCode() |
void |
setMaxItems(String maxItems)
The maximum number of geo locations you want in the response body.
|
void |
setStartContinentCode(String startContinentCode)
The first continent code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
void |
setStartCountryCode(String startCountryCode)
The first country code in the lexicographic ordering of geo locations
that you want the
ListGeoLocations request to list. |
void |
setStartSubdivisionCode(String startSubdivisionCode)
The first subdivision code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListGeoLocationsRequest |
withMaxItems(String maxItems)
The maximum number of geo locations you want in the response body.
|
ListGeoLocationsRequest |
withStartContinentCode(String startContinentCode)
The first continent code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
ListGeoLocationsRequest |
withStartCountryCode(String startCountryCode)
The first country code in the lexicographic ordering of geo locations
that you want the
ListGeoLocations request to list. |
ListGeoLocationsRequest |
withStartSubdivisionCode(String startSubdivisionCode)
The first subdivision code in the lexicographic ordering of geo
locations that you want the
ListGeoLocations request to
list. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getStartContinentCode()
ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
Constraints:
Length: 2 - 2
ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
public void setStartContinentCode(String startContinentCode)
ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
Constraints:
Length: 2 - 2
startContinentCode - The first continent code in the lexicographic ordering of geo
locations that you want the ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
public ListGeoLocationsRequest withStartContinentCode(String startContinentCode)
ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 2
startContinentCode - The first continent code in the lexicographic ordering of geo
locations that you want the ListGeoLocations request to
list. For non-continent geo locations, this should be null. Valid
values: AF | AN | AS |
EU | OC | NA | SA
Constraint: Specifying ContinentCode with either
CountryCode or SubdivisionCode returns an
InvalidInput error.
public String getStartCountryCode()
ListGeoLocations request to list.
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
ListGeoLocations request to list.
The default geo location uses a * for the country
code. All other country codes follow the ISO 3166 two-character code.
public void setStartCountryCode(String startCountryCode)
ListGeoLocations request to list.
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
startCountryCode - The first country code in the lexicographic ordering of geo locations
that you want the ListGeoLocations request to list.
The default geo location uses a * for the country
code. All other country codes follow the ISO 3166 two-character code.
public ListGeoLocationsRequest withStartCountryCode(String startCountryCode)
ListGeoLocations request to list.
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
startCountryCode - The first country code in the lexicographic ordering of geo locations
that you want the ListGeoLocations request to list.
The default geo location uses a * for the country
code. All other country codes follow the ISO 3166 two-character code.
public String getStartSubdivisionCode()
ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
Constraints:
Length: 1 - 3
ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
public void setStartSubdivisionCode(String startSubdivisionCode)
ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
Constraints:
Length: 1 - 3
startSubdivisionCode - The first subdivision code in the lexicographic ordering of geo
locations that you want the ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
public ListGeoLocationsRequest withStartSubdivisionCode(String startSubdivisionCode)
ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 3
startSubdivisionCode - The first subdivision code in the lexicographic ordering of geo
locations that you want the ListGeoLocations request to
list. Constraint: Specifying SubdivisionCode without
CountryCode returns an InvalidInput error.
public String getMaxItems()
public void setMaxItems(String maxItems)
maxItems - The maximum number of geo locations you want in the response body.public ListGeoLocationsRequest withMaxItems(String maxItems)
Returns a reference to this object so that method calls can be chained together.
maxItems - The maximum number of geo locations you want in the response body.public String toString()
toString in class ObjectObject.toString()public ListGeoLocationsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.