Struct aws_sdk_connect::operation::list_phone_numbers_v2::builders::ListPhoneNumbersV2InputBuilder
source · #[non_exhaustive]pub struct ListPhoneNumbersV2InputBuilder { /* private fields */ }
Expand description
A builder for ListPhoneNumbersV2Input
.
Implementations§
source§impl ListPhoneNumbersV2InputBuilder
impl ListPhoneNumbersV2InputBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone numbers are claimed to. If TargetArn
input is not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same Amazon Web Services Region as the request.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone numbers are claimed to. If TargetArn
input is not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same Amazon Web Services Region as the request.
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.
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.
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 phone_number_country_codes(self, input: PhoneNumberCountryCode) -> Self
pub fn phone_number_country_codes(self, input: PhoneNumberCountryCode) -> Self
Appends an item to phone_number_country_codes
.
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 phone_number_types(self, input: PhoneNumberType) -> Self
pub fn phone_number_types(self, input: PhoneNumberType) -> Self
Appends an item to phone_number_types
.
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_prefix(self, input: impl Into<String>) -> Self
pub fn phone_number_prefix(self, input: impl Into<String>) -> Self
The prefix of the phone number. If provided, it must contain +
as part of the country code.
sourcepub fn set_phone_number_prefix(self, input: Option<String>) -> Self
pub fn set_phone_number_prefix(self, input: Option<String>) -> Self
The prefix of the phone number. If provided, it must contain +
as part of the country code.
sourcepub fn build(self) -> Result<ListPhoneNumbersV2Input, BuildError>
pub fn build(self) -> Result<ListPhoneNumbersV2Input, BuildError>
Consumes the builder and constructs a ListPhoneNumbersV2Input
.
Trait Implementations§
source§impl Clone for ListPhoneNumbersV2InputBuilder
impl Clone for ListPhoneNumbersV2InputBuilder
source§fn clone(&self) -> ListPhoneNumbersV2InputBuilder
fn clone(&self) -> ListPhoneNumbersV2InputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListPhoneNumbersV2InputBuilder
impl Default for ListPhoneNumbersV2InputBuilder
source§fn default() -> ListPhoneNumbersV2InputBuilder
fn default() -> ListPhoneNumbersV2InputBuilder
source§impl PartialEq<ListPhoneNumbersV2InputBuilder> for ListPhoneNumbersV2InputBuilder
impl PartialEq<ListPhoneNumbersV2InputBuilder> for ListPhoneNumbersV2InputBuilder
source§fn eq(&self, other: &ListPhoneNumbersV2InputBuilder) -> bool
fn eq(&self, other: &ListPhoneNumbersV2InputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.