aws_sdk_pinpointsmsvoicev2/client/
describe_phone_numbers.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DescribePhoneNumbers`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`phone_number_ids(impl Into<String>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::phone_number_ids) / [`set_phone_number_ids(Option<Vec::<String>>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::set_phone_number_ids):<br>required: **false**<br><p>The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.</p><important>  <p>If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
8    ///   - [`filters(PhoneNumberFilter)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::filters) / [`set_filters(Option<Vec::<PhoneNumberFilter>>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::set_filters):<br>required: **false**<br><p>An array of PhoneNumberFilter objects to filter the results.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per each request.</p><br>
11    ///   - [`owner(Owner)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::owner) / [`set_owner(Option<Owner>)`](crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::set_owner):<br>required: **false**<br><p>Use <code>SELF</code> to filter the list of phone numbers to ones your account owns or use <code>SHARED</code> to filter on phone numbers shared with your account. The <code>Owner</code> and <code>PhoneNumberIds</code> parameters can't be used at the same time.</p><br>
12    /// - On success, responds with [`DescribePhoneNumbersOutput`](crate::operation::describe_phone_numbers::DescribePhoneNumbersOutput) with field(s):
13    ///   - [`phone_numbers(Option<Vec::<PhoneNumberInformation>>)`](crate::operation::describe_phone_numbers::DescribePhoneNumbersOutput::phone_numbers): <p>An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.</p>
14    ///   - [`next_token(Option<String>)`](crate::operation::describe_phone_numbers::DescribePhoneNumbersOutput::next_token): <p>The token to be used for the next set of paginated results. If this field is empty then there are no more results.</p>
15    /// - On failure, responds with [`SdkError<DescribePhoneNumbersError>`](crate::operation::describe_phone_numbers::DescribePhoneNumbersError)
16    pub fn describe_phone_numbers(&self) -> crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder {
17        crate::operation::describe_phone_numbers::builders::DescribePhoneNumbersFluentBuilder::new(self.handle.clone())
18    }
19}