Struct aws_sdk_sns::client::fluent_builders::ListPhoneNumbersOptedOut
source ·
[−]pub struct ListPhoneNumbersOptedOut<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to ListPhoneNumbersOptedOut.
Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them.
The results for ListPhoneNumbersOptedOut are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a NextToken string will be returned. To receive the next page, you call ListPhoneNumbersOptedOut again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null.
Implementations
impl<C, M, R> ListPhoneNumbersOptedOut<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListPhoneNumbersOptedOut<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ListPhoneNumbersOptedOutOutput, SdkError<ListPhoneNumbersOptedOutError>> where
R::Policy: SmithyRetryPolicy<ListPhoneNumbersOptedOutInputOperationOutputAlias, ListPhoneNumbersOptedOutOutput, ListPhoneNumbersOptedOutError, ListPhoneNumbersOptedOutInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ListPhoneNumbersOptedOutOutput, SdkError<ListPhoneNumbersOptedOutError>> where
R::Policy: SmithyRetryPolicy<ListPhoneNumbersOptedOutInputOperationOutputAlias, ListPhoneNumbersOptedOutOutput, ListPhoneNumbersOptedOutError, ListPhoneNumbersOptedOutInputOperationRetryAlias>,
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.
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.
A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ListPhoneNumbersOptedOut<C, M, R>
impl<C, M, R> Send for ListPhoneNumbersOptedOut<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ListPhoneNumbersOptedOut<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ListPhoneNumbersOptedOut<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ListPhoneNumbersOptedOut<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
