Struct aws_sdk_sesv2::operation::put_email_identity_mail_from_attributes::builders::PutEmailIdentityMailFromAttributesInputBuilder
source · #[non_exhaustive]pub struct PutEmailIdentityMailFromAttributesInputBuilder { /* private fields */ }
Expand description
A builder for PutEmailIdentityMailFromAttributesInput
.
Implementations§
source§impl PutEmailIdentityMailFromAttributesInputBuilder
impl PutEmailIdentityMailFromAttributesInputBuilder
sourcepub fn email_identity(self, input: impl Into<String>) -> Self
pub fn email_identity(self, input: impl Into<String>) -> Self
The verified email identity.
This field is required.sourcepub fn set_email_identity(self, input: Option<String>) -> Self
pub fn set_email_identity(self, input: Option<String>) -> Self
The verified email identity.
sourcepub fn get_email_identity(&self) -> &Option<String>
pub fn get_email_identity(&self) -> &Option<String>
The verified email identity.
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 you want the verified identity to use. The MAIL FROM domain must meet the following criteria:
-
It has to be a subdomain of the verified identity.
-
It can't be used to receive email.
-
It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
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 you want the verified identity to use. The MAIL FROM domain must meet the following criteria:
-
It has to be a subdomain of the verified identity.
-
It can't be used to receive email.
-
It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
sourcepub fn get_mail_from_domain(&self) -> &Option<String>
pub fn get_mail_from_domain(&self) -> &Option<String>
The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:
-
It has to be a subdomain of the verified identity.
-
It can't be used to receive email.
-
It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
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 isn't found when you send an email. When you set this value to UseDefaultValue
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage
, 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 isn't found when you send an email. When you set this value to UseDefaultValue
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage
, 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 isn't found when you send an email. When you set this value to UseDefaultValue
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage
, 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<PutEmailIdentityMailFromAttributesInput, BuildError>
pub fn build( self, ) -> Result<PutEmailIdentityMailFromAttributesInput, BuildError>
Consumes the builder and constructs a PutEmailIdentityMailFromAttributesInput
.
source§impl PutEmailIdentityMailFromAttributesInputBuilder
impl PutEmailIdentityMailFromAttributesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutEmailIdentityMailFromAttributesInputBuilder
impl Clone for PutEmailIdentityMailFromAttributesInputBuilder
source§fn clone(&self) -> PutEmailIdentityMailFromAttributesInputBuilder
fn clone(&self) -> PutEmailIdentityMailFromAttributesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutEmailIdentityMailFromAttributesInputBuilder
impl Default for PutEmailIdentityMailFromAttributesInputBuilder
source§fn default() -> PutEmailIdentityMailFromAttributesInputBuilder
fn default() -> PutEmailIdentityMailFromAttributesInputBuilder
source§impl PartialEq for PutEmailIdentityMailFromAttributesInputBuilder
impl PartialEq for PutEmailIdentityMailFromAttributesInputBuilder
source§fn eq(&self, other: &PutEmailIdentityMailFromAttributesInputBuilder) -> bool
fn eq(&self, other: &PutEmailIdentityMailFromAttributesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutEmailIdentityMailFromAttributesInputBuilder
Auto Trait Implementations§
impl Freeze for PutEmailIdentityMailFromAttributesInputBuilder
impl RefUnwindSafe for PutEmailIdentityMailFromAttributesInputBuilder
impl Send for PutEmailIdentityMailFromAttributesInputBuilder
impl Sync for PutEmailIdentityMailFromAttributesInputBuilder
impl Unpin for PutEmailIdentityMailFromAttributesInputBuilder
impl UnwindSafe for PutEmailIdentityMailFromAttributesInputBuilder
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