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 number inbound traffic is routed through. If both TargetArn
and InstanceId
input are 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 number inbound traffic is routed through. If both TargetArn
and InstanceId
input are 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 get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. If both TargetArn
and InstanceId
input are 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 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 that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. If both TargetArn
and InstanceId
are not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same AWS Region as the request.
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 that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. If both TargetArn
and InstanceId
are not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same AWS Region as the request.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. If both TargetArn
and InstanceId
are not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same AWS 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 get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
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 get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &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.
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 get_phone_number_country_codes(
&self
) -> &Option<Vec<PhoneNumberCountryCode>>
pub fn get_phone_number_country_codes( &self ) -> &Option<Vec<PhoneNumberCountryCode>>
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 get_phone_number_types(&self) -> &Option<Vec<PhoneNumberType>>
pub fn get_phone_number_types(&self) -> &Option<Vec<PhoneNumberType>>
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 get_phone_number_prefix(&self) -> &Option<String>
pub fn get_phone_number_prefix(&self) -> &Option<String>
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
.
source§impl ListPhoneNumbersV2InputBuilder
impl ListPhoneNumbersV2InputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListPhoneNumbersV2Output, SdkError<ListPhoneNumbersV2Error, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListPhoneNumbersV2Output, SdkError<ListPhoneNumbersV2Error, HttpResponse>>
Sends a request with this input using the given client.
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 for ListPhoneNumbersV2InputBuilder
impl PartialEq 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 ==
.