AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
MessageBody.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MailManager {
20namespace Model {
21
28 public:
29 AWS_MAILMANAGER_API MessageBody() = default;
30 AWS_MAILMANAGER_API MessageBody(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MAILMANAGER_API MessageBody& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetText() const { return m_text; }
39 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
40 template <typename TextT = Aws::String>
41 void SetText(TextT&& value) {
42 m_textHasBeenSet = true;
43 m_text = std::forward<TextT>(value);
44 }
45 template <typename TextT = Aws::String>
46 MessageBody& WithText(TextT&& value) {
47 SetText(std::forward<TextT>(value));
48 return *this;
49 }
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) {
60 m_htmlHasBeenSet = true;
61 m_html = std::forward<HtmlT>(value);
62 }
63 template <typename HtmlT = Aws::String>
64 MessageBody& WithHtml(HtmlT&& value) {
65 SetHtml(std::forward<HtmlT>(value));
66 return *this;
67 }
69
71
74 inline bool GetMessageMalformed() const { return m_messageMalformed; }
75 inline bool MessageMalformedHasBeenSet() const { return m_messageMalformedHasBeenSet; }
76 inline void SetMessageMalformed(bool value) {
77 m_messageMalformedHasBeenSet = true;
78 m_messageMalformed = value;
79 }
80 inline MessageBody& WithMessageMalformed(bool value) {
82 return *this;
83 }
85 private:
86 Aws::String m_text;
87
88 Aws::String m_html;
89
90 bool m_messageMalformed{false};
91 bool m_textHasBeenSet = false;
92 bool m_htmlHasBeenSet = false;
93 bool m_messageMalformedHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace MailManager
98} // 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:64
AWS_MAILMANAGER_API MessageBody()=default
const Aws::String & GetText() const
Definition MessageBody.h:38
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
MessageBody & WithMessageMalformed(bool value)
Definition MessageBody.h:80
MessageBody & WithText(TextT &&value)
Definition MessageBody.h:46
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