AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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& GetHtml() const{ return m_html; }
45 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
46 inline void SetHtml(const Aws::String& value) { m_htmlHasBeenSet = true; m_html = value; }
47 inline void SetHtml(Aws::String&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
48 inline void SetHtml(const char* value) { m_htmlHasBeenSet = true; m_html.assign(value); }
49 inline MessageBody& WithHtml(const Aws::String& value) { SetHtml(value); return *this;}
50 inline MessageBody& WithHtml(Aws::String&& value) { SetHtml(std::move(value)); return *this;}
51 inline MessageBody& WithHtml(const char* value) { SetHtml(value); return *this;}
53
55
58 inline bool GetMessageMalformed() const{ return m_messageMalformed; }
59 inline bool MessageMalformedHasBeenSet() const { return m_messageMalformedHasBeenSet; }
60 inline void SetMessageMalformed(bool value) { m_messageMalformedHasBeenSet = true; m_messageMalformed = value; }
61 inline MessageBody& WithMessageMalformed(bool value) { SetMessageMalformed(value); return *this;}
63
65
68 inline const Aws::String& GetText() const{ return m_text; }
69 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
70 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
71 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
72 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
73 inline MessageBody& WithText(const Aws::String& value) { SetText(value); return *this;}
74 inline MessageBody& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
75 inline MessageBody& WithText(const char* value) { SetText(value); return *this;}
77 private:
78
79 Aws::String m_html;
80 bool m_htmlHasBeenSet = false;
81
82 bool m_messageMalformed;
83 bool m_messageMalformedHasBeenSet = false;
84
85 Aws::String m_text;
86 bool m_textHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MailManager
91} // namespace Aws
void SetHtml(Aws::String &&value)
Definition MessageBody.h:47
void SetText(const char *value)
Definition MessageBody.h:72
MessageBody & WithText(const char *value)
Definition MessageBody.h:75
void SetHtml(const char *value)
Definition MessageBody.h:48
AWS_MAILMANAGER_API MessageBody(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API MessageBody & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageBody & WithText(const Aws::String &value)
Definition MessageBody.h:73
void SetText(const Aws::String &value)
Definition MessageBody.h:70
MessageBody & WithText(Aws::String &&value)
Definition MessageBody.h:74
MessageBody & WithHtml(const char *value)
Definition MessageBody.h:51
void SetHtml(const Aws::String &value)
Definition MessageBody.h:46
AWS_MAILMANAGER_API MessageBody()
const Aws::String & GetText() const
Definition MessageBody.h:68
void SetText(Aws::String &&value)
Definition MessageBody.h:71
MessageBody & WithHtml(Aws::String &&value)
Definition MessageBody.h:50
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
MessageBody & WithMessageMalformed(bool value)
Definition MessageBody.h:61
MessageBody & WithHtml(const Aws::String &value)
Definition MessageBody.h:49
const Aws::String & GetHtml() const
Definition MessageBody.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue