137 lines
4.5 KiB
C++
137 lines
4.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/sesv2/SESV2_EXPORTS.h>
|
|
#include <aws/sesv2/model/Content.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SESV2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the body of the email message.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/Body">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_SESV2_API Body
|
|
{
|
|
public:
|
|
Body();
|
|
Body(Aws::Utils::Json::JsonView jsonValue);
|
|
Body& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Content& GetText() const{ return m_text; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Body& WithText(const Content& value) { SetText(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline const Content& GetHtml() const{ return m_html; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline Body& WithHtml(Content&& value) { SetHtml(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Content m_text;
|
|
bool m_textHasBeenSet;
|
|
|
|
Content m_html;
|
|
bool m_htmlHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SESV2
|
|
} // namespace Aws
|