Struct aws_sdk_sesv2::operation::put_email_identity_mail_from_attributes::builders::PutEmailIdentityMailFromAttributesFluentBuilder
source · pub struct PutEmailIdentityMailFromAttributesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutEmailIdentityMailFromAttributes
.
Used to enable or disable the custom Mail-From domain configuration for an email identity.
Implementations§
source§impl PutEmailIdentityMailFromAttributesFluentBuilder
impl PutEmailIdentityMailFromAttributesFluentBuilder
sourcepub fn as_input(&self) -> &PutEmailIdentityMailFromAttributesInputBuilder
pub fn as_input(&self) -> &PutEmailIdentityMailFromAttributesInputBuilder
Access the PutEmailIdentityMailFromAttributes as a reference.
sourcepub async fn send(
self
) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError, HttpResponse>>
pub async fn send( self ) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutEmailIdentityMailFromAttributesOutput, PutEmailIdentityMailFromAttributesError, Self>
pub fn customize( self ) -> CustomizableOperation<PutEmailIdentityMailFromAttributesOutput, PutEmailIdentityMailFromAttributesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn email_identity(self, input: impl Into<String>) -> Self
pub fn email_identity(self, input: impl Into<String>) -> Self
The verified email identity.
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.
Trait Implementations§
source§impl Clone for PutEmailIdentityMailFromAttributesFluentBuilder
impl Clone for PutEmailIdentityMailFromAttributesFluentBuilder
source§fn clone(&self) -> PutEmailIdentityMailFromAttributesFluentBuilder
fn clone(&self) -> PutEmailIdentityMailFromAttributesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutEmailIdentityMailFromAttributesFluentBuilder
impl !RefUnwindSafe for PutEmailIdentityMailFromAttributesFluentBuilder
impl Send for PutEmailIdentityMailFromAttributesFluentBuilder
impl Sync for PutEmailIdentityMailFromAttributesFluentBuilder
impl Unpin for PutEmailIdentityMailFromAttributesFluentBuilder
impl !UnwindSafe for PutEmailIdentityMailFromAttributesFluentBuilder
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