Struct aws_sdk_pinpointsmsvoice::operation::send_voice_message::builders::SendVoiceMessageFluentBuilder
source · pub struct SendVoiceMessageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SendVoiceMessage
.
Create a new voice message and send it to a recipient’s phone number.
Implementations§
source§impl SendVoiceMessageFluentBuilder
impl SendVoiceMessageFluentBuilder
sourcepub fn as_input(&self) -> &SendVoiceMessageInputBuilder
pub fn as_input(&self) -> &SendVoiceMessageInputBuilder
Access the SendVoiceMessage as a reference.
sourcepub async fn send(
self
) -> Result<SendVoiceMessageOutput, SdkError<SendVoiceMessageError, HttpResponse>>
pub async fn send( self ) -> Result<SendVoiceMessageOutput, SdkError<SendVoiceMessageError, 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<SendVoiceMessageOutput, SendVoiceMessageError, Self>
pub fn customize( self ) -> CustomizableOperation<SendVoiceMessageOutput, SendVoiceMessageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn caller_id(self, input: impl Into<String>) -> Self
pub fn caller_id(self, input: impl Into<String>) -> Self
The phone number that appears on recipients’ devices when they receive the message.
sourcepub fn set_caller_id(self, input: Option<String>) -> Self
pub fn set_caller_id(self, input: Option<String>) -> Self
The phone number that appears on recipients’ devices when they receive the message.
sourcepub fn get_caller_id(&self) -> &Option<String>
pub fn get_caller_id(&self) -> &Option<String>
The phone number that appears on recipients’ devices when they receive the message.
sourcepub fn configuration_set_name(self, input: impl Into<String>) -> Self
pub fn configuration_set_name(self, input: impl Into<String>) -> Self
The name of the configuration set that you want to use to send the message.
sourcepub fn set_configuration_set_name(self, input: Option<String>) -> Self
pub fn set_configuration_set_name(self, input: Option<String>) -> Self
The name of the configuration set that you want to use to send the message.
sourcepub fn get_configuration_set_name(&self) -> &Option<String>
pub fn get_configuration_set_name(&self) -> &Option<String>
The name of the configuration set that you want to use to send the message.
sourcepub fn content(self, input: VoiceMessageContent) -> Self
pub fn content(self, input: VoiceMessageContent) -> Self
An object that contains a voice message and information about the recipient that you want to send it to.
sourcepub fn set_content(self, input: Option<VoiceMessageContent>) -> Self
pub fn set_content(self, input: Option<VoiceMessageContent>) -> Self
An object that contains a voice message and information about the recipient that you want to send it to.
sourcepub fn get_content(&self) -> &Option<VoiceMessageContent>
pub fn get_content(&self) -> &Option<VoiceMessageContent>
An object that contains a voice message and information about the recipient that you want to send it to.
sourcepub fn destination_phone_number(self, input: impl Into<String>) -> Self
pub fn destination_phone_number(self, input: impl Into<String>) -> Self
The phone number that you want to send the voice message to.
sourcepub fn set_destination_phone_number(self, input: Option<String>) -> Self
pub fn set_destination_phone_number(self, input: Option<String>) -> Self
The phone number that you want to send the voice message to.
sourcepub fn get_destination_phone_number(&self) -> &Option<String>
pub fn get_destination_phone_number(&self) -> &Option<String>
The phone number that you want to send the voice message to.
sourcepub fn origination_phone_number(self, input: impl Into<String>) -> Self
pub fn origination_phone_number(self, input: impl Into<String>) -> Self
The phone number that Amazon Pinpoint should use to send the voice message. This isn’t necessarily the phone number that appears on recipients’ devices when they receive the message, because you can specify a CallerId parameter in the request.
sourcepub fn set_origination_phone_number(self, input: Option<String>) -> Self
pub fn set_origination_phone_number(self, input: Option<String>) -> Self
The phone number that Amazon Pinpoint should use to send the voice message. This isn’t necessarily the phone number that appears on recipients’ devices when they receive the message, because you can specify a CallerId parameter in the request.
sourcepub fn get_origination_phone_number(&self) -> &Option<String>
pub fn get_origination_phone_number(&self) -> &Option<String>
The phone number that Amazon Pinpoint should use to send the voice message. This isn’t necessarily the phone number that appears on recipients’ devices when they receive the message, because you can specify a CallerId parameter in the request.
Trait Implementations§
source§impl Clone for SendVoiceMessageFluentBuilder
impl Clone for SendVoiceMessageFluentBuilder
source§fn clone(&self) -> SendVoiceMessageFluentBuilder
fn clone(&self) -> SendVoiceMessageFluentBuilder
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 SendVoiceMessageFluentBuilder
impl !RefUnwindSafe for SendVoiceMessageFluentBuilder
impl Send for SendVoiceMessageFluentBuilder
impl Sync for SendVoiceMessageFluentBuilder
impl Unpin for SendVoiceMessageFluentBuilder
impl !UnwindSafe for SendVoiceMessageFluentBuilder
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