AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SMSTemplateResponse.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/AWSMap.h>
10#include <aws/pinpoint/model/TemplateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_PINPOINT_API SMSTemplateResponse();
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline SMSTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline SMSTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline SMSTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
57
59
63 inline const Aws::String& GetBody() const{ return m_body; }
64 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
65 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
66 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
67 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
68 inline SMSTemplateResponse& WithBody(const Aws::String& value) { SetBody(value); return *this;}
69 inline SMSTemplateResponse& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
70 inline SMSTemplateResponse& WithBody(const char* value) { SetBody(value); return *this;}
72
74
77 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
78 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
79 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
80 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
81 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
82 inline SMSTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
83 inline SMSTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
84 inline SMSTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
86
88
94 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
95 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
96 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
97 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
98 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
100 inline SMSTemplateResponse& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
101 inline SMSTemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
103
105
109 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
110 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
111 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
112 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
113 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
114 inline SMSTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
115 inline SMSTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
116 inline SMSTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
118
120
124 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
125 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
126 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
127 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
128 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
129 inline SMSTemplateResponse& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;}
130 inline SMSTemplateResponse& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
131 inline SMSTemplateResponse& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
133
135
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline SMSTemplateResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
145 inline SMSTemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
146 inline SMSTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 inline SMSTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline SMSTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline SMSTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
150 inline SMSTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline SMSTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline SMSTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154
156
159 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
160 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
161 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
162 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
163 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
165 inline SMSTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
166 inline SMSTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
168
170
173 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
174 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
175 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
176 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
177 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
178 inline SMSTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
179 inline SMSTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
180 inline SMSTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
182
184
188 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
189 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
190 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
191 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
192 inline SMSTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
193 inline SMSTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
195
197
202 inline const Aws::String& GetVersion() const{ return m_version; }
203 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
204 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
205 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
206 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
207 inline SMSTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
208 inline SMSTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
209 inline SMSTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
211 private:
212
213 Aws::String m_arn;
214 bool m_arnHasBeenSet = false;
215
216 Aws::String m_body;
217 bool m_bodyHasBeenSet = false;
218
219 Aws::String m_creationDate;
220 bool m_creationDateHasBeenSet = false;
221
222 Aws::String m_defaultSubstitutions;
223 bool m_defaultSubstitutionsHasBeenSet = false;
224
225 Aws::String m_lastModifiedDate;
226 bool m_lastModifiedDateHasBeenSet = false;
227
228 Aws::String m_recommenderId;
229 bool m_recommenderIdHasBeenSet = false;
230
232 bool m_tagsHasBeenSet = false;
233
234 Aws::String m_templateDescription;
235 bool m_templateDescriptionHasBeenSet = false;
236
237 Aws::String m_templateName;
238 bool m_templateNameHasBeenSet = false;
239
240 TemplateType m_templateType;
241 bool m_templateTypeHasBeenSet = false;
242
243 Aws::String m_version;
244 bool m_versionHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace Pinpoint
249} // namespace Aws
SMSTemplateResponse & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SMSTemplateResponse & WithCreationDate(Aws::String &&value)
SMSTemplateResponse & AddTags(Aws::String &&key, const char *value)
void SetVersion(const Aws::String &value)
SMSTemplateResponse & WithTemplateType(TemplateType &&value)
void SetLastModifiedDate(const Aws::String &value)
SMSTemplateResponse & WithArn(const Aws::String &value)
SMSTemplateResponse & WithDefaultSubstitutions(const Aws::String &value)
SMSTemplateResponse & WithVersion(const char *value)
SMSTemplateResponse & WithTemplateDescription(const Aws::String &value)
SMSTemplateResponse & WithDefaultSubstitutions(const char *value)
SMSTemplateResponse & AddTags(const char *key, const char *value)
SMSTemplateResponse & WithRecommenderId(const Aws::String &value)
SMSTemplateResponse & WithRecommenderId(const char *value)
SMSTemplateResponse & WithLastModifiedDate(Aws::String &&value)
SMSTemplateResponse & WithArn(const char *value)
SMSTemplateResponse & WithBody(const char *value)
SMSTemplateResponse & WithBody(Aws::String &&value)
SMSTemplateResponse & WithTemplateDescription(const char *value)
SMSTemplateResponse & WithLastModifiedDate(const Aws::String &value)
void SetTemplateType(const TemplateType &value)
SMSTemplateResponse & WithArn(Aws::String &&value)
SMSTemplateResponse & WithCreationDate(const char *value)
void SetDefaultSubstitutions(const Aws::String &value)
SMSTemplateResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SMSTemplateResponse & WithCreationDate(const Aws::String &value)
SMSTemplateResponse & WithTemplateName(const char *value)
SMSTemplateResponse & AddTags(const char *key, Aws::String &&value)
SMSTemplateResponse & WithTemplateDescription(Aws::String &&value)
SMSTemplateResponse & WithBody(const Aws::String &value)
void SetRecommenderId(const Aws::String &value)
SMSTemplateResponse & WithVersion(Aws::String &&value)
AWS_PINPOINT_API SMSTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SMSTemplateResponse & WithRecommenderId(Aws::String &&value)
const Aws::String & GetLastModifiedDate() const
SMSTemplateResponse & WithVersion(const Aws::String &value)
SMSTemplateResponse & AddTags(const Aws::String &key, Aws::String &&value)
SMSTemplateResponse & AddTags(Aws::String &&key, Aws::String &&value)
void SetTemplateName(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateDescription() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SMSTemplateResponse & WithDefaultSubstitutions(Aws::String &&value)
const Aws::String & GetDefaultSubstitutions() const
void SetTemplateDescription(const Aws::String &value)
SMSTemplateResponse & WithTemplateName(const Aws::String &value)
SMSTemplateResponse & WithTemplateType(const TemplateType &value)
SMSTemplateResponse & WithTemplateName(Aws::String &&value)
void SetDefaultSubstitutions(Aws::String &&value)
void SetCreationDate(const Aws::String &value)
SMSTemplateResponse & WithLastModifiedDate(const char *value)
AWS_PINPOINT_API SMSTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
SMSTemplateResponse & AddTags(Aws::String &&key, const Aws::String &value)
SMSTemplateResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&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