Struct aws_sdk_connect::client::fluent_builders::ListPhoneNumbers
source · pub struct ListPhoneNumbers { /* private fields */ }
Expand description
Fluent builder constructing a request to ListPhoneNumbers
.
Provides information about the phone numbers for the specified Amazon Connect instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
The phone number Arn
value that is returned from each of the items in the PhoneNumberSummaryList cannot be used to tag phone number resources. It will fail with a ResourceNotFoundException
. Instead, use the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be used to tag phone number resources.
Implementations§
source§impl ListPhoneNumbers
impl ListPhoneNumbers
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListPhoneNumbers, AwsResponseRetryClassifier>, SdkError<ListPhoneNumbersError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListPhoneNumbers, AwsResponseRetryClassifier>, SdkError<ListPhoneNumbersError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListPhoneNumbersOutput, SdkError<ListPhoneNumbersError>>
pub async fn send(
self
) -> Result<ListPhoneNumbersOutput, SdkError<ListPhoneNumbersError>>
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 into_paginator(self) -> ListPhoneNumbersPaginator
pub fn into_paginator(self) -> ListPhoneNumbersPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn phone_number_types(self, input: PhoneNumberType) -> Self
pub fn phone_number_types(self, input: PhoneNumberType) -> Self
Appends an item to PhoneNumberTypes
.
To override the contents of this collection use set_phone_number_types
.
The type of phone number.
sourcepub fn set_phone_number_types(self, input: Option<Vec<PhoneNumberType>>) -> Self
pub fn set_phone_number_types(self, input: Option<Vec<PhoneNumberType>>) -> Self
The type of phone number.
sourcepub fn phone_number_country_codes(self, input: PhoneNumberCountryCode) -> Self
pub fn phone_number_country_codes(self, input: PhoneNumberCountryCode) -> Self
Appends an item to PhoneNumberCountryCodes
.
To override the contents of this collection use set_phone_number_country_codes
.
The ISO country code.
sourcepub fn set_phone_number_country_codes(
self,
input: Option<Vec<PhoneNumberCountryCode>>
) -> Self
pub fn set_phone_number_country_codes(
self,
input: Option<Vec<PhoneNumberCountryCode>>
) -> Self
The ISO country code.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return per page. The default MaxResult size is 100.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return per page. The default MaxResult size is 100.
Trait Implementations§
source§impl Clone for ListPhoneNumbers
impl Clone for ListPhoneNumbers
source§fn clone(&self) -> ListPhoneNumbers
fn clone(&self) -> ListPhoneNumbers
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more