/** * 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 SESV2 { namespace Model { /** *

Represents a request to create a custom verification email * template.

See Also:

AWS * API Reference

*/ class CreateCustomVerificationEmailTemplateRequest : public SESV2Request { public: AWS_SESV2_API CreateCustomVerificationEmailTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateCustomVerificationEmailTemplate"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

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 CreateCustomVerificationEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the custom verification email template.

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

The name of the custom verification email template.

*/ inline CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& WithFromEmailAddress(const Aws::String& value) { SetFromEmailAddress(value); return *this;} /** *

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

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

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

*/ inline CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& WithTemplateSubject(const Aws::String& value) { SetTemplateSubject(value); return *this;} /** *

The subject line of the custom verification email.

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

The subject line of the custom verification email.

*/ inline CreateCustomVerificationEmailTemplateRequest& WithTemplateSubject(const char* value) { SetTemplateSubject(value); 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.

*/ inline const Aws::String& GetTemplateContent() const{ return m_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.

*/ inline bool TemplateContentHasBeenSet() const { return m_templateContentHasBeenSet; } /** *

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.

*/ inline void SetTemplateContent(const Aws::String& value) { m_templateContentHasBeenSet = true; m_templateContent = value; } /** *

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.

*/ inline void SetTemplateContent(Aws::String&& value) { m_templateContentHasBeenSet = true; m_templateContent = std::move(value); } /** *

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.

*/ inline void SetTemplateContent(const char* value) { m_templateContentHasBeenSet = true; m_templateContent.assign(value); } /** *

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.

*/ inline CreateCustomVerificationEmailTemplateRequest& WithTemplateContent(const Aws::String& value) { SetTemplateContent(value); 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.

*/ inline CreateCustomVerificationEmailTemplateRequest& WithTemplateContent(Aws::String&& value) { SetTemplateContent(std::move(value)); 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.

*/ inline CreateCustomVerificationEmailTemplateRequest& WithTemplateContent(const char* value) { SetTemplateContent(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 CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& 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 CreateCustomVerificationEmailTemplateRequest& 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_templateContent; bool m_templateContentHasBeenSet = false; Aws::String m_successRedirectionURL; bool m_successRedirectionURLHasBeenSet = false; Aws::String m_failureRedirectionURL; bool m_failureRedirectionURLHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws