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

The content of the email, composed of a subject line, an HTML part, and a * text-only part.

See Also:

AWS * API Reference

*/ class EmailTemplateContent { public: AWS_SESV2_API EmailTemplateContent(); AWS_SESV2_API EmailTemplateContent(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API EmailTemplateContent& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The subject line of the email.

*/ inline const Aws::String& GetSubject() const{ return m_subject; } /** *

The subject line of the email.

*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *

The subject line of the email.

*/ inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *

The subject line of the email.

*/ inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *

The subject line of the email.

*/ inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } /** *

The subject line of the email.

*/ inline EmailTemplateContent& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *

The subject line of the email.

*/ inline EmailTemplateContent& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} /** *

The subject line of the email.

*/ inline EmailTemplateContent& WithSubject(const char* value) { SetSubject(value); return *this;} /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline EmailTemplateContent& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline EmailTemplateContent& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The email body that will be visible to recipients whose email clients do not * display HTML.

*/ inline EmailTemplateContent& WithText(const char* value) { SetText(value); return *this;} /** *

The HTML body of the email.

*/ inline const Aws::String& GetHtml() const{ return m_html; } /** *

The HTML body of the email.

*/ inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; } /** *

The HTML body of the email.

*/ inline void SetHtml(const Aws::String& value) { m_htmlHasBeenSet = true; m_html = value; } /** *

The HTML body of the email.

*/ inline void SetHtml(Aws::String&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); } /** *

The HTML body of the email.

*/ inline void SetHtml(const char* value) { m_htmlHasBeenSet = true; m_html.assign(value); } /** *

The HTML body of the email.

*/ inline EmailTemplateContent& WithHtml(const Aws::String& value) { SetHtml(value); return *this;} /** *

The HTML body of the email.

*/ inline EmailTemplateContent& WithHtml(Aws::String&& value) { SetHtml(std::move(value)); return *this;} /** *

The HTML body of the email.

*/ inline EmailTemplateContent& WithHtml(const char* value) { SetHtml(value); return *this;} private: Aws::String m_subject; bool m_subjectHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_html; bool m_htmlHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws