Struct aws_sdk_chime::operation::create_sip_media_application_call::builders::CreateSipMediaApplicationCallInputBuilder
source · #[non_exhaustive]pub struct CreateSipMediaApplicationCallInputBuilder { /* private fields */ }
Expand description
A builder for CreateSipMediaApplicationCallInput
.
Implementations§
source§impl CreateSipMediaApplicationCallInputBuilder
impl CreateSipMediaApplicationCallInputBuilder
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.
This field is required.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 get_from_phone_number(&self) -> &Option<String>
pub fn get_from_phone_number(&self) -> &Option<String>
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.
This field is required.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 get_to_phone_number(&self) -> &Option<String>
pub fn get_to_phone_number(&self) -> &Option<String>
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.
This field is required.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 get_sip_media_application_id(&self) -> &Option<String>
pub fn get_sip_media_application_id(&self) -> &Option<String>
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 sip_headers
.
To override the contents of this collection use set_sip_headers
.
The SIP headers added to an outbound call leg.
sourcepub fn set_sip_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_sip_headers(self, input: Option<HashMap<String, String>>) -> Self
The SIP headers added to an outbound call leg.
sourcepub fn get_sip_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_sip_headers(&self) -> &Option<HashMap<String, String>>
The SIP headers added to an outbound call leg.
sourcepub fn build(self) -> Result<CreateSipMediaApplicationCallInput, BuildError>
pub fn build(self) -> Result<CreateSipMediaApplicationCallInput, BuildError>
Consumes the builder and constructs a CreateSipMediaApplicationCallInput
.
source§impl CreateSipMediaApplicationCallInputBuilder
impl CreateSipMediaApplicationCallInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSipMediaApplicationCallOutput, SdkError<CreateSipMediaApplicationCallError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSipMediaApplicationCallOutput, SdkError<CreateSipMediaApplicationCallError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSipMediaApplicationCallInputBuilder
impl Clone for CreateSipMediaApplicationCallInputBuilder
source§fn clone(&self) -> CreateSipMediaApplicationCallInputBuilder
fn clone(&self) -> CreateSipMediaApplicationCallInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateSipMediaApplicationCallInputBuilder
impl Default for CreateSipMediaApplicationCallInputBuilder
source§fn default() -> CreateSipMediaApplicationCallInputBuilder
fn default() -> CreateSipMediaApplicationCallInputBuilder
source§impl PartialEq for CreateSipMediaApplicationCallInputBuilder
impl PartialEq for CreateSipMediaApplicationCallInputBuilder
source§fn eq(&self, other: &CreateSipMediaApplicationCallInputBuilder) -> bool
fn eq(&self, other: &CreateSipMediaApplicationCallInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSipMediaApplicationCallInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSipMediaApplicationCallInputBuilder
impl RefUnwindSafe for CreateSipMediaApplicationCallInputBuilder
impl Send for CreateSipMediaApplicationCallInputBuilder
impl Sync for CreateSipMediaApplicationCallInputBuilder
impl Unpin for CreateSipMediaApplicationCallInputBuilder
impl UnwindSafe for CreateSipMediaApplicationCallInputBuilder
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