pub struct GetGeoLocationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetGeoLocation
.
Gets information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.
Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.
Use the following syntax to determine whether a continent is supported for geolocation:
GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for a continent
Use the following syntax to determine whether a country is supported for geolocation:
GET /2013-04-01/geolocation?countrycode=two-character country code
Use the following syntax to determine whether a subdivision of a country is supported for geolocation:
GET /2013-04-01/geolocation?countrycode=two-character country code&subdivisioncode=subdivision code
Implementations§
source§impl GetGeoLocationFluentBuilder
impl GetGeoLocationFluentBuilder
sourcepub fn as_input(&self) -> &GetGeoLocationInputBuilder
pub fn as_input(&self) -> &GetGeoLocationInputBuilder
Access the GetGeoLocation as a reference.
sourcepub async fn send(
self
) -> Result<GetGeoLocationOutput, SdkError<GetGeoLocationError, HttpResponse>>
pub async fn send( self ) -> Result<GetGeoLocationOutput, SdkError<GetGeoLocationError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetGeoLocationOutput, GetGeoLocationError, Self>
pub fn customize( self ) -> CustomizableOperation<GetGeoLocationOutput, GetGeoLocationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn continent_code(self, input: impl Into<String>) -> Self
pub fn continent_code(self, input: impl Into<String>) -> Self
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:
-
AF: Africa
-
AN: Antarctica
-
AS: Asia
-
EU: Europe
-
OC: Oceania
-
NA: North America
-
SA: South America
sourcepub fn set_continent_code(self, input: Option<String>) -> Self
pub fn set_continent_code(self, input: Option<String>) -> Self
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:
-
AF: Africa
-
AN: Antarctica
-
AS: Asia
-
EU: Europe
-
OC: Oceania
-
NA: North America
-
SA: South America
sourcepub fn get_continent_code(&self) -> &Option<String>
pub fn get_continent_code(&self) -> &Option<String>
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:
-
AF: Africa
-
AN: Antarctica
-
AS: Asia
-
EU: Europe
-
OC: Oceania
-
NA: North America
-
SA: South America
sourcepub fn country_code(self, input: impl Into<String>) -> Self
pub fn country_code(self, input: impl Into<String>) -> Self
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
sourcepub fn set_country_code(self, input: Option<String>) -> Self
pub fn set_country_code(self, input: Option<String>) -> Self
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
sourcepub fn get_country_code(&self) -> &Option<String>
pub fn get_country_code(&self) -> &Option<String>
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the country code UA for Ukraine.
sourcepub fn subdivision_code(self, input: impl Into<String>) -> Self
pub fn subdivision_code(self, input: impl Into<String>) -> Self
The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API.
sourcepub fn set_subdivision_code(self, input: Option<String>) -> Self
pub fn set_subdivision_code(self, input: Option<String>) -> Self
The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API.
sourcepub fn get_subdivision_code(&self) -> &Option<String>
pub fn get_subdivision_code(&self) -> &Option<String>
The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API.
Trait Implementations§
source§impl Clone for GetGeoLocationFluentBuilder
impl Clone for GetGeoLocationFluentBuilder
source§fn clone(&self) -> GetGeoLocationFluentBuilder
fn clone(&self) -> GetGeoLocationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetGeoLocationFluentBuilder
impl !RefUnwindSafe for GetGeoLocationFluentBuilder
impl Send for GetGeoLocationFluentBuilder
impl Sync for GetGeoLocationFluentBuilder
impl Unpin for GetGeoLocationFluentBuilder
impl !UnwindSafe for GetGeoLocationFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more