AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Template.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SES
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SES_API Template();
36 AWS_SES_API Template(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_SES_API Template& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
50 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
51 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
52 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
53 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
54 inline Template& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
55 inline Template& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
56 inline Template& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
58
60
63 inline const Aws::String& GetSubjectPart() const{ return m_subjectPart; }
64 inline bool SubjectPartHasBeenSet() const { return m_subjectPartHasBeenSet; }
65 inline void SetSubjectPart(const Aws::String& value) { m_subjectPartHasBeenSet = true; m_subjectPart = value; }
66 inline void SetSubjectPart(Aws::String&& value) { m_subjectPartHasBeenSet = true; m_subjectPart = std::move(value); }
67 inline void SetSubjectPart(const char* value) { m_subjectPartHasBeenSet = true; m_subjectPart.assign(value); }
68 inline Template& WithSubjectPart(const Aws::String& value) { SetSubjectPart(value); return *this;}
69 inline Template& WithSubjectPart(Aws::String&& value) { SetSubjectPart(std::move(value)); return *this;}
70 inline Template& WithSubjectPart(const char* value) { SetSubjectPart(value); return *this;}
72
74
78 inline const Aws::String& GetTextPart() const{ return m_textPart; }
79 inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
80 inline void SetTextPart(const Aws::String& value) { m_textPartHasBeenSet = true; m_textPart = value; }
81 inline void SetTextPart(Aws::String&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); }
82 inline void SetTextPart(const char* value) { m_textPartHasBeenSet = true; m_textPart.assign(value); }
83 inline Template& WithTextPart(const Aws::String& value) { SetTextPart(value); return *this;}
84 inline Template& WithTextPart(Aws::String&& value) { SetTextPart(std::move(value)); return *this;}
85 inline Template& WithTextPart(const char* value) { SetTextPart(value); return *this;}
87
89
92 inline const Aws::String& GetHtmlPart() const{ return m_htmlPart; }
93 inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
94 inline void SetHtmlPart(const Aws::String& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; }
95 inline void SetHtmlPart(Aws::String&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); }
96 inline void SetHtmlPart(const char* value) { m_htmlPartHasBeenSet = true; m_htmlPart.assign(value); }
97 inline Template& WithHtmlPart(const Aws::String& value) { SetHtmlPart(value); return *this;}
98 inline Template& WithHtmlPart(Aws::String&& value) { SetHtmlPart(std::move(value)); return *this;}
99 inline Template& WithHtmlPart(const char* value) { SetHtmlPart(value); return *this;}
101 private:
102
103 Aws::String m_templateName;
104 bool m_templateNameHasBeenSet = false;
105
106 Aws::String m_subjectPart;
107 bool m_subjectPartHasBeenSet = false;
108
109 Aws::String m_textPart;
110 bool m_textPartHasBeenSet = false;
111
112 Aws::String m_htmlPart;
113 bool m_htmlPartHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SES
118} // namespace Aws
void SetSubjectPart(const char *value)
Definition Template.h:67
Template & WithTextPart(const Aws::String &value)
Definition Template.h:83
const Aws::String & GetTextPart() const
Definition Template.h:78
Template & WithSubjectPart(const char *value)
Definition Template.h:70
void SetTextPart(Aws::String &&value)
Definition Template.h:81
void SetTextPart(const Aws::String &value)
Definition Template.h:80
Template & WithTemplateName(Aws::String &&value)
Definition Template.h:55
Template & WithTextPart(const char *value)
Definition Template.h:85
void SetHtmlPart(const char *value)
Definition Template.h:96
Template & WithHtmlPart(const Aws::String &value)
Definition Template.h:97
AWS_SES_API Template & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubjectPart(Aws::String &&value)
Definition Template.h:66
void SetTextPart(const char *value)
Definition Template.h:82
Template & WithHtmlPart(const char *value)
Definition Template.h:99
void SetTemplateName(const char *value)
Definition Template.h:53
Template & WithTemplateName(const Aws::String &value)
Definition Template.h:54
AWS_SES_API Template(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetHtmlPart() const
Definition Template.h:92
void SetSubjectPart(const Aws::String &value)
Definition Template.h:65
Template & WithHtmlPart(Aws::String &&value)
Definition Template.h:98
bool TextPartHasBeenSet() const
Definition Template.h:79
void SetTemplateName(Aws::String &&value)
Definition Template.h:52
bool TemplateNameHasBeenSet() const
Definition Template.h:50
Template & WithTextPart(Aws::String &&value)
Definition Template.h:84
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool HtmlPartHasBeenSet() const
Definition Template.h:93
Template & WithSubjectPart(Aws::String &&value)
Definition Template.h:69
bool SubjectPartHasBeenSet() const
Definition Template.h:64
const Aws::String & GetTemplateName() const
Definition Template.h:49
void SetTemplateName(const Aws::String &value)
Definition Template.h:51
Template & WithSubjectPart(const Aws::String &value)
Definition Template.h:68
void SetHtmlPart(const Aws::String &value)
Definition Template.h:94
const Aws::String & GetSubjectPart() const
Definition Template.h:63
void SetHtmlPart(Aws::String &&value)
Definition Template.h:95
Template & WithTemplateName(const char *value)
Definition Template.h:56
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream