AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SMSTemplateResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/TemplateType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
32 public:
33 AWS_PINPOINT_API SMSTemplateResponse() = default;
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetBody() const { return m_body; }
62 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
63 template <typename BodyT = Aws::String>
64 void SetBody(BodyT&& value) {
65 m_bodyHasBeenSet = true;
66 m_body = std::forward<BodyT>(value);
67 }
68 template <typename BodyT = Aws::String>
69 SMSTemplateResponse& WithBody(BodyT&& value) {
70 SetBody(std::forward<BodyT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
80 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
81 template <typename CreationDateT = Aws::String>
82 void SetCreationDate(CreationDateT&& value) {
83 m_creationDateHasBeenSet = true;
84 m_creationDate = std::forward<CreationDateT>(value);
85 }
86 template <typename CreationDateT = Aws::String>
87 SMSTemplateResponse& WithCreationDate(CreationDateT&& value) {
88 SetCreationDate(std::forward<CreationDateT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
101 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
102 template <typename DefaultSubstitutionsT = Aws::String>
103 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
104 m_defaultSubstitutionsHasBeenSet = true;
105 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
106 }
107 template <typename DefaultSubstitutionsT = Aws::String>
108 SMSTemplateResponse& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) {
109 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
120 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
121 template <typename LastModifiedDateT = Aws::String>
122 void SetLastModifiedDate(LastModifiedDateT&& value) {
123 m_lastModifiedDateHasBeenSet = true;
124 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
125 }
126 template <typename LastModifiedDateT = Aws::String>
127 SMSTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
128 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
139 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
140 template <typename RecommenderIdT = Aws::String>
141 void SetRecommenderId(RecommenderIdT&& value) {
142 m_recommenderIdHasBeenSet = true;
143 m_recommenderId = std::forward<RecommenderIdT>(value);
144 }
145 template <typename RecommenderIdT = Aws::String>
146 SMSTemplateResponse& WithRecommenderId(RecommenderIdT&& value) {
147 SetRecommenderId(std::forward<RecommenderIdT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
171 SMSTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
183 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
184 template <typename TemplateDescriptionT = Aws::String>
185 void SetTemplateDescription(TemplateDescriptionT&& value) {
186 m_templateDescriptionHasBeenSet = true;
187 m_templateDescription = std::forward<TemplateDescriptionT>(value);
188 }
189 template <typename TemplateDescriptionT = Aws::String>
190 SMSTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) {
191 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetTemplateName() const { return m_templateName; }
201 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
202 template <typename TemplateNameT = Aws::String>
203 void SetTemplateName(TemplateNameT&& value) {
204 m_templateNameHasBeenSet = true;
205 m_templateName = std::forward<TemplateNameT>(value);
206 }
207 template <typename TemplateNameT = Aws::String>
208 SMSTemplateResponse& WithTemplateName(TemplateNameT&& value) {
209 SetTemplateName(std::forward<TemplateNameT>(value));
210 return *this;
211 }
213
215
219 inline TemplateType GetTemplateType() const { return m_templateType; }
220 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
221 inline void SetTemplateType(TemplateType value) {
222 m_templateTypeHasBeenSet = true;
223 m_templateType = value;
224 }
226 SetTemplateType(value);
227 return *this;
228 }
230
232
237 inline const Aws::String& GetVersion() const { return m_version; }
238 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
239 template <typename VersionT = Aws::String>
240 void SetVersion(VersionT&& value) {
241 m_versionHasBeenSet = true;
242 m_version = std::forward<VersionT>(value);
243 }
244 template <typename VersionT = Aws::String>
245 SMSTemplateResponse& WithVersion(VersionT&& value) {
246 SetVersion(std::forward<VersionT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_arn;
252 bool m_arnHasBeenSet = false;
253
254 Aws::String m_body;
255 bool m_bodyHasBeenSet = false;
256
257 Aws::String m_creationDate;
258 bool m_creationDateHasBeenSet = false;
259
260 Aws::String m_defaultSubstitutions;
261 bool m_defaultSubstitutionsHasBeenSet = false;
262
263 Aws::String m_lastModifiedDate;
264 bool m_lastModifiedDateHasBeenSet = false;
265
266 Aws::String m_recommenderId;
267 bool m_recommenderIdHasBeenSet = false;
268
270 bool m_tagsHasBeenSet = false;
271
272 Aws::String m_templateDescription;
273 bool m_templateDescriptionHasBeenSet = false;
274
275 Aws::String m_templateName;
276 bool m_templateNameHasBeenSet = false;
277
278 TemplateType m_templateType{TemplateType::NOT_SET};
279 bool m_templateTypeHasBeenSet = false;
280
281 Aws::String m_version;
282 bool m_versionHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace Pinpoint
287} // namespace Aws
SMSTemplateResponse & WithTemplateType(TemplateType value)
SMSTemplateResponse & WithArn(ArnT &&value)
SMSTemplateResponse & WithTags(TagsT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
SMSTemplateResponse & WithCreationDate(CreationDateT &&value)
SMSTemplateResponse & WithRecommenderId(RecommenderIdT &&value)
SMSTemplateResponse & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
SMSTemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API SMSTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SMSTemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetLastModifiedDate() const
SMSTemplateResponse & WithVersion(VersionT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateDescription() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API SMSTemplateResponse()=default
const Aws::String & GetDefaultSubstitutions() const
void SetLastModifiedDate(LastModifiedDateT &&value)
SMSTemplateResponse & WithBody(BodyT &&value)
SMSTemplateResponse & WithTemplateName(TemplateNameT &&value)
AWS_PINPOINT_API SMSTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
void SetRecommenderId(RecommenderIdT &&value)
SMSTemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTemplateDescription(TemplateDescriptionT &&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
Aws::Utils::Json::JsonValue JsonValue