All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.simpleemail.model.UpdateCustomVerificationEmailTemplateRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SES module holds the client classes that are used for communicating with Amazon Simple Email Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents a request to update an existing custom verification email template. *

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

* The name of the custom verification email template 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 to update. *

* * @param templateName * The name of the custom verification email template to update. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

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

* * @return The name of the custom verification email template to update. */ public String getTemplateName() { return this.templateName; } /** *

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

* * @param templateName * The name of the custom verification email template to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** *

* 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. *

* * @return The email address that the custom verification email is sent from. */ public String getFromEmailAddress() { return this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withFromEmailAddress(String fromEmailAddress) { setFromEmailAddress(fromEmailAddress); return this; } /** *

* 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. *

* * @return The subject line of the custom verification email. */ public String getTemplateSubject() { return this.templateSubject; } /** *

* The subject line of the custom verification email. *

* * @param templateSubject * The subject line of the custom verification email. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateSubject(String templateSubject) { setTemplateSubject(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. *

* * @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. *

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withTemplateContent(String templateContent) { setTemplateContent(templateContent); return this; } /** *

* 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. *

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withSuccessRedirectionURL(String successRedirectionURL) { setSuccessRedirectionURL(successRedirectionURL); return this; } /** *

* 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. *

* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomVerificationEmailTemplateRequest withFailureRedirectionURL(String failureRedirectionURL) { setFailureRedirectionURL(failureRedirectionURL); 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 (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getFromEmailAddress() != null) sb.append("FromEmailAddress: ").append(getFromEmailAddress()).append(","); if (getTemplateSubject() != null) sb.append("TemplateSubject: ").append(getTemplateSubject()).append(","); if (getTemplateContent() != null) sb.append("TemplateContent: ").append(getTemplateContent()).append(","); if (getSuccessRedirectionURL() != null) sb.append("SuccessRedirectionURL: ").append(getSuccessRedirectionURL()).append(","); if (getFailureRedirectionURL() != null) sb.append("FailureRedirectionURL: ").append(getFailureRedirectionURL()); sb.append("}"); return sb.toString(); } @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; } @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 UpdateCustomVerificationEmailTemplateRequest clone() { return (UpdateCustomVerificationEmailTemplateRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy