/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpointemail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *

* A request to configure the custom MAIL FROM domain for a verified identity. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutEmailIdentityMailFromAttributesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The verified email identity that you want to set up the custom MAIL FROM domain for. *

*/ private String emailIdentity; /** *

* The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the * following criteria: *

* */ private String mailFromDomain; /** *

* 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 UseDefaultValue, Amazon Pinpoint uses amazonses.com as the MAIL * FROM domain. When you set this value to RejectMessage, Amazon Pinpoint 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. *

*/ private String behaviorOnMxFailure; /** *

* The verified email identity that you want to set up the custom MAIL FROM domain for. *

* * @param emailIdentity * The verified email identity that you want to set up the custom MAIL FROM domain for. */ public void setEmailIdentity(String emailIdentity) { this.emailIdentity = emailIdentity; } /** *

* The verified email identity that you want to set up the custom MAIL FROM domain for. *

* * @return The verified email identity that you want to set up the custom MAIL FROM domain for. */ public String getEmailIdentity() { return this.emailIdentity; } /** *

* The verified email identity that you want to set up the custom MAIL FROM domain for. *

* * @param emailIdentity * The verified email identity that you want to set up the custom MAIL FROM domain for. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEmailIdentityMailFromAttributesRequest withEmailIdentity(String emailIdentity) { setEmailIdentity(emailIdentity); return this; } /** *

* The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the * following criteria: *

* * * @param mailFromDomain * The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the * following criteria:

*