Struct aws_sdk_pinpointsmsvoice::operation::send_voice_message::builders::SendVoiceMessageInputBuilder
source · #[non_exhaustive]pub struct SendVoiceMessageInputBuilder { /* private fields */ }
Expand description
A builder for SendVoiceMessageInput
.
Implementations§
source§impl SendVoiceMessageInputBuilder
impl SendVoiceMessageInputBuilder
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.
sourcepub fn build(self) -> Result<SendVoiceMessageInput, BuildError>
pub fn build(self) -> Result<SendVoiceMessageInput, BuildError>
Consumes the builder and constructs a SendVoiceMessageInput
.
source§impl SendVoiceMessageInputBuilder
impl SendVoiceMessageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendVoiceMessageOutput, SdkError<SendVoiceMessageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendVoiceMessageOutput, SdkError<SendVoiceMessageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendVoiceMessageInputBuilder
impl Clone for SendVoiceMessageInputBuilder
source§fn clone(&self) -> SendVoiceMessageInputBuilder
fn clone(&self) -> SendVoiceMessageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendVoiceMessageInputBuilder
impl Debug for SendVoiceMessageInputBuilder
source§impl Default for SendVoiceMessageInputBuilder
impl Default for SendVoiceMessageInputBuilder
source§fn default() -> SendVoiceMessageInputBuilder
fn default() -> SendVoiceMessageInputBuilder
source§impl PartialEq for SendVoiceMessageInputBuilder
impl PartialEq for SendVoiceMessageInputBuilder
source§fn eq(&self, other: &SendVoiceMessageInputBuilder) -> bool
fn eq(&self, other: &SendVoiceMessageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendVoiceMessageInputBuilder
Auto Trait Implementations§
impl Freeze for SendVoiceMessageInputBuilder
impl RefUnwindSafe for SendVoiceMessageInputBuilder
impl Send for SendVoiceMessageInputBuilder
impl Sync for SendVoiceMessageInputBuilder
impl Unpin for SendVoiceMessageInputBuilder
impl UnwindSafe for SendVoiceMessageInputBuilder
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