public void setBehaviorOnMxFailure(String behaviorOnMxFailure) {
        this.behaviorOnMxFailure = behaviorOnMxFailure;
    }
<p>
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email.
When you set this value to <code>UseDefaultValue</code>, Amazon Pinpoint uses <i>amazonses.com</i> as the MAIL
FROM domain. When you set this value to <code>RejectMessage</code>, Amazon Pinpoint returns a
<code>MailFromDomainNotVerified</code> error, and doesn't attempt to deliver the email.
</p>
<p>
These behaviors are taken when the custom MAIL FROM domain configuration is in the <code>Pending</code>,
<code>Failed</code>, and <code>TemporaryFailure</code> states.
</p>

@param behaviorOnMxFailure
       The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an
       email. When you set this value to <code>UseDefaultValue</code>, Amazon Pinpoint uses <i>amazonses.com</i>
       as the MAIL FROM domain. When you set this value to <code>RejectMessage</code>, Amazon Pinpoint returns a
       <code>MailFromDomainNotVerified</code> error, and doesn't attempt to deliver the email.</p>
       <p>
       These behaviors are taken when the custom MAIL FROM domain configuration is in the <code>Pending</code>,
       <code>Failed</code>, and <code>TemporaryFailure</code> states.
@see BehaviorOnMxFailure
aws-java-sdk-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/PutEmailIdentityMailFromAttributesRequest.java