/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

Contains information about a custom verification email * template.

See Also:

AWS * API Reference

*/ class CustomVerificationEmailTemplate { public: AWS_SES_API CustomVerificationEmailTemplate(); AWS_SES_API CustomVerificationEmailTemplate(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API CustomVerificationEmailTemplate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the custom verification email template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the custom verification email template.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the custom verification email template.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the custom verification email template.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the custom verification email template.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the custom verification email template.

*/ inline CustomVerificationEmailTemplate& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the custom verification email template.

*/ inline CustomVerificationEmailTemplate& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the custom verification email template.

*/ inline CustomVerificationEmailTemplate& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

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

*/ inline const Aws::String& GetFromEmailAddress() const{ return m_fromEmailAddress; } /** *

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

*/ inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; } /** *

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

*/ inline void SetFromEmailAddress(const Aws::String& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = value; } /** *

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

*/ inline void SetFromEmailAddress(Aws::String&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::move(value); } /** *

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

*/ inline void SetFromEmailAddress(const char* value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress.assign(value); } /** *

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

*/ inline CustomVerificationEmailTemplate& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithFromEmailAddress(Aws::String&& value) { SetFromEmailAddress(std::move(value)); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithFromEmailAddress(const char* value) { SetFromEmailAddress(value); return *this;} /** *

The subject line of the custom verification email.

*/ inline const Aws::String& GetTemplateSubject() const{ return m_templateSubject; } /** *

The subject line of the custom verification email.

*/ inline bool TemplateSubjectHasBeenSet() const { return m_templateSubjectHasBeenSet; } /** *

The subject line of the custom verification email.

*/ inline void SetTemplateSubject(const Aws::String& value) { m_templateSubjectHasBeenSet = true; m_templateSubject = value; } /** *

The subject line of the custom verification email.

*/ inline void SetTemplateSubject(Aws::String&& value) { m_templateSubjectHasBeenSet = true; m_templateSubject = std::move(value); } /** *

The subject line of the custom verification email.

*/ inline void SetTemplateSubject(const char* value) { m_templateSubjectHasBeenSet = true; m_templateSubject.assign(value); } /** *

The subject line of the custom verification email.

*/ inline CustomVerificationEmailTemplate& WithTemplateSubject(const Aws::String& value) { SetTemplateSubject(value); return *this;} /** *

The subject line of the custom verification email.

*/ inline CustomVerificationEmailTemplate& WithTemplateSubject(Aws::String&& value) { SetTemplateSubject(std::move(value)); return *this;} /** *

The subject line of the custom verification email.

*/ inline CustomVerificationEmailTemplate& WithTemplateSubject(const char* value) { SetTemplateSubject(value); return *this;} /** *

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

*/ inline const Aws::String& GetSuccessRedirectionURL() const{ return m_successRedirectionURL; } /** *

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

*/ inline bool SuccessRedirectionURLHasBeenSet() const { return m_successRedirectionURLHasBeenSet; } /** *

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

*/ inline void SetSuccessRedirectionURL(const Aws::String& value) { m_successRedirectionURLHasBeenSet = true; m_successRedirectionURL = value; } /** *

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

*/ inline void SetSuccessRedirectionURL(Aws::String&& value) { m_successRedirectionURLHasBeenSet = true; m_successRedirectionURL = std::move(value); } /** *

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

*/ inline void SetSuccessRedirectionURL(const char* value) { m_successRedirectionURLHasBeenSet = true; m_successRedirectionURL.assign(value); } /** *

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

*/ inline CustomVerificationEmailTemplate& WithSuccessRedirectionURL(const Aws::String& value) { SetSuccessRedirectionURL(value); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithSuccessRedirectionURL(Aws::String&& value) { SetSuccessRedirectionURL(std::move(value)); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithSuccessRedirectionURL(const char* value) { SetSuccessRedirectionURL(value); return *this;} /** *

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

*/ inline const Aws::String& GetFailureRedirectionURL() const{ return m_failureRedirectionURL; } /** *

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

*/ inline bool FailureRedirectionURLHasBeenSet() const { return m_failureRedirectionURLHasBeenSet; } /** *

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

*/ inline void SetFailureRedirectionURL(const Aws::String& value) { m_failureRedirectionURLHasBeenSet = true; m_failureRedirectionURL = value; } /** *

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

*/ inline void SetFailureRedirectionURL(Aws::String&& value) { m_failureRedirectionURLHasBeenSet = true; m_failureRedirectionURL = std::move(value); } /** *

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

*/ inline void SetFailureRedirectionURL(const char* value) { m_failureRedirectionURLHasBeenSet = true; m_failureRedirectionURL.assign(value); } /** *

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

*/ inline CustomVerificationEmailTemplate& WithFailureRedirectionURL(const Aws::String& value) { SetFailureRedirectionURL(value); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithFailureRedirectionURL(Aws::String&& value) { SetFailureRedirectionURL(std::move(value)); return *this;} /** *

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

*/ inline CustomVerificationEmailTemplate& WithFailureRedirectionURL(const char* value) { SetFailureRedirectionURL(value); return *this;} private: Aws::String m_templateName; bool m_templateNameHasBeenSet = false; Aws::String m_fromEmailAddress; bool m_fromEmailAddressHasBeenSet = false; Aws::String m_templateSubject; bool m_templateSubjectHasBeenSet = false; Aws::String m_successRedirectionURL; bool m_successRedirectionURLHasBeenSet = false; Aws::String m_failureRedirectionURL; bool m_failureRedirectionURLHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws