Struct aws_sdk_chime::client::fluent_builders::SearchAvailablePhoneNumbers [−][src]
pub struct SearchAvailablePhoneNumbers<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to SearchAvailablePhoneNumbers
.
Searches for phone numbers that can be ordered. For US numbers, provide at least one of
the following search filters: AreaCode
, City
,
State
, or TollFreePrefix
. If you provide
City
, you must also provide State
. Numbers outside the US only
support the PhoneNumberType
filter, which you must use.
Implementations
impl<C, M, R> SearchAvailablePhoneNumbers<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SearchAvailablePhoneNumbers<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SearchAvailablePhoneNumbersOutput, SdkError<SearchAvailablePhoneNumbersError>> where
R::Policy: SmithyRetryPolicy<SearchAvailablePhoneNumbersInputOperationOutputAlias, SearchAvailablePhoneNumbersOutput, SearchAvailablePhoneNumbersError, SearchAvailablePhoneNumbersInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SearchAvailablePhoneNumbersOutput, SdkError<SearchAvailablePhoneNumbersError>> where
R::Policy: SmithyRetryPolicy<SearchAvailablePhoneNumbersInputOperationOutputAlias, SearchAvailablePhoneNumbersOutput, SearchAvailablePhoneNumbersError, SearchAvailablePhoneNumbersInputOperationRetryAlias>,
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.
The area code used to filter results. Only applies to the US.
The area code used to filter results. Only applies to the US.
The city used to filter results. Only applies to the US.
The city used to filter results. Only applies to the US.
The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.
The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.
The state used to filter results. Required only if you provide City
. Only applies to the US.
The state used to filter results. Required only if you provide City
. Only applies to the US.
The toll-free prefix that you use to filter results. Only applies to the US.
The toll-free prefix that you use to filter results. Only applies to the US.
The phone number type used to filter results. Required for non-US numbers.
The phone number type used to filter results. Required for non-US numbers.
The maximum number of results to return in a single call.
The maximum number of results to return in a single call.
The token used to retrieve the next page of results.
The token used to retrieve the next page of results.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for SearchAvailablePhoneNumbers<C, M, R>
impl<C, M, R> Send for SearchAvailablePhoneNumbers<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SearchAvailablePhoneNumbers<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SearchAvailablePhoneNumbers<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for SearchAvailablePhoneNumbers<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more