Struct aws_sdk_sesv2::types::builders::MailFromAttributesBuilder
source · #[non_exhaustive]pub struct MailFromAttributesBuilder { /* private fields */ }
Expand description
A builder for MailFromAttributes
.
Implementations§
source§impl MailFromAttributesBuilder
impl MailFromAttributesBuilder
sourcepub fn mail_from_domain(self, input: impl Into<String>) -> Self
pub fn mail_from_domain(self, input: impl Into<String>) -> Self
The name of a domain that an email identity uses as a custom MAIL FROM domain.
This field is required.sourcepub fn set_mail_from_domain(self, input: Option<String>) -> Self
pub fn set_mail_from_domain(self, input: Option<String>) -> Self
The name of a domain that an email identity uses as a custom MAIL FROM domain.
sourcepub fn get_mail_from_domain(&self) -> &Option<String>
pub fn get_mail_from_domain(&self) -> &Option<String>
The name of a domain that an email identity uses as a custom MAIL FROM domain.
sourcepub fn mail_from_domain_status(self, input: MailFromDomainStatus) -> Self
pub fn mail_from_domain_status(self, input: MailFromDomainStatus) -> Self
The status of the MAIL FROM domain. This status can have the following values:
-
PENDING
– Amazon SES hasn't started searching for the MX record yet. -
SUCCESS
– Amazon SES detected the required MX record for the MAIL FROM domain. -
FAILED
– Amazon SES can't find the required MX record, or the record no longer exists. -
TEMPORARY_FAILURE
– A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.
sourcepub fn set_mail_from_domain_status(
self,
input: Option<MailFromDomainStatus>,
) -> Self
pub fn set_mail_from_domain_status( self, input: Option<MailFromDomainStatus>, ) -> Self
The status of the MAIL FROM domain. This status can have the following values:
-
PENDING
– Amazon SES hasn't started searching for the MX record yet. -
SUCCESS
– Amazon SES detected the required MX record for the MAIL FROM domain. -
FAILED
– Amazon SES can't find the required MX record, or the record no longer exists. -
TEMPORARY_FAILURE
– A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.
sourcepub fn get_mail_from_domain_status(&self) -> &Option<MailFromDomainStatus>
pub fn get_mail_from_domain_status(&self) -> &Option<MailFromDomainStatus>
The status of the MAIL FROM domain. This status can have the following values:
-
PENDING
– Amazon SES hasn't started searching for the MX record yet. -
SUCCESS
– Amazon SES detected the required MX record for the MAIL FROM domain. -
FAILED
– Amazon SES can't find the required MX record, or the record no longer exists. -
TEMPORARY_FAILURE
– A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.
sourcepub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
pub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
The action to take if the required MX record can't be found when you send an email. When you set this value to USE_DEFAULT_VALUE
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE
, the Amazon SES API v2 returns a MailFromDomainNotVerified
error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending
, Failed
, and TemporaryFailure
states.
sourcepub fn set_behavior_on_mx_failure(
self,
input: Option<BehaviorOnMxFailure>,
) -> Self
pub fn set_behavior_on_mx_failure( self, input: Option<BehaviorOnMxFailure>, ) -> Self
The action to take if the required MX record can't be found when you send an email. When you set this value to USE_DEFAULT_VALUE
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE
, the Amazon SES API v2 returns a MailFromDomainNotVerified
error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending
, Failed
, and TemporaryFailure
states.
sourcepub fn get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
pub fn get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
The action to take if the required MX record can't be found when you send an email. When you set this value to USE_DEFAULT_VALUE
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE
, the Amazon SES API v2 returns a MailFromDomainNotVerified
error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending
, Failed
, and TemporaryFailure
states.
sourcepub fn build(self) -> Result<MailFromAttributes, BuildError>
pub fn build(self) -> Result<MailFromAttributes, BuildError>
Consumes the builder and constructs a MailFromAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MailFromAttributesBuilder
impl Clone for MailFromAttributesBuilder
source§fn clone(&self) -> MailFromAttributesBuilder
fn clone(&self) -> MailFromAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MailFromAttributesBuilder
impl Debug for MailFromAttributesBuilder
source§impl Default for MailFromAttributesBuilder
impl Default for MailFromAttributesBuilder
source§fn default() -> MailFromAttributesBuilder
fn default() -> MailFromAttributesBuilder
source§impl PartialEq for MailFromAttributesBuilder
impl PartialEq for MailFromAttributesBuilder
source§fn eq(&self, other: &MailFromAttributesBuilder) -> bool
fn eq(&self, other: &MailFromAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MailFromAttributesBuilder
Auto Trait Implementations§
impl Freeze for MailFromAttributesBuilder
impl RefUnwindSafe for MailFromAttributesBuilder
impl Send for MailFromAttributesBuilder
impl Sync for MailFromAttributesBuilder
impl Unpin for MailFromAttributesBuilder
impl UnwindSafe for MailFromAttributesBuilder
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