Struct aws_sdk_iotevents::types::builders::SmsConfigurationBuilder
source · #[non_exhaustive]pub struct SmsConfigurationBuilder { /* private fields */ }
Expand description
A builder for SmsConfiguration
.
Implementations§
source§impl SmsConfigurationBuilder
impl SmsConfigurationBuilder
sourcepub fn set_sender_id(self, input: Option<String>) -> Self
pub fn set_sender_id(self, input: Option<String>) -> Self
The sender ID.
sourcepub fn get_sender_id(&self) -> &Option<String>
pub fn get_sender_id(&self) -> &Option<String>
The sender ID.
sourcepub fn additional_message(self, input: impl Into<String>) -> Self
pub fn additional_message(self, input: impl Into<String>) -> Self
The message that you want to send. The message can be up to 200 characters.
sourcepub fn set_additional_message(self, input: Option<String>) -> Self
pub fn set_additional_message(self, input: Option<String>) -> Self
The message that you want to send. The message can be up to 200 characters.
sourcepub fn get_additional_message(&self) -> &Option<String>
pub fn get_additional_message(&self) -> &Option<String>
The message that you want to send. The message can be up to 200 characters.
sourcepub fn recipients(self, input: RecipientDetail) -> Self
pub fn recipients(self, input: RecipientDetail) -> Self
Appends an item to recipients
.
To override the contents of this collection use set_recipients
.
Specifies one or more recipients who receive the message.
You must add the users that receive SMS messages to your AWS SSO store.
sourcepub fn set_recipients(self, input: Option<Vec<RecipientDetail>>) -> Self
pub fn set_recipients(self, input: Option<Vec<RecipientDetail>>) -> Self
Specifies one or more recipients who receive the message.
You must add the users that receive SMS messages to your AWS SSO store.
sourcepub fn get_recipients(&self) -> &Option<Vec<RecipientDetail>>
pub fn get_recipients(&self) -> &Option<Vec<RecipientDetail>>
Specifies one or more recipients who receive the message.
You must add the users that receive SMS messages to your AWS SSO store.
sourcepub fn build(self) -> Result<SmsConfiguration, BuildError>
pub fn build(self) -> Result<SmsConfiguration, BuildError>
Consumes the builder and constructs a SmsConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SmsConfigurationBuilder
impl Clone for SmsConfigurationBuilder
source§fn clone(&self) -> SmsConfigurationBuilder
fn clone(&self) -> SmsConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SmsConfigurationBuilder
impl Debug for SmsConfigurationBuilder
source§impl Default for SmsConfigurationBuilder
impl Default for SmsConfigurationBuilder
source§fn default() -> SmsConfigurationBuilder
fn default() -> SmsConfigurationBuilder
source§impl PartialEq for SmsConfigurationBuilder
impl PartialEq for SmsConfigurationBuilder
source§fn eq(&self, other: &SmsConfigurationBuilder) -> bool
fn eq(&self, other: &SmsConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SmsConfigurationBuilder
Auto Trait Implementations§
impl Freeze for SmsConfigurationBuilder
impl RefUnwindSafe for SmsConfigurationBuilder
impl Send for SmsConfigurationBuilder
impl Sync for SmsConfigurationBuilder
impl Unpin for SmsConfigurationBuilder
impl UnwindSafe for SmsConfigurationBuilder
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