#[non_exhaustive]pub struct ListPhoneNumbersInput {
pub instance_id: Option<String>,
pub phone_number_types: Option<Vec<PhoneNumberType>>,
pub phone_number_country_codes: Option<Vec<PhoneNumberCountryCode>>,
pub next_token: Option<String>,
pub max_results: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_id: Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
phone_number_types: Option<Vec<PhoneNumberType>>
The type of phone number.
We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types UIFN
, SHARED
, THIRD_PARTY_TF
, and THIRD_PARTY_DID
, it incorrectly lists them as TOLL_FREE
or DID
.
phone_number_country_codes: Option<Vec<PhoneNumberCountryCode>>
The ISO country code.
next_token: Option<String>
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.
max_results: Option<i32>
The maximum number of results to return per page. The default MaxResult size is 100.
Implementations§
source§impl ListPhoneNumbersInput
impl ListPhoneNumbersInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn phone_number_types(&self) -> &[PhoneNumberType]
pub fn phone_number_types(&self) -> &[PhoneNumberType]
The type of phone number.
We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types UIFN
, SHARED
, THIRD_PARTY_TF
, and THIRD_PARTY_DID
, it incorrectly lists them as TOLL_FREE
or DID
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .phone_number_types.is_none()
.
sourcepub fn phone_number_country_codes(&self) -> &[PhoneNumberCountryCode]
pub fn phone_number_country_codes(&self) -> &[PhoneNumberCountryCode]
The ISO country code.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .phone_number_country_codes.is_none()
.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
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) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return per page. The default MaxResult size is 100.
source§impl ListPhoneNumbersInput
impl ListPhoneNumbersInput
sourcepub fn builder() -> ListPhoneNumbersInputBuilder
pub fn builder() -> ListPhoneNumbersInputBuilder
Creates a new builder-style object to manufacture ListPhoneNumbersInput
.
Trait Implementations§
source§impl Clone for ListPhoneNumbersInput
impl Clone for ListPhoneNumbersInput
source§fn clone(&self) -> ListPhoneNumbersInput
fn clone(&self) -> ListPhoneNumbersInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListPhoneNumbersInput
impl Debug for ListPhoneNumbersInput
source§impl PartialEq for ListPhoneNumbersInput
impl PartialEq for ListPhoneNumbersInput
source§fn eq(&self, other: &ListPhoneNumbersInput) -> bool
fn eq(&self, other: &ListPhoneNumbersInput) -> bool
self
and other
values to be equal, and is used
by ==
.