AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
VoiceTemplateResponse.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 VoiceTemplateResponse() = 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>
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 VoiceTemplateResponse& 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 VoiceTemplateResponse& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) {
109 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
110 return *this;
111 }
113
115
122 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
123 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
124 template <typename LanguageCodeT = Aws::String>
125 void SetLanguageCode(LanguageCodeT&& value) {
126 m_languageCodeHasBeenSet = true;
127 m_languageCode = std::forward<LanguageCodeT>(value);
128 }
129 template <typename LanguageCodeT = Aws::String>
130 VoiceTemplateResponse& WithLanguageCode(LanguageCodeT&& value) {
131 SetLanguageCode(std::forward<LanguageCodeT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
142 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
143 template <typename LastModifiedDateT = Aws::String>
144 void SetLastModifiedDate(LastModifiedDateT&& value) {
145 m_lastModifiedDateHasBeenSet = true;
146 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
147 }
148 template <typename LastModifiedDateT = Aws::String>
149 VoiceTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
150 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 VoiceTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
186 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
187 template <typename TemplateDescriptionT = Aws::String>
188 void SetTemplateDescription(TemplateDescriptionT&& value) {
189 m_templateDescriptionHasBeenSet = true;
190 m_templateDescription = std::forward<TemplateDescriptionT>(value);
191 }
192 template <typename TemplateDescriptionT = Aws::String>
193 VoiceTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) {
194 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetTemplateName() const { return m_templateName; }
204 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
205 template <typename TemplateNameT = Aws::String>
206 void SetTemplateName(TemplateNameT&& value) {
207 m_templateNameHasBeenSet = true;
208 m_templateName = std::forward<TemplateNameT>(value);
209 }
210 template <typename TemplateNameT = Aws::String>
211 VoiceTemplateResponse& WithTemplateName(TemplateNameT&& value) {
212 SetTemplateName(std::forward<TemplateNameT>(value));
213 return *this;
214 }
216
218
222 inline TemplateType GetTemplateType() const { return m_templateType; }
223 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
224 inline void SetTemplateType(TemplateType value) {
225 m_templateTypeHasBeenSet = true;
226 m_templateType = value;
227 }
229 SetTemplateType(value);
230 return *this;
231 }
233
235
240 inline const Aws::String& GetVersion() const { return m_version; }
241 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
242 template <typename VersionT = Aws::String>
243 void SetVersion(VersionT&& value) {
244 m_versionHasBeenSet = true;
245 m_version = std::forward<VersionT>(value);
246 }
247 template <typename VersionT = Aws::String>
249 SetVersion(std::forward<VersionT>(value));
250 return *this;
251 }
253
255
261 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
262 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
263 template <typename VoiceIdT = Aws::String>
264 void SetVoiceId(VoiceIdT&& value) {
265 m_voiceIdHasBeenSet = true;
266 m_voiceId = std::forward<VoiceIdT>(value);
267 }
268 template <typename VoiceIdT = Aws::String>
270 SetVoiceId(std::forward<VoiceIdT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_arn;
276 bool m_arnHasBeenSet = false;
277
278 Aws::String m_body;
279 bool m_bodyHasBeenSet = false;
280
281 Aws::String m_creationDate;
282 bool m_creationDateHasBeenSet = false;
283
284 Aws::String m_defaultSubstitutions;
285 bool m_defaultSubstitutionsHasBeenSet = false;
286
287 Aws::String m_languageCode;
288 bool m_languageCodeHasBeenSet = false;
289
290 Aws::String m_lastModifiedDate;
291 bool m_lastModifiedDateHasBeenSet = false;
292
294 bool m_tagsHasBeenSet = false;
295
296 Aws::String m_templateDescription;
297 bool m_templateDescriptionHasBeenSet = false;
298
299 Aws::String m_templateName;
300 bool m_templateNameHasBeenSet = false;
301
302 TemplateType m_templateType{TemplateType::NOT_SET};
303 bool m_templateTypeHasBeenSet = false;
304
305 Aws::String m_version;
306 bool m_versionHasBeenSet = false;
307
308 Aws::String m_voiceId;
309 bool m_voiceIdHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace Pinpoint
314} // namespace Aws
VoiceTemplateResponse & WithVersion(VersionT &&value)
VoiceTemplateResponse & WithTemplateName(TemplateNameT &&value)
AWS_PINPOINT_API VoiceTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTemplateDescription(TemplateDescriptionT &&value)
VoiceTemplateResponse & WithCreationDate(CreationDateT &&value)
AWS_PINPOINT_API VoiceTemplateResponse()=default
VoiceTemplateResponse & WithVoiceId(VoiceIdT &&value)
VoiceTemplateResponse & WithTags(TagsT &&value)
VoiceTemplateResponse & WithTemplateType(TemplateType value)
VoiceTemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
VoiceTemplateResponse & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
VoiceTemplateResponse & WithArn(ArnT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
VoiceTemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
VoiceTemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
VoiceTemplateResponse & WithLanguageCode(LanguageCodeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API VoiceTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
VoiceTemplateResponse & WithBody(BodyT &&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