#[non_exhaustive]pub struct EmailConfigurationBuilder { /* private fields */ }
Expand description
A builder for EmailConfiguration
.
Implementations§
source§impl EmailConfigurationBuilder
impl EmailConfigurationBuilder
sourcepub fn from(self, input: impl Into<String>) -> Self
pub fn from(self, input: impl Into<String>) -> Self
The email address that sends emails.
If you use the AWS IoT Events managed AWS Lambda function to manage your emails, you must verify the email address that sends emails in Amazon SES.
sourcepub fn set_from(self, input: Option<String>) -> Self
pub fn set_from(self, input: Option<String>) -> Self
The email address that sends emails.
If you use the AWS IoT Events managed AWS Lambda function to manage your emails, you must verify the email address that sends emails in Amazon SES.
sourcepub fn get_from(&self) -> &Option<String>
pub fn get_from(&self) -> &Option<String>
The email address that sends emails.
If you use the AWS IoT Events managed AWS Lambda function to manage your emails, you must verify the email address that sends emails in Amazon SES.
sourcepub fn content(self, input: EmailContent) -> Self
pub fn content(self, input: EmailContent) -> Self
Contains the subject and message of an email.
sourcepub fn set_content(self, input: Option<EmailContent>) -> Self
pub fn set_content(self, input: Option<EmailContent>) -> Self
Contains the subject and message of an email.
sourcepub fn get_content(&self) -> &Option<EmailContent>
pub fn get_content(&self) -> &Option<EmailContent>
Contains the subject and message of an email.
sourcepub fn recipients(self, input: EmailRecipients) -> Self
pub fn recipients(self, input: EmailRecipients) -> Self
Contains the information of one or more recipients who receive the emails.
You must add the users that receive emails to your AWS SSO store.
sourcepub fn set_recipients(self, input: Option<EmailRecipients>) -> Self
pub fn set_recipients(self, input: Option<EmailRecipients>) -> Self
Contains the information of one or more recipients who receive the emails.
You must add the users that receive emails to your AWS SSO store.
sourcepub fn get_recipients(&self) -> &Option<EmailRecipients>
pub fn get_recipients(&self) -> &Option<EmailRecipients>
Contains the information of one or more recipients who receive the emails.
You must add the users that receive emails to your AWS SSO store.
sourcepub fn build(self) -> Result<EmailConfiguration, BuildError>
pub fn build(self) -> Result<EmailConfiguration, BuildError>
Consumes the builder and constructs a EmailConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EmailConfigurationBuilder
impl Clone for EmailConfigurationBuilder
source§fn clone(&self) -> EmailConfigurationBuilder
fn clone(&self) -> EmailConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EmailConfigurationBuilder
impl Debug for EmailConfigurationBuilder
source§impl Default for EmailConfigurationBuilder
impl Default for EmailConfigurationBuilder
source§fn default() -> EmailConfigurationBuilder
fn default() -> EmailConfigurationBuilder
source§impl PartialEq for EmailConfigurationBuilder
impl PartialEq for EmailConfigurationBuilder
source§fn eq(&self, other: &EmailConfigurationBuilder) -> bool
fn eq(&self, other: &EmailConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EmailConfigurationBuilder
Auto Trait Implementations§
impl Freeze for EmailConfigurationBuilder
impl RefUnwindSafe for EmailConfigurationBuilder
impl Send for EmailConfigurationBuilder
impl Sync for EmailConfigurationBuilder
impl Unpin for EmailConfigurationBuilder
impl UnwindSafe for EmailConfigurationBuilder
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