1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPhoneNumbers`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl ::std::convert::Into<String>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::set_instance_id): <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
    ///   - [`phone_number_types(Vec<PhoneNumberType>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::phone_number_types) / [`set_phone_number_types(Option<Vec<PhoneNumberType>>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::set_phone_number_types): <p>The type of phone number.</p>
    ///   - [`phone_number_country_codes(Vec<PhoneNumberCountryCode>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::phone_number_country_codes) / [`set_phone_number_country_codes(Option<Vec<PhoneNumberCountryCode>>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::set_phone_number_country_codes): <p>The ISO country code.</p>
    ///   - [`next_token(impl ::std::convert::Into<String>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::set_next_token): <p>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.</p>
    ///   - [`max_results(i32)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::set_max_results): <p>The maximum number of results to return per page. The default MaxResult size is 100.</p>
    /// - On success, responds with [`ListPhoneNumbersOutput`](crate::operation::list_phone_numbers::ListPhoneNumbersOutput) with field(s):
    ///   - [`phone_number_summary_list(Option<Vec<PhoneNumberSummary>>)`](crate::operation::list_phone_numbers::ListPhoneNumbersOutput::phone_number_summary_list): <p>Information about the phone numbers.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_phone_numbers::ListPhoneNumbersOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListPhoneNumbersError>`](crate::operation::list_phone_numbers::ListPhoneNumbersError)
    pub fn list_phone_numbers(
        &self,
    ) -> crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder {
        crate::operation::list_phone_numbers::builders::ListPhoneNumbersFluentBuilder::new(
            self.handle.clone(),
        )
    }
}