AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EmailTemplateRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/pinpoint/model/MessageHeader.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API EmailTemplateRequest();
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
54 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
55 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
56 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
57 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
59 inline EmailTemplateRequest& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
60 inline EmailTemplateRequest& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
62
64
70 inline const Aws::String& GetHtmlPart() const{ return m_htmlPart; }
71 inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
72 inline void SetHtmlPart(const Aws::String& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; }
73 inline void SetHtmlPart(Aws::String&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); }
74 inline void SetHtmlPart(const char* value) { m_htmlPartHasBeenSet = true; m_htmlPart.assign(value); }
75 inline EmailTemplateRequest& WithHtmlPart(const Aws::String& value) { SetHtmlPart(value); return *this;}
76 inline EmailTemplateRequest& WithHtmlPart(Aws::String&& value) { SetHtmlPart(std::move(value)); return *this;}
77 inline EmailTemplateRequest& WithHtmlPart(const char* value) { SetHtmlPart(value); return *this;}
79
81
88 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
89 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
90 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
91 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
92 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
93 inline EmailTemplateRequest& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;}
94 inline EmailTemplateRequest& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
95 inline EmailTemplateRequest& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
97
99
103 inline const Aws::String& GetSubject() const{ return m_subject; }
104 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
105 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
106 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
107 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
108 inline EmailTemplateRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
109 inline EmailTemplateRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
110 inline EmailTemplateRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
112
114
119 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
120 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
121 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
122 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
123 inline EmailTemplateRequest& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
124 inline EmailTemplateRequest& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
125 inline EmailTemplateRequest& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
126 inline EmailTemplateRequest& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
128
130
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline EmailTemplateRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
148 inline EmailTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
149 inline EmailTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
150 inline EmailTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
151 inline EmailTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline EmailTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
153 inline EmailTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
154 inline EmailTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline EmailTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
157
159
162 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
163 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
164 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
165 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
166 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
168 inline EmailTemplateRequest& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
169 inline EmailTemplateRequest& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
171
173
179 inline const Aws::String& GetTextPart() const{ return m_textPart; }
180 inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
181 inline void SetTextPart(const Aws::String& value) { m_textPartHasBeenSet = true; m_textPart = value; }
182 inline void SetTextPart(Aws::String&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); }
183 inline void SetTextPart(const char* value) { m_textPartHasBeenSet = true; m_textPart.assign(value); }
184 inline EmailTemplateRequest& WithTextPart(const Aws::String& value) { SetTextPart(value); return *this;}
185 inline EmailTemplateRequest& WithTextPart(Aws::String&& value) { SetTextPart(std::move(value)); return *this;}
186 inline EmailTemplateRequest& WithTextPart(const char* value) { SetTextPart(value); return *this;}
188 private:
189
190 Aws::String m_defaultSubstitutions;
191 bool m_defaultSubstitutionsHasBeenSet = false;
192
193 Aws::String m_htmlPart;
194 bool m_htmlPartHasBeenSet = false;
195
196 Aws::String m_recommenderId;
197 bool m_recommenderIdHasBeenSet = false;
198
199 Aws::String m_subject;
200 bool m_subjectHasBeenSet = false;
201
203 bool m_headersHasBeenSet = false;
204
206 bool m_tagsHasBeenSet = false;
207
208 Aws::String m_templateDescription;
209 bool m_templateDescriptionHasBeenSet = false;
210
211 Aws::String m_textPart;
212 bool m_textPartHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace Pinpoint
217} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
EmailTemplateRequest & WithSubject(Aws::String &&value)
void SetTemplateDescription(const Aws::String &value)
EmailTemplateRequest & AddHeaders(const MessageHeader &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
EmailTemplateRequest & WithDefaultSubstitutions(Aws::String &&value)
EmailTemplateRequest & AddTags(const char *key, const char *value)
EmailTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PINPOINT_API EmailTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
EmailTemplateRequest & WithTemplateDescription(const char *value)
EmailTemplateRequest & WithRecommenderId(const Aws::String &value)
EmailTemplateRequest & WithHeaders(Aws::Vector< MessageHeader > &&value)
EmailTemplateRequest & WithTemplateDescription(Aws::String &&value)
EmailTemplateRequest & WithTextPart(Aws::String &&value)
EmailTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
EmailTemplateRequest & WithTextPart(const Aws::String &value)
EmailTemplateRequest & AddHeaders(MessageHeader &&value)
EmailTemplateRequest & WithHeaders(const Aws::Vector< MessageHeader > &value)
EmailTemplateRequest & WithDefaultSubstitutions(const char *value)
const Aws::Vector< MessageHeader > & GetHeaders() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API EmailTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailTemplateRequest & WithTemplateDescription(const Aws::String &value)
EmailTemplateRequest & WithSubject(const Aws::String &value)
void SetRecommenderId(const Aws::String &value)
EmailTemplateRequest & WithDefaultSubstitutions(const Aws::String &value)
EmailTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
EmailTemplateRequest & WithHtmlPart(const Aws::String &value)
EmailTemplateRequest & AddTags(const char *key, Aws::String &&value)
EmailTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetDefaultSubstitutions() const
EmailTemplateRequest & WithSubject(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EmailTemplateRequest & WithRecommenderId(Aws::String &&value)
EmailTemplateRequest & WithHtmlPart(Aws::String &&value)
EmailTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetDefaultSubstitutions(const Aws::String &value)
EmailTemplateRequest & WithTextPart(const char *value)
void SetHeaders(const Aws::Vector< MessageHeader > &value)
EmailTemplateRequest & WithHtmlPart(const char *value)
void SetHeaders(Aws::Vector< MessageHeader > &&value)
EmailTemplateRequest & AddTags(Aws::String &&key, const char *value)
EmailTemplateRequest & WithRecommenderId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue