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.
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) -> MailFromAttributes
pub fn build(self) -> MailFromAttributes
Consumes the builder and constructs a MailFromAttributes.
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<MailFromAttributesBuilder> for MailFromAttributesBuilder
impl PartialEq<MailFromAttributesBuilder> 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 ==.