AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageBody.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MAILMANAGER_API MessageBody() = default;
35 AWS_MAILMANAGER_API MessageBody(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MAILMANAGER_API MessageBody& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetText() const { return m_text; }
45 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
46 template<typename TextT = Aws::String>
47 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
48 template<typename TextT = Aws::String>
49 MessageBody& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
51
53
56 inline const Aws::String& GetHtml() const { return m_html; }
57 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
58 template<typename HtmlT = Aws::String>
59 void SetHtml(HtmlT&& value) { m_htmlHasBeenSet = true; m_html = std::forward<HtmlT>(value); }
60 template<typename HtmlT = Aws::String>
61 MessageBody& WithHtml(HtmlT&& value) { SetHtml(std::forward<HtmlT>(value)); return *this;}
63
65
68 inline bool GetMessageMalformed() const { return m_messageMalformed; }
69 inline bool MessageMalformedHasBeenSet() const { return m_messageMalformedHasBeenSet; }
70 inline void SetMessageMalformed(bool value) { m_messageMalformedHasBeenSet = true; m_messageMalformed = value; }
71 inline MessageBody& WithMessageMalformed(bool value) { SetMessageMalformed(value); return *this;}
73 private:
74
75 Aws::String m_text;
76 bool m_textHasBeenSet = false;
77
78 Aws::String m_html;
79 bool m_htmlHasBeenSet = false;
80
81 bool m_messageMalformed{false};
82 bool m_messageMalformedHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace MailManager
87} // namespace Aws
AWS_MAILMANAGER_API MessageBody(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API MessageBody & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageBody & WithHtml(HtmlT &&value)
Definition MessageBody.h:61
AWS_MAILMANAGER_API MessageBody()=default
const Aws::String & GetText() const
Definition MessageBody.h:44
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
MessageBody & WithMessageMalformed(bool value)
Definition MessageBody.h:71
MessageBody & WithText(TextT &&value)
Definition MessageBody.h:49
const Aws::String & GetHtml() const
Definition MessageBody.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue