AWS SDK for C++  1.9.155
AWS SDK for C++
EmailTemplateContent.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SESV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetSubject() const{ return m_subject; }
45 
49  inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
50 
54  inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
55 
59  inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
60 
64  inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
65 
69  inline EmailTemplateContent& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
70 
74  inline EmailTemplateContent& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
75 
79  inline EmailTemplateContent& WithSubject(const char* value) { SetSubject(value); return *this;}
80 
81 
86  inline const Aws::String& GetText() const{ return m_text; }
87 
92  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
93 
98  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
99 
104  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
105 
110  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
111 
116  inline EmailTemplateContent& WithText(const Aws::String& value) { SetText(value); return *this;}
117 
122  inline EmailTemplateContent& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
123 
128  inline EmailTemplateContent& WithText(const char* value) { SetText(value); return *this;}
129 
130 
134  inline const Aws::String& GetHtml() const{ return m_html; }
135 
139  inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
140 
144  inline void SetHtml(const Aws::String& value) { m_htmlHasBeenSet = true; m_html = value; }
145 
149  inline void SetHtml(Aws::String&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
150 
154  inline void SetHtml(const char* value) { m_htmlHasBeenSet = true; m_html.assign(value); }
155 
159  inline EmailTemplateContent& WithHtml(const Aws::String& value) { SetHtml(value); return *this;}
160 
164  inline EmailTemplateContent& WithHtml(Aws::String&& value) { SetHtml(std::move(value)); return *this;}
165 
169  inline EmailTemplateContent& WithHtml(const char* value) { SetHtml(value); return *this;}
170 
171  private:
172 
173  Aws::String m_subject;
174  bool m_subjectHasBeenSet;
175 
176  Aws::String m_text;
177  bool m_textHasBeenSet;
178 
179  Aws::String m_html;
180  bool m_htmlHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace SESV2
185 } // namespace Aws
Aws::SESV2::Model::EmailTemplateContent::WithHtml
EmailTemplateContent & WithHtml(const char *value)
Definition: EmailTemplateContent.h:169
Aws::SESV2::Model::EmailTemplateContent::SetText
void SetText(const char *value)
Definition: EmailTemplateContent.h:110
Aws::SESV2::Model::EmailTemplateContent::WithSubject
EmailTemplateContent & WithSubject(const Aws::String &value)
Definition: EmailTemplateContent.h:69
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::EmailTemplateContent::HtmlHasBeenSet
bool HtmlHasBeenSet() const
Definition: EmailTemplateContent.h:139
Aws::SESV2::Model::EmailTemplateContent
Definition: EmailTemplateContent.h:33
Aws::SESV2::Model::EmailTemplateContent::TextHasBeenSet
bool TextHasBeenSet() const
Definition: EmailTemplateContent.h:92
Aws::SESV2::Model::EmailTemplateContent::GetText
const Aws::String & GetText() const
Definition: EmailTemplateContent.h:86
Aws::SESV2::Model::EmailTemplateContent::SetText
void SetText(const Aws::String &value)
Definition: EmailTemplateContent.h:98
Aws::SESV2::Model::EmailTemplateContent::WithSubject
EmailTemplateContent & WithSubject(const char *value)
Definition: EmailTemplateContent.h:79
Aws::SESV2::Model::EmailTemplateContent::SetHtml
void SetHtml(const char *value)
Definition: EmailTemplateContent.h:154
Aws::SESV2::Model::EmailTemplateContent::SubjectHasBeenSet
bool SubjectHasBeenSet() const
Definition: EmailTemplateContent.h:49
Aws::SESV2::Model::EmailTemplateContent::SetHtml
void SetHtml(Aws::String &&value)
Definition: EmailTemplateContent.h:149
Aws::SESV2::Model::EmailTemplateContent::WithSubject
EmailTemplateContent & WithSubject(Aws::String &&value)
Definition: EmailTemplateContent.h:74
Aws::SESV2::Model::EmailTemplateContent::WithText
EmailTemplateContent & WithText(Aws::String &&value)
Definition: EmailTemplateContent.h:122
Aws::SESV2::Model::EmailTemplateContent::SetSubject
void SetSubject(const Aws::String &value)
Definition: EmailTemplateContent.h:54
Aws::SESV2::Model::EmailTemplateContent::WithHtml
EmailTemplateContent & WithHtml(const Aws::String &value)
Definition: EmailTemplateContent.h:159
Aws::SESV2::Model::EmailTemplateContent::operator=
EmailTemplateContent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SESV2::Model::EmailTemplateContent::EmailTemplateContent
EmailTemplateContent()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SESV2_EXPORTS.h
Aws::SESV2::Model::EmailTemplateContent::SetSubject
void SetSubject(Aws::String &&value)
Definition: EmailTemplateContent.h:59
Aws::SESV2::Model::EmailTemplateContent::SetSubject
void SetSubject(const char *value)
Definition: EmailTemplateContent.h:64
Aws::SESV2::Model::EmailTemplateContent::GetSubject
const Aws::String & GetSubject() const
Definition: EmailTemplateContent.h:44
Aws::SESV2::Model::EmailTemplateContent::WithText
EmailTemplateContent & WithText(const char *value)
Definition: EmailTemplateContent.h:128
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::EmailTemplateContent::GetHtml
const Aws::String & GetHtml() const
Definition: EmailTemplateContent.h:134
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::EmailTemplateContent::WithText
EmailTemplateContent & WithText(const Aws::String &value)
Definition: EmailTemplateContent.h:116
Aws::SESV2::Model::EmailTemplateContent::SetText
void SetText(Aws::String &&value)
Definition: EmailTemplateContent.h:104
Aws::SESV2::Model::EmailTemplateContent::EmailTemplateContent
EmailTemplateContent(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::EmailTemplateContent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SESV2::Model::EmailTemplateContent::WithHtml
EmailTemplateContent & WithHtml(Aws::String &&value)
Definition: EmailTemplateContent.h:164
Aws::SESV2::Model::EmailTemplateContent::SetHtml
void SetHtml(const Aws::String &value)
Definition: EmailTemplateContent.h:144