#[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.
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 custom MAIL FROM domain that the identity is configured to use.
sourcepub fn get_mail_from_domain(&self) -> &Option<String>
pub fn get_mail_from_domain(&self) -> &Option<String>
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 get_mail_from_domain_status(&self) -> &Option<CustomMailFromStatus>
pub fn get_mail_from_domain_status(&self) -> &Option<CustomMailFromStatus>
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 get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
pub fn get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
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) -> Result<IdentityMailFromDomainAttributes, BuildError>
pub fn build(self) -> Result<IdentityMailFromDomainAttributes, BuildError>
Consumes the builder and constructs a IdentityMailFromDomainAttributes.
This method will fail if any of the following fields are not set:
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 for IdentityMailFromDomainAttributesBuilder
impl PartialEq 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 ==.