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

com.amazonaws.services.simpleemail.model.CustomVerificationEmailTemplate 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;

/**
 * 

* Contains information about a custom verification email template. *

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

* The name of the custom verification email template. *

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

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

* The name of the custom verification email template. *

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

* The name of the custom verification email template. *

* * @param templateName * The name of the custom verification email template. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomVerificationEmailTemplate 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 CustomVerificationEmailTemplate 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 CustomVerificationEmailTemplate withTemplateSubject(String templateSubject) { setTemplateSubject(templateSubject); 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 CustomVerificationEmailTemplate 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 CustomVerificationEmailTemplate 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 (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 CustomVerificationEmailTemplate == false) return false; CustomVerificationEmailTemplate other = (CustomVerificationEmailTemplate) 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.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 + ((getSuccessRedirectionURL() == null) ? 0 : getSuccessRedirectionURL().hashCode()); hashCode = prime * hashCode + ((getFailureRedirectionURL() == null) ? 0 : getFailureRedirectionURL().hashCode()); return hashCode; } @Override public CustomVerificationEmailTemplate clone() { try { return (CustomVerificationEmailTemplate) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy