pub struct Builder { /* private fields */ }
Expand description
A builder for SearchAvailablePhoneNumbersInput
.
Implementations§
source§impl Builder
impl Builder
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.
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.
sourcepub fn phone_number_country_code(self, input: PhoneNumberCountryCode) -> Self
pub fn phone_number_country_code(self, input: PhoneNumberCountryCode) -> Self
The ISO country code.
sourcepub fn set_phone_number_country_code(
self,
input: Option<PhoneNumberCountryCode>
) -> Self
pub fn set_phone_number_country_code(
self,
input: Option<PhoneNumberCountryCode>
) -> Self
The ISO country code.
sourcepub fn phone_number_type(self, input: PhoneNumberType) -> Self
pub fn phone_number_type(self, input: PhoneNumberType) -> Self
The type of phone number.
sourcepub fn set_phone_number_type(self, input: Option<PhoneNumberType>) -> Self
pub fn set_phone_number_type(self, input: Option<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 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 build(self) -> Result<SearchAvailablePhoneNumbersInput, BuildError>
pub fn build(self) -> Result<SearchAvailablePhoneNumbersInput, BuildError>
Consumes the builder and constructs a SearchAvailablePhoneNumbersInput
.