pub struct CreatePhoneNumberOrder { /* private fields */ }Expand description
Fluent builder constructing a request to CreatePhoneNumberOrder.
Creates an order for phone numbers to be provisioned. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type.
Implementations
sourceimpl CreatePhoneNumberOrder
impl CreatePhoneNumberOrder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreatePhoneNumberOrder, AwsResponseRetryClassifier>, SdkError<CreatePhoneNumberOrderError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreatePhoneNumberOrder, AwsResponseRetryClassifier>, SdkError<CreatePhoneNumberOrderError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreatePhoneNumberOrderOutput, SdkError<CreatePhoneNumberOrderError>>
pub async fn send(
self
) -> Result<CreatePhoneNumberOrderOutput, SdkError<CreatePhoneNumberOrderError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn product_type(self, input: PhoneNumberProductType) -> Self
pub fn product_type(self, input: PhoneNumberProductType) -> Self
The phone number product type.
sourcepub fn set_product_type(self, input: Option<PhoneNumberProductType>) -> Self
pub fn set_product_type(self, input: Option<PhoneNumberProductType>) -> Self
The phone number product type.
sourcepub fn e164_phone_numbers(self, input: impl Into<String>) -> Self
pub fn e164_phone_numbers(self, input: impl Into<String>) -> Self
Appends an item to E164PhoneNumbers.
To override the contents of this collection use set_e164_phone_numbers.
List of phone numbers, in E.164 format.
sourcepub fn set_e164_phone_numbers(self, input: Option<Vec<String>>) -> Self
pub fn set_e164_phone_numbers(self, input: Option<Vec<String>>) -> Self
List of phone numbers, in E.164 format.
Trait Implementations
sourceimpl Clone for CreatePhoneNumberOrder
impl Clone for CreatePhoneNumberOrder
sourcefn clone(&self) -> CreatePhoneNumberOrder
fn clone(&self) -> CreatePhoneNumberOrder
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more