/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the body of the email message.See Also:
AWS
* API Reference
An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline const Content& GetText() const{ return m_text; } /** *An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; } /** *An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline Body& WithText(const Content& value) { SetText(value); return *this;} /** *An object that represents the version of the message that is displayed in * email clients that don't support HTML, or clients where the recipient has * disabled HTML rendering.
*/ inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;} /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ inline const Content& GetHtml() const{ return m_html; } /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; } /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; } /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); } /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;} /** *An object that represents the version of the message that is displayed in * email clients that support HTML. HTML messages can include formatted text, * hyperlinks, images, and more.
*/ 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 PinpointEmail } // namespace Aws