/* * Copyright 2010-2020 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.simpleemail.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *

* Updates an existing custom verification email template. *

*

* For more information about custom verification email templates, see Using Custom Verification Email Templates in the Amazon SES Developer * Guide. *

*

* You can execute this operation no more than once per second. *

*/ public class UpdateCustomVerificationEmailTemplateRequest extends AmazonWebServiceRequest implements Serializable { /** *

* The name of the custom verification email template that you want to * update. *

*/ private String templateName; /** *

* The email address that the custom verification email is sent from. *

*/ private String fromEmailAddress; /** *

* The subject line of the custom verification email. *

*/ private String templateSubject; /** *

* The content of the custom verification email. The total size of the email * must be less than 10 MB. The message body may contain HTML, with some * limitations. For more information, see Custom Verification Email Frequently Asked Questions in the * Amazon SES Developer Guide. *

*/ private String templateContent; /** *

* The URL that the recipient of the verification email is sent to if his or * her address is successfully verified. *

*/ private String successRedirectionURL; /** *

* The URL that the recipient of the verification email is sent to if his or * her address is not successfully verified. *

*/ private String failureRedirectionURL; /** *

* The name of the custom verification email template that you want to * update. *

* * @return

* The name of the custom verification email template that you want * to update. *

*/ public String getTemplateName() { return templateName; } /** *

* The name of the custom verification email template that you want to * update. *

* * @param templateName

* The name of the custom verification email template that you * want to update. *

*/ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* The name of the custom verification email template that you want to * update. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param templateName

* The name of the custom verification email template that you * want to update. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateName(String templateName) { this.templateName = templateName; return this; } /** *

* The email address that the custom verification email is sent from. *

* * @return

* The email address that the custom verification email is sent * from. *

*/ public String getFromEmailAddress() { return fromEmailAddress; } /** *

* The email address that the custom verification email is sent from. *

* * @param fromEmailAddress

* The email address that the custom verification email is sent * from. *

*/ public void setFromEmailAddress(String fromEmailAddress) { this.fromEmailAddress = fromEmailAddress; } /** *

* The email address that the custom verification email is sent from. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param fromEmailAddress

* The email address that the custom verification email is sent * from. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withFromEmailAddress(String fromEmailAddress) { this.fromEmailAddress = fromEmailAddress; return this; } /** *

* The subject line of the custom verification email. *

* * @return

* The subject line of the custom verification email. *

*/ public String getTemplateSubject() { return templateSubject; } /** *

* The subject line of the custom verification email. *

* * @param templateSubject

* The subject line of the custom verification email. *

*/ public void setTemplateSubject(String templateSubject) { this.templateSubject = templateSubject; } /** *

* The subject line of the custom verification email. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param templateSubject

* The subject line of the custom verification email. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateSubject(String templateSubject) { this.templateSubject = templateSubject; return this; } /** *

* The content of the custom verification email. The total size of the email * must be less than 10 MB. The message body may contain HTML, with some * limitations. For more information, see Custom Verification Email Frequently Asked Questions in the * Amazon SES Developer Guide. *

* * @return

* The content of the custom verification email. The total size of * the email must be less than 10 MB. The message body may contain * HTML, with some limitations. For more information, see Custom Verification Email Frequently Asked Questions in the * Amazon SES Developer Guide. *

*/ public String getTemplateContent() { return templateContent; } /** *

* The content of the custom verification email. The total size of the email * must be less than 10 MB. The message body may contain HTML, with some * limitations. For more information, see Custom Verification Email Frequently Asked Questions in the * Amazon SES Developer Guide. *

* * @param templateContent

* The content of the custom verification email. The total size * of the email must be less than 10 MB. The message body may * contain HTML, with some limitations. For more information, see * Custom Verification Email Frequently Asked Questions in * the Amazon SES Developer Guide. *

*/ public void setTemplateContent(String templateContent) { this.templateContent = templateContent; } /** *

* The content of the custom verification email. The total size of the email * must be less than 10 MB. The message body may contain HTML, with some * limitations. For more information, see Custom Verification Email Frequently Asked Questions in the * Amazon SES Developer Guide. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param templateContent

* The content of the custom verification email. The total size * of the email must be less than 10 MB. The message body may * contain HTML, with some limitations. For more information, see * Custom Verification Email Frequently Asked Questions in * the Amazon SES Developer Guide. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateContent(String templateContent) { this.templateContent = templateContent; return this; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is successfully verified. *

* * @return

* The URL that the recipient of the verification email is sent to * if his or her address is successfully verified. *

*/ public String getSuccessRedirectionURL() { return successRedirectionURL; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is successfully verified. *

* * @param successRedirectionURL

* The URL that the recipient of the verification email is sent * to if his or her address is successfully verified. *

*/ public void setSuccessRedirectionURL(String successRedirectionURL) { this.successRedirectionURL = successRedirectionURL; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is successfully verified. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param successRedirectionURL

* The URL that the recipient of the verification email is sent * to if his or her address is successfully verified. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withSuccessRedirectionURL( String successRedirectionURL) { this.successRedirectionURL = successRedirectionURL; return this; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is not successfully verified. *

* * @return

* The URL that the recipient of the verification email is sent to * if his or her address is not successfully verified. *

*/ public String getFailureRedirectionURL() { return failureRedirectionURL; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is not successfully verified. *

* * @param failureRedirectionURL

* The URL that the recipient of the verification email is sent * to if his or her address is not successfully verified. *

*/ public void setFailureRedirectionURL(String failureRedirectionURL) { this.failureRedirectionURL = failureRedirectionURL; } /** *

* The URL that the recipient of the verification email is sent to if his or * her address is not successfully verified. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param failureRedirectionURL

* The URL that the recipient of the verification email is sent * to if his or her address is not successfully verified. *

* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateCustomVerificationEmailTemplateRequest withFailureRedirectionURL( String failureRedirectionURL) { this.failureRedirectionURL = failureRedirectionURL; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTemplateName() != null) sb.append("TemplateName: " + getTemplateName() + ","); if (getFromEmailAddress() != null) sb.append("FromEmailAddress: " + getFromEmailAddress() + ","); if (getTemplateSubject() != null) sb.append("TemplateSubject: " + getTemplateSubject() + ","); if (getTemplateContent() != null) sb.append("TemplateContent: " + getTemplateContent() + ","); if (getSuccessRedirectionURL() != null) sb.append("SuccessRedirectionURL: " + getSuccessRedirectionURL() + ","); if (getFailureRedirectionURL() != null) sb.append("FailureRedirectionURL: " + getFailureRedirectionURL()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getFromEmailAddress() == null) ? 0 : getFromEmailAddress().hashCode()); hashCode = prime * hashCode + ((getTemplateSubject() == null) ? 0 : getTemplateSubject().hashCode()); hashCode = prime * hashCode + ((getTemplateContent() == null) ? 0 : getTemplateContent().hashCode()); hashCode = prime * hashCode + ((getSuccessRedirectionURL() == null) ? 0 : getSuccessRedirectionURL().hashCode()); hashCode = prime * hashCode + ((getFailureRedirectionURL() == null) ? 0 : getFailureRedirectionURL().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCustomVerificationEmailTemplateRequest == false) return false; UpdateCustomVerificationEmailTemplateRequest other = (UpdateCustomVerificationEmailTemplateRequest) obj; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getFromEmailAddress() == null ^ this.getFromEmailAddress() == null) return false; if (other.getFromEmailAddress() != null && other.getFromEmailAddress().equals(this.getFromEmailAddress()) == false) return false; if (other.getTemplateSubject() == null ^ this.getTemplateSubject() == null) return false; if (other.getTemplateSubject() != null && other.getTemplateSubject().equals(this.getTemplateSubject()) == false) return false; if (other.getTemplateContent() == null ^ this.getTemplateContent() == null) return false; if (other.getTemplateContent() != null && other.getTemplateContent().equals(this.getTemplateContent()) == false) return false; if (other.getSuccessRedirectionURL() == null ^ this.getSuccessRedirectionURL() == null) return false; if (other.getSuccessRedirectionURL() != null && other.getSuccessRedirectionURL().equals(this.getSuccessRedirectionURL()) == false) return false; if (other.getFailureRedirectionURL() == null ^ this.getFailureRedirectionURL() == null) return false; if (other.getFailureRedirectionURL() != null && other.getFailureRedirectionURL().equals(this.getFailureRedirectionURL()) == false) return false; return true; } }