/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the body of the message. You can specify text, HTML, or both. If
* you use both, then the message should display correctly in the widest variety of
* email clients.See Also:
AWS API
* Reference
The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline const Content& GetText() const{ return m_text; } /** *The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; } /** *The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline Body& WithText(const Content& value) { SetText(value); return *this;} /** *The content of the message, in text format. Use this for text-based email * clients, or clients on high-latency networks (such as mobile devices).
*/ inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;} /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline const Content& GetHtml() const{ return m_html; } /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; } /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; } /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); } /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;} /** *The content of the message, in HTML format. Use this for email clients that * can process HTML. You can include clickable links, formatted text, and much more * in an HTML message.
*/ inline Body& WithHtml(Content&& value) { SetHtml(std::move(value)); return *this;} private: Content m_text; bool m_textHasBeenSet = false; Content m_html; bool m_htmlHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws