#[non_exhaustive]pub struct IdentityMailFromDomainAttributesBuilder { /* private fields */ }Expand description
A builder for IdentityMailFromDomainAttributes.
Implementations§
source§impl IdentityMailFromDomainAttributesBuilder
impl IdentityMailFromDomainAttributesBuilder
sourcepub fn mail_from_domain(self, input: impl Into<String>) -> Self
pub fn mail_from_domain(self, input: impl Into<String>) -> Self
The custom MAIL FROM domain that the identity is configured to use.
sourcepub fn set_mail_from_domain(self, input: Option<String>) -> Self
pub fn set_mail_from_domain(self, input: Option<String>) -> Self
The custom MAIL FROM domain that the identity is configured to use.
sourcepub fn mail_from_domain_status(self, input: CustomMailFromStatus) -> Self
pub fn mail_from_domain_status(self, input: CustomMailFromStatus) -> Self
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.
sourcepub fn set_mail_from_domain_status(
self,
input: Option<CustomMailFromStatus>
) -> Self
pub fn set_mail_from_domain_status( self, input: Option<CustomMailFromStatus> ) -> Self
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.
sourcepub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
pub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending, Failed, and TemporaryFailure.
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 that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending, Failed, and TemporaryFailure.
sourcepub fn build(self) -> IdentityMailFromDomainAttributes
pub fn build(self) -> IdentityMailFromDomainAttributes
Consumes the builder and constructs a IdentityMailFromDomainAttributes.
Trait Implementations§
source§impl Clone for IdentityMailFromDomainAttributesBuilder
impl Clone for IdentityMailFromDomainAttributesBuilder
source§fn clone(&self) -> IdentityMailFromDomainAttributesBuilder
fn clone(&self) -> IdentityMailFromDomainAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for IdentityMailFromDomainAttributesBuilder
impl Default for IdentityMailFromDomainAttributesBuilder
source§fn default() -> IdentityMailFromDomainAttributesBuilder
fn default() -> IdentityMailFromDomainAttributesBuilder
source§impl PartialEq<IdentityMailFromDomainAttributesBuilder> for IdentityMailFromDomainAttributesBuilder
impl PartialEq<IdentityMailFromDomainAttributesBuilder> for IdentityMailFromDomainAttributesBuilder
source§fn eq(&self, other: &IdentityMailFromDomainAttributesBuilder) -> bool
fn eq(&self, other: &IdentityMailFromDomainAttributesBuilder) -> bool
self and other values to be equal, and is used
by ==.