AWS SDK for C++  1.8.129
AWS SDK for C++
Template.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SES
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
48  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
49 
55  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
56 
62  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
63 
69  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
70 
76  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
77 
83  inline Template& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
84 
90  inline Template& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
91 
97  inline Template& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
98 
99 
103  inline const Aws::String& GetSubjectPart() const{ return m_subjectPart; }
104 
108  inline bool SubjectPartHasBeenSet() const { return m_subjectPartHasBeenSet; }
109 
113  inline void SetSubjectPart(const Aws::String& value) { m_subjectPartHasBeenSet = true; m_subjectPart = value; }
114 
118  inline void SetSubjectPart(Aws::String&& value) { m_subjectPartHasBeenSet = true; m_subjectPart = std::move(value); }
119 
123  inline void SetSubjectPart(const char* value) { m_subjectPartHasBeenSet = true; m_subjectPart.assign(value); }
124 
128  inline Template& WithSubjectPart(const Aws::String& value) { SetSubjectPart(value); return *this;}
129 
133  inline Template& WithSubjectPart(Aws::String&& value) { SetSubjectPart(std::move(value)); return *this;}
134 
138  inline Template& WithSubjectPart(const char* value) { SetSubjectPart(value); return *this;}
139 
140 
145  inline const Aws::String& GetTextPart() const{ return m_textPart; }
146 
151  inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
152 
157  inline void SetTextPart(const Aws::String& value) { m_textPartHasBeenSet = true; m_textPart = value; }
158 
163  inline void SetTextPart(Aws::String&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); }
164 
169  inline void SetTextPart(const char* value) { m_textPartHasBeenSet = true; m_textPart.assign(value); }
170 
175  inline Template& WithTextPart(const Aws::String& value) { SetTextPart(value); return *this;}
176 
181  inline Template& WithTextPart(Aws::String&& value) { SetTextPart(std::move(value)); return *this;}
182 
187  inline Template& WithTextPart(const char* value) { SetTextPart(value); return *this;}
188 
189 
193  inline const Aws::String& GetHtmlPart() const{ return m_htmlPart; }
194 
198  inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
199 
203  inline void SetHtmlPart(const Aws::String& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; }
204 
208  inline void SetHtmlPart(Aws::String&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); }
209 
213  inline void SetHtmlPart(const char* value) { m_htmlPartHasBeenSet = true; m_htmlPart.assign(value); }
214 
218  inline Template& WithHtmlPart(const Aws::String& value) { SetHtmlPart(value); return *this;}
219 
223  inline Template& WithHtmlPart(Aws::String&& value) { SetHtmlPart(std::move(value)); return *this;}
224 
228  inline Template& WithHtmlPart(const char* value) { SetHtmlPart(value); return *this;}
229 
230  private:
231 
232  Aws::String m_templateName;
233  bool m_templateNameHasBeenSet;
234 
235  Aws::String m_subjectPart;
236  bool m_subjectPartHasBeenSet;
237 
238  Aws::String m_textPart;
239  bool m_textPartHasBeenSet;
240 
241  Aws::String m_htmlPart;
242  bool m_htmlPartHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace SES
247 } // namespace Aws
Aws::SES::Model::Template::HtmlPartHasBeenSet
bool HtmlPartHasBeenSet() const
Definition: Template.h:198
Aws::SES::Model::Template::WithSubjectPart
Template & WithSubjectPart(Aws::String &&value)
Definition: Template.h:133
Aws::SES::Model::Template::SubjectPartHasBeenSet
bool SubjectPartHasBeenSet() const
Definition: Template.h:108
Aws::SES::Model::Template::Template
Template()
Aws::SES::Model::Template::WithSubjectPart
Template & WithSubjectPart(const Aws::String &value)
Definition: Template.h:128
Aws::SES::Model::Template
Definition: Template.h:33
Aws::SES::Model::Template::SetHtmlPart
void SetHtmlPart(const char *value)
Definition: Template.h:213
Aws::SES::Model::Template::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::Template::GetHtmlPart
const Aws::String & GetHtmlPart() const
Definition: Template.h:193
Aws::SES::Model::Template::WithTemplateName
Template & WithTemplateName(Aws::String &&value)
Definition: Template.h:90
Aws::SES::Model::Template::WithTemplateName
Template & WithTemplateName(const Aws::String &value)
Definition: Template.h:83
AWSStreamFwd.h
Aws::SES::Model::Template::SetSubjectPart
void SetSubjectPart(const char *value)
Definition: Template.h:123
Aws::SES::Model::Template::SetHtmlPart
void SetHtmlPart(const Aws::String &value)
Definition: Template.h:203
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::Template::TextPartHasBeenSet
bool TextPartHasBeenSet() const
Definition: Template.h:151
Aws::SES::Model::Template::SetTextPart
void SetTextPart(Aws::String &&value)
Definition: Template.h:163
Aws::SES::Model::Template::SetSubjectPart
void SetSubjectPart(const Aws::String &value)
Definition: Template.h:113
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::Template::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: Template.h:55
Aws::SES::Model::Template::WithTextPart
Template & WithTextPart(Aws::String &&value)
Definition: Template.h:181
Aws::SES::Model::Template::SetTextPart
void SetTextPart(const Aws::String &value)
Definition: Template.h:157
AWSString.h
Aws::SES::Model::Template::SetHtmlPart
void SetHtmlPart(Aws::String &&value)
Definition: Template.h:208
SES_EXPORTS.h
Aws::SES::Model::Template::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::Template::WithTextPart
Template & WithTextPart(const char *value)
Definition: Template.h:187
Aws::SES::Model::Template::operator=
Template & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::Template::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: Template.h:48
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::Template::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: Template.h:69
Aws::SES::Model::Template::SetTemplateName
void SetTemplateName(const char *value)
Definition: Template.h:76
Aws::SES::Model::Template::WithHtmlPart
Template & WithHtmlPart(const char *value)
Definition: Template.h:228
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::Template::WithTextPart
Template & WithTextPart(const Aws::String &value)
Definition: Template.h:175
Aws::SES::Model::Template::Template
Template(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::Template::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: Template.h:62
Aws::SES::Model::Template::GetSubjectPart
const Aws::String & GetSubjectPart() const
Definition: Template.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::Template::SetTextPart
void SetTextPart(const char *value)
Definition: Template.h:169
Aws::SES::Model::Template::WithHtmlPart
Template & WithHtmlPart(const Aws::String &value)
Definition: Template.h:218
Aws::SES::Model::Template::GetTextPart
const Aws::String & GetTextPart() const
Definition: Template.h:145
Aws::SES::Model::Template::WithTemplateName
Template & WithTemplateName(const char *value)
Definition: Template.h:97
Aws::SES::Model::Template::WithHtmlPart
Template & WithHtmlPart(Aws::String &&value)
Definition: Template.h:223
Aws::SES::Model::Template::SetSubjectPart
void SetSubjectPart(Aws::String &&value)
Definition: Template.h:118
Aws::SES::Model::Template::WithSubjectPart
Template & WithSubjectPart(const char *value)
Definition: Template.h:138