Struct aws_sdk_chime::operation::create_phone_number_order::builders::CreatePhoneNumberOrderFluentBuilder
source · pub struct CreatePhoneNumberOrderFluentBuilder { /* 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§
source§impl CreatePhoneNumberOrderFluentBuilder
impl CreatePhoneNumberOrderFluentBuilder
sourcepub fn as_input(&self) -> &CreatePhoneNumberOrderInputBuilder
pub fn as_input(&self) -> &CreatePhoneNumberOrderInputBuilder
Access the CreatePhoneNumberOrder as a reference.
sourcepub async fn send(
self
) -> Result<CreatePhoneNumberOrderOutput, SdkError<CreatePhoneNumberOrderError, HttpResponse>>
pub async fn send( self ) -> Result<CreatePhoneNumberOrderOutput, SdkError<CreatePhoneNumberOrderError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreatePhoneNumberOrderOutput, CreatePhoneNumberOrderError, Self>
pub fn customize( self ) -> CustomizableOperation<CreatePhoneNumberOrderOutput, CreatePhoneNumberOrderError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_product_type(&self) -> &Option<PhoneNumberProductType>
pub fn get_product_type(&self) -> &Option<PhoneNumberProductType>
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.
sourcepub fn get_e164_phone_numbers(&self) -> &Option<Vec<String>>
pub fn get_e164_phone_numbers(&self) -> &Option<Vec<String>>
List of phone numbers, in E.164 format.
Trait Implementations§
source§impl Clone for CreatePhoneNumberOrderFluentBuilder
impl Clone for CreatePhoneNumberOrderFluentBuilder
source§fn clone(&self) -> CreatePhoneNumberOrderFluentBuilder
fn clone(&self) -> CreatePhoneNumberOrderFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreatePhoneNumberOrderFluentBuilder
impl !RefUnwindSafe for CreatePhoneNumberOrderFluentBuilder
impl Send for CreatePhoneNumberOrderFluentBuilder
impl Sync for CreatePhoneNumberOrderFluentBuilder
impl Unpin for CreatePhoneNumberOrderFluentBuilder
impl !UnwindSafe for CreatePhoneNumberOrderFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more