public IdentityMailFromDomainAttributes withBehaviorOnMXFailure(BehaviorOnMXFailure behaviorOnMXFailure) {
        this.behaviorOnMXFailure = behaviorOnMXFailure.toString();
        return this;
    }
<p>
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A
value of <code>UseDefaultValue</code> 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 <code>RejectMessage</code> indicates
that if Amazon SES cannot read the required MX record, Amazon SES returns a
<code>MailFromDomainNotVerified</code> error and does not send the email.
</p>
<p>
The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>, <code>Failed</code>, and
<code>TemporaryFailure</code>.
</p>

@param behaviorOnMXFailure
       The action that Amazon SES takes if it cannot successfully read the required MX record when you send an
       email. A value of <code>UseDefaultValue</code> 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
       <code>RejectMessage</code> indicates that if Amazon SES cannot read the required MX record, Amazon SES
       returns a <code>MailFromDomainNotVerified</code> error and does not send the email.</p>
       <p>
       The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>,
       <code>Failed</code>, and <code>TemporaryFailure</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see BehaviorOnMXFailure
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/IdentityMailFromDomainAttributes.java