/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A list of attributes that are associated with a MAIL FROM domain. *

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

* The name of a domain that an email identity uses as a custom MAIL FROM domain. *

*/ private String mailFromDomain; /** *

* The status of the MAIL FROM domain. This status can have the following values: *

* */ private String mailFromDomainStatus; /** *

* The action that Amazon Pinpoint to takes if it can't read the required MX record for a custom MAIL FROM domain. * 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 name of a domain that an email identity uses as a custom MAIL FROM domain. *

* * @param mailFromDomain * The name of a domain that an email identity uses as a custom MAIL FROM domain. */ public void setMailFromDomain(String mailFromDomain) { this.mailFromDomain = mailFromDomain; } /** *

* The name of a domain that an email identity uses as a custom MAIL FROM domain. *

* * @return The name of a domain that an email identity uses as a custom MAIL FROM domain. */ public String getMailFromDomain() { return this.mailFromDomain; } /** *

* The name of a domain that an email identity uses as a custom MAIL FROM domain. *

* * @param mailFromDomain * The name of a domain that an email identity uses as a custom MAIL FROM domain. * @return Returns a reference to this object so that method calls can be chained together. */ public MailFromAttributes withMailFromDomain(String mailFromDomain) { setMailFromDomain(mailFromDomain); return this; } /** *

* The status of the MAIL FROM domain. This status can have the following values: *

* * * @param mailFromDomainStatus * The status of the MAIL FROM domain. This status can have the following values:

*