/* * 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.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents a request to send a single formatted email using Amazon SES. For more information, see the Amazon SES Developer * Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SendEmailRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The email address to use as the "From" address for the email. The address that you specify has to be verified. *
*/ private String fromEmailAddress; /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use sender@example.com, then you would specify the
* FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FromEmailAddress
to be sender@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*
* An object that contains the recipients of the email message. *
*/ private Destination destination; /** ** The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address * receives the reply. *
*/ private java.util.List* The address that you want bounce and complaint notifications to be sent to. *
*/ private String feedbackForwardingEmailAddress; /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
* be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
*/ private String feedbackForwardingEmailAddressIdentityArn; /** ** An object that contains the body of the message. You can send either a Simple message Raw message or a template * Message. *
*/ private EmailContent content; /** *
* A list of tags, in the form of name/value pairs, to apply to an email that you send using the
* SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
* can publish email sending events.
*
* The name of the configuration set to use when sending the email. *
*/ private String configurationSetName; /** ** An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to * unsubscribe. *
*/ private ListManagementOptions listManagementOptions; /** ** The email address to use as the "From" address for the email. The address that you specify has to be verified. *
* * @param fromEmailAddress * The email address to use as the "From" address for the email. The address that you specify has to be * verified. */ public void setFromEmailAddress(String fromEmailAddress) { this.fromEmailAddress = fromEmailAddress; } /** ** The email address to use as the "From" address for the email. The address that you specify has to be verified. *
* * @return The email address to use as the "From" address for the email. The address that you specify has to be * verified. */ public String getFromEmailAddress() { return this.fromEmailAddress; } /** ** The email address to use as the "From" address for the email. The address that you specify has to be verified. *
* * @param fromEmailAddress * The email address to use as the "From" address for the email. The address that you specify has to be * verified. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withFromEmailAddress(String fromEmailAddress) { setFromEmailAddress(fromEmailAddress); return this; } /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use sender@example.com, then you would specify the
* FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FromEmailAddress
to be sender@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*
FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use sender@example.com, then you would specify the FromEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
* sender@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*/
public void setFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn) {
this.fromEmailAddressIdentityArn = fromEmailAddressIdentityArn;
}
/**
*
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use sender@example.com, then you would specify the
* FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FromEmailAddress
to be sender@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*
FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use sender@example.com, then you would specify the FromEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
* sender@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*/
public String getFromEmailAddressIdentityArn() {
return this.fromEmailAddressIdentityArn;
}
/**
*
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use sender@example.com, then you would specify the
* FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FromEmailAddress
to be sender@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
*
FromEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use sender@example.com, then you would specify the FromEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
* sender@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. *
*
* For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
* X-SES-FROM-ARN headers specified in raw email message content.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SendEmailRequest withFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn) {
setFromEmailAddressIdentityArn(fromEmailAddressIdentityArn);
return this;
}
/**
*
* An object that contains the recipients of the email message. *
* * @param destination * An object that contains the recipients of the email message. */ public void setDestination(Destination destination) { this.destination = destination; } /** ** An object that contains the recipients of the email message. *
* * @return An object that contains the recipients of the email message. */ public Destination getDestination() { return this.destination; } /** ** An object that contains the recipients of the email message. *
* * @param destination * An object that contains the recipients of the email message. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withDestination(Destination destination) { setDestination(destination); return this; } /** ** The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address * receives the reply. *
* * @return The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to * address receives the reply. */ public java.util.List* The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address * receives the reply. *
* * @param replyToAddresses * The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to * address receives the reply. */ public void setReplyToAddresses(java.util.Collection* The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address * receives the reply. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplyToAddresses(java.util.Collection)} or {@link #withReplyToAddresses(java.util.Collection)} if you * want to override the existing values. *
* * @param replyToAddresses * The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to * address receives the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(String... replyToAddresses) { if (this.replyToAddresses == null) { setReplyToAddresses(new java.util.ArrayList* The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address * receives the reply. *
* * @param replyToAddresses * The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to * address receives the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(java.util.Collection* The address that you want bounce and complaint notifications to be sent to. *
* * @param feedbackForwardingEmailAddress * The address that you want bounce and complaint notifications to be sent to. */ public void setFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress) { this.feedbackForwardingEmailAddress = feedbackForwardingEmailAddress; } /** ** The address that you want bounce and complaint notifications to be sent to. *
* * @return The address that you want bounce and complaint notifications to be sent to. */ public String getFeedbackForwardingEmailAddress() { return this.feedbackForwardingEmailAddress; } /** ** The address that you want bounce and complaint notifications to be sent to. *
* * @param feedbackForwardingEmailAddress * The address that you want bounce and complaint notifications to be sent to. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress) { setFeedbackForwardingEmailAddress(feedbackForwardingEmailAddress); return this; } /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
* be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
* * @param feedbackForwardingEmailAddressIdentityArn * This parameter is used only for sending authorization. It is the ARN of the identity that is associated * with the sending authorization policy that permits you to use the email address specified in the *FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FeedbackForwardingEmailAddress
to be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. */ public void setFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn) { this.feedbackForwardingEmailAddressIdentityArn = feedbackForwardingEmailAddressIdentityArn; } /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
* be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
* * @return This parameter is used only for sending authorization. It is the ARN of the identity that is associated * with the sending authorization policy that permits you to use the email address specified in the *FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FeedbackForwardingEmailAddress
to be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. */ public String getFeedbackForwardingEmailAddressIdentityArn() { return this.feedbackForwardingEmailAddressIdentityArn; } /** *
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
* sending authorization policy that permits you to use the email address specified in the
* FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
* attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
* be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES Developer * Guide. *
* * @param feedbackForwardingEmailAddressIdentityArn * This parameter is used only for sending authorization. It is the ARN of the identity that is associated * with the sending authorization policy that permits you to use the email address specified in the *FeedbackForwardingEmailAddress
parameter.
*
* For example, if the owner of example.com (which has ARN
* arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
* use feedback@example.com, then you would specify the
* FeedbackForwardingEmailAddressIdentityArn
to be
* arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
* FeedbackForwardingEmailAddress
to be feedback@example.com.
*
* For more information about sending authorization, see the Amazon SES * Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn) { setFeedbackForwardingEmailAddressIdentityArn(feedbackForwardingEmailAddressIdentityArn); return this; } /** *
* An object that contains the body of the message. You can send either a Simple message Raw message or a template * Message. *
* * @param content * An object that contains the body of the message. You can send either a Simple message Raw message or a * template Message. */ public void setContent(EmailContent content) { this.content = content; } /** ** An object that contains the body of the message. You can send either a Simple message Raw message or a template * Message. *
* * @return An object that contains the body of the message. You can send either a Simple message Raw message or a * template Message. */ public EmailContent getContent() { return this.content; } /** ** An object that contains the body of the message. You can send either a Simple message Raw message or a template * Message. *
* * @param content * An object that contains the body of the message. You can send either a Simple message Raw message or a * template Message. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withContent(EmailContent content) { setContent(content); return this; } /** *
* A list of tags, in the form of name/value pairs, to apply to an email that you send using the
* SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
* can publish email sending events.
*
SendEmail
operation. Tags correspond to characteristics of the email that you define, so
* that you can publish email sending events.
*/
public java.util.List
* A list of tags, in the form of name/value pairs, to apply to an email that you send using the
* SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
* can publish email sending events.
*
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
* you can publish email sending events.
*/
public void setEmailTags(java.util.Collection
* A list of tags, in the form of name/value pairs, to apply to an email that you send using the
* SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
* can publish email sending events.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEmailTags(java.util.Collection)} or {@link #withEmailTags(java.util.Collection)} if you want to * override the existing values. *
* * @param emailTags * A list of tags, in the form of name/value pairs, to apply to an email that you send using the *SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
* you can publish email sending events.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SendEmailRequest withEmailTags(MessageTag... emailTags) {
if (this.emailTags == null) {
setEmailTags(new java.util.ArrayList
* A list of tags, in the form of name/value pairs, to apply to an email that you send using the
* SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
* can publish email sending events.
*
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
* you can publish email sending events.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SendEmailRequest withEmailTags(java.util.Collection* The name of the configuration set to use when sending the email. *
* * @param configurationSetName * The name of the configuration set to use when sending the email. */ public void setConfigurationSetName(String configurationSetName) { this.configurationSetName = configurationSetName; } /** ** The name of the configuration set to use when sending the email. *
* * @return The name of the configuration set to use when sending the email. */ public String getConfigurationSetName() { return this.configurationSetName; } /** ** The name of the configuration set to use when sending the email. *
* * @param configurationSetName * The name of the configuration set to use when sending the email. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withConfigurationSetName(String configurationSetName) { setConfigurationSetName(configurationSetName); return this; } /** ** An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to * unsubscribe. *
* * @param listManagementOptions * An object used to specify a list or topic to which an email belongs, which will be used when a contact * chooses to unsubscribe. */ public void setListManagementOptions(ListManagementOptions listManagementOptions) { this.listManagementOptions = listManagementOptions; } /** ** An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to * unsubscribe. *
* * @return An object used to specify a list or topic to which an email belongs, which will be used when a contact * chooses to unsubscribe. */ public ListManagementOptions getListManagementOptions() { return this.listManagementOptions; } /** ** An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to * unsubscribe. *
* * @param listManagementOptions * An object used to specify a list or topic to which an email belongs, which will be used when a contact * chooses to unsubscribe. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withListManagementOptions(ListManagementOptions listManagementOptions) { setListManagementOptions(listManagementOptions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFromEmailAddress() != null) sb.append("FromEmailAddress: ").append(getFromEmailAddress()).append(","); if (getFromEmailAddressIdentityArn() != null) sb.append("FromEmailAddressIdentityArn: ").append(getFromEmailAddressIdentityArn()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getReplyToAddresses() != null) sb.append("ReplyToAddresses: ").append(getReplyToAddresses()).append(","); if (getFeedbackForwardingEmailAddress() != null) sb.append("FeedbackForwardingEmailAddress: ").append(getFeedbackForwardingEmailAddress()).append(","); if (getFeedbackForwardingEmailAddressIdentityArn() != null) sb.append("FeedbackForwardingEmailAddressIdentityArn: ").append(getFeedbackForwardingEmailAddressIdentityArn()).append(","); if (getContent() != null) sb.append("Content: ").append(getContent()).append(","); if (getEmailTags() != null) sb.append("EmailTags: ").append(getEmailTags()).append(","); if (getConfigurationSetName() != null) sb.append("ConfigurationSetName: ").append(getConfigurationSetName()).append(","); if (getListManagementOptions() != null) sb.append("ListManagementOptions: ").append(getListManagementOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SendEmailRequest == false) return false; SendEmailRequest other = (SendEmailRequest) obj; if (other.getFromEmailAddress() == null ^ this.getFromEmailAddress() == null) return false; if (other.getFromEmailAddress() != null && other.getFromEmailAddress().equals(this.getFromEmailAddress()) == false) return false; if (other.getFromEmailAddressIdentityArn() == null ^ this.getFromEmailAddressIdentityArn() == null) return false; if (other.getFromEmailAddressIdentityArn() != null && other.getFromEmailAddressIdentityArn().equals(this.getFromEmailAddressIdentityArn()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getReplyToAddresses() == null ^ this.getReplyToAddresses() == null) return false; if (other.getReplyToAddresses() != null && other.getReplyToAddresses().equals(this.getReplyToAddresses()) == false) return false; if (other.getFeedbackForwardingEmailAddress() == null ^ this.getFeedbackForwardingEmailAddress() == null) return false; if (other.getFeedbackForwardingEmailAddress() != null && other.getFeedbackForwardingEmailAddress().equals(this.getFeedbackForwardingEmailAddress()) == false) return false; if (other.getFeedbackForwardingEmailAddressIdentityArn() == null ^ this.getFeedbackForwardingEmailAddressIdentityArn() == null) return false; if (other.getFeedbackForwardingEmailAddressIdentityArn() != null && other.getFeedbackForwardingEmailAddressIdentityArn().equals(this.getFeedbackForwardingEmailAddressIdentityArn()) == false) return false; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getEmailTags() == null ^ this.getEmailTags() == null) return false; if (other.getEmailTags() != null && other.getEmailTags().equals(this.getEmailTags()) == false) return false; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getListManagementOptions() == null ^ this.getListManagementOptions() == null) return false; if (other.getListManagementOptions() != null && other.getListManagementOptions().equals(this.getListManagementOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFromEmailAddress() == null) ? 0 : getFromEmailAddress().hashCode()); hashCode = prime * hashCode + ((getFromEmailAddressIdentityArn() == null) ? 0 : getFromEmailAddressIdentityArn().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getReplyToAddresses() == null) ? 0 : getReplyToAddresses().hashCode()); hashCode = prime * hashCode + ((getFeedbackForwardingEmailAddress() == null) ? 0 : getFeedbackForwardingEmailAddress().hashCode()); hashCode = prime * hashCode + ((getFeedbackForwardingEmailAddressIdentityArn() == null) ? 0 : getFeedbackForwardingEmailAddressIdentityArn().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getEmailTags() == null) ? 0 : getEmailTags().hashCode()); hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getListManagementOptions() == null) ? 0 : getListManagementOptions().hashCode()); return hashCode; } @Override public SendEmailRequest clone() { return (SendEmailRequest) super.clone(); } }