pub struct CreateSipMediaApplicationCall { /* private fields */ }Expand description
Fluent builder constructing a request to CreateSipMediaApplicationCall.
Creates an outbound call to a phone number from the phone number specified in the request, and it invokes the endpoint of the specified sipMediaApplicationId.
Implementations
sourceimpl CreateSipMediaApplicationCall
impl CreateSipMediaApplicationCall
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateSipMediaApplicationCall, AwsResponseRetryClassifier>, SdkError<CreateSipMediaApplicationCallError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateSipMediaApplicationCall, AwsResponseRetryClassifier>, SdkError<CreateSipMediaApplicationCallError>>
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<CreateSipMediaApplicationCallOutput, SdkError<CreateSipMediaApplicationCallError>>
pub async fn send(
self
) -> Result<CreateSipMediaApplicationCallOutput, SdkError<CreateSipMediaApplicationCallError>>
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 from_phone_number(self, input: impl Into<String>) -> Self
pub fn from_phone_number(self, input: impl Into<String>) -> Self
The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory.
sourcepub fn set_from_phone_number(self, input: Option<String>) -> Self
pub fn set_from_phone_number(self, input: Option<String>) -> Self
The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory.
sourcepub fn to_phone_number(self, input: impl Into<String>) -> Self
pub fn to_phone_number(self, input: impl Into<String>) -> Self
The phone number that the service should call.
sourcepub fn set_to_phone_number(self, input: Option<String>) -> Self
pub fn set_to_phone_number(self, input: Option<String>) -> Self
The phone number that the service should call.
sourcepub fn sip_media_application_id(self, input: impl Into<String>) -> Self
pub fn sip_media_application_id(self, input: impl Into<String>) -> Self
The ID of the SIP media application.
sourcepub fn set_sip_media_application_id(self, input: Option<String>) -> Self
pub fn set_sip_media_application_id(self, input: Option<String>) -> Self
The ID of the SIP media application.
sourcepub fn sip_headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn sip_headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to SipHeaders.
To override the contents of this collection use set_sip_headers.
The SIP headers added to an outbound call leg.
Trait Implementations
sourceimpl Clone for CreateSipMediaApplicationCall
impl Clone for CreateSipMediaApplicationCall
sourcefn clone(&self) -> CreateSipMediaApplicationCall
fn clone(&self) -> CreateSipMediaApplicationCall
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more