AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateResponse.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
35 {
36 public:
37 AWS_PINPOINT_API TemplateResponse();
38 AWS_PINPOINT_API TemplateResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline TemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline TemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline TemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
66 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
67 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
68 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
69 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
70 inline TemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
71 inline TemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
72 inline TemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
74
76
84 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
85 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
86 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
87 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
88 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
90 inline TemplateResponse& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
91 inline TemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
93
95
99 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
100 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
101 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
102 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
103 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
104 inline TemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
105 inline TemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
106 inline TemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
108
110
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline TemplateResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
122 inline TemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
123 inline TemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
124 inline TemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline TemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline TemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
127 inline TemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
128 inline TemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline TemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131
133
140 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
141 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
142 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
143 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
144 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
145 inline TemplateResponse& WithTemplateDescription(const Aws::String& value) { SetTemplateDescription(value); return *this;}
146 inline TemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
147 inline TemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
149
151
154 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
155 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
156 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
157 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
158 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
159 inline TemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
160 inline TemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
161 inline TemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
163
165
169 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
170 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
171 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
172 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
173 inline TemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
174 inline TemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
176
178
182 inline const Aws::String& GetVersion() const{ return m_version; }
183 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
184 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
185 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
186 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
187 inline TemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
188 inline TemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
189 inline TemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
191 private:
192
193 Aws::String m_arn;
194 bool m_arnHasBeenSet = false;
195
196 Aws::String m_creationDate;
197 bool m_creationDateHasBeenSet = false;
198
199 Aws::String m_defaultSubstitutions;
200 bool m_defaultSubstitutionsHasBeenSet = false;
201
202 Aws::String m_lastModifiedDate;
203 bool m_lastModifiedDateHasBeenSet = false;
204
206 bool m_tagsHasBeenSet = false;
207
208 Aws::String m_templateDescription;
209 bool m_templateDescriptionHasBeenSet = false;
210
211 Aws::String m_templateName;
212 bool m_templateNameHasBeenSet = false;
213
214 TemplateType m_templateType;
215 bool m_templateTypeHasBeenSet = false;
216
217 Aws::String m_version;
218 bool m_versionHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Pinpoint
223} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(const Aws::String &value)
TemplateResponse & AddTags(const Aws::String &key, Aws::String &&value)
TemplateResponse & AddTags(Aws::String &&key, const Aws::String &value)
TemplateResponse & WithLastModifiedDate(const char *value)
const Aws::String & GetVersion() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
TemplateResponse & WithVersion(const char *value)
void SetDefaultSubstitutions(const char *value)
const Aws::String & GetLastModifiedDate() const
TemplateResponse & WithArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
TemplateResponse & WithCreationDate(const Aws::String &value)
TemplateResponse & WithLastModifiedDate(Aws::String &&value)
const TemplateType & GetTemplateType() const
TemplateResponse & AddTags(const Aws::String &key, const Aws::String &value)
void SetArn(const Aws::String &value)
void SetTemplateDescription(const Aws::String &value)
void SetTemplateDescription(Aws::String &&value)
void SetLastModifiedDate(Aws::String &&value)
void SetTemplateName(const Aws::String &value)
void SetCreationDate(const Aws::String &value)
TemplateResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
TemplateResponse & WithTemplateName(const char *value)
TemplateResponse & WithTemplateDescription(const Aws::String &value)
void SetCreationDate(Aws::String &&value)
TemplateResponse & AddTags(const char *key, const char *value)
TemplateResponse & WithTemplateType(const TemplateType &value)
TemplateResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTemplateType(TemplateType &&value)
void SetTemplateType(const TemplateType &value)
TemplateResponse & WithDefaultSubstitutions(Aws::String &&value)
TemplateResponse & WithLastModifiedDate(const Aws::String &value)
TemplateResponse & AddTags(Aws::String &&key, const char *value)
TemplateResponse & WithArn(const Aws::String &value)
TemplateResponse & WithTemplateName(const Aws::String &value)
TemplateResponse & WithTemplateType(TemplateType &&value)
const Aws::String & GetArn() const
TemplateResponse & WithDefaultSubstitutions(const char *value)
AWS_PINPOINT_API TemplateResponse(Aws::Utils::Json::JsonView jsonValue)
TemplateResponse & WithTemplateDescription(Aws::String &&value)
TemplateResponse & WithVersion(Aws::String &&value)
TemplateResponse & WithCreationDate(const char *value)
TemplateResponse & WithTemplateName(Aws::String &&value)
TemplateResponse & WithTemplateDescription(const char *value)
void SetLastModifiedDate(const Aws::String &value)
void SetTemplateDescription(const char *value)
void SetLastModifiedDate(const char *value)
TemplateResponse & WithArn(Aws::String &&value)
TemplateResponse & AddTags(Aws::String &&key, Aws::String &&value)
TemplateResponse & WithDefaultSubstitutions(const Aws::String &value)
AWS_PINPOINT_API TemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateResponse & WithCreationDate(Aws::String &&value)
void SetTemplateName(Aws::String &&value)
TemplateResponse & AddTags(const char *key, Aws::String &&value)
void SetDefaultSubstitutions(Aws::String &&value)
const Aws::String & GetTemplateDescription() const
const Aws::String & GetCreationDate() const
void SetDefaultSubstitutions(const Aws::String &value)
const Aws::String & GetTemplateName() const
TemplateResponse & WithVersion(const Aws::String &value)
const Aws::String & GetDefaultSubstitutions() const
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