1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19   class JsonValue;
20   class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Pinpoint
24 {
25 namespace Model
26 {
27 
28   /**
29    * <p>Provides information about the content and settings for a message template
30    * that can be used in messages that are sent through the voice
31    * channel.</p><p><h3>See Also:</h3>   <a
32    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/VoiceTemplateResponse">AWS
33    * API Reference</a></p>
34    */
35   class AWS_PINPOINT_API VoiceTemplateResponse
36   {
37   public:
38     VoiceTemplateResponse();
39     VoiceTemplateResponse(Aws::Utils::Json::JsonView jsonValue);
40     VoiceTemplateResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
41     Aws::Utils::Json::JsonValue Jsonize() const;
42 
43 
44     /**
45      * <p>The Amazon Resource Name (ARN) of the message template.</p>
46      */
GetArn()47     inline const Aws::String& GetArn() const{ return m_arn; }
48 
49     /**
50      * <p>The Amazon Resource Name (ARN) of the message template.</p>
51      */
ArnHasBeenSet()52     inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 
54     /**
55      * <p>The Amazon Resource Name (ARN) of the message template.</p>
56      */
SetArn(const Aws::String & value)57     inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
58 
59     /**
60      * <p>The Amazon Resource Name (ARN) of the message template.</p>
61      */
SetArn(Aws::String && value)62     inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 
64     /**
65      * <p>The Amazon Resource Name (ARN) of the message template.</p>
66      */
SetArn(const char * value)67     inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 
69     /**
70      * <p>The Amazon Resource Name (ARN) of the message template.</p>
71      */
WithArn(const Aws::String & value)72     inline VoiceTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 
74     /**
75      * <p>The Amazon Resource Name (ARN) of the message template.</p>
76      */
WithArn(Aws::String && value)77     inline VoiceTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 
79     /**
80      * <p>The Amazon Resource Name (ARN) of the message template.</p>
81      */
WithArn(const char * value)82     inline VoiceTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;}
83 
84 
85     /**
86      * <p>The text of the script that's used in messages that are based on the message
87      * template, in plain text format.</p>
88      */
GetBody()89     inline const Aws::String& GetBody() const{ return m_body; }
90 
91     /**
92      * <p>The text of the script that's used in messages that are based on the message
93      * template, in plain text format.</p>
94      */
BodyHasBeenSet()95     inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
96 
97     /**
98      * <p>The text of the script that's used in messages that are based on the message
99      * template, in plain text format.</p>
100      */
SetBody(const Aws::String & value)101     inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
102 
103     /**
104      * <p>The text of the script that's used in messages that are based on the message
105      * template, in plain text format.</p>
106      */
SetBody(Aws::String && value)107     inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
108 
109     /**
110      * <p>The text of the script that's used in messages that are based on the message
111      * template, in plain text format.</p>
112      */
SetBody(const char * value)113     inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
114 
115     /**
116      * <p>The text of the script that's used in messages that are based on the message
117      * template, in plain text format.</p>
118      */
WithBody(const Aws::String & value)119     inline VoiceTemplateResponse& WithBody(const Aws::String& value) { SetBody(value); return *this;}
120 
121     /**
122      * <p>The text of the script that's used in messages that are based on the message
123      * template, in plain text format.</p>
124      */
WithBody(Aws::String && value)125     inline VoiceTemplateResponse& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
126 
127     /**
128      * <p>The text of the script that's used in messages that are based on the message
129      * template, in plain text format.</p>
130      */
WithBody(const char * value)131     inline VoiceTemplateResponse& WithBody(const char* value) { SetBody(value); return *this;}
132 
133 
134     /**
135      * <p>The date, in ISO 8601 format, when the message template was created.</p>
136      */
GetCreationDate()137     inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
138 
139     /**
140      * <p>The date, in ISO 8601 format, when the message template was created.</p>
141      */
CreationDateHasBeenSet()142     inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
143 
144     /**
145      * <p>The date, in ISO 8601 format, when the message template was created.</p>
146      */
SetCreationDate(const Aws::String & value)147     inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
148 
149     /**
150      * <p>The date, in ISO 8601 format, when the message template was created.</p>
151      */
SetCreationDate(Aws::String && value)152     inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
153 
154     /**
155      * <p>The date, in ISO 8601 format, when the message template was created.</p>
156      */
SetCreationDate(const char * value)157     inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
158 
159     /**
160      * <p>The date, in ISO 8601 format, when the message template was created.</p>
161      */
WithCreationDate(const Aws::String & value)162     inline VoiceTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
163 
164     /**
165      * <p>The date, in ISO 8601 format, when the message template was created.</p>
166      */
WithCreationDate(Aws::String && value)167     inline VoiceTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
168 
169     /**
170      * <p>The date, in ISO 8601 format, when the message template was created.</p>
171      */
WithCreationDate(const char * value)172     inline VoiceTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
173 
174 
175     /**
176      * <p>The JSON object that specifies the default values that are used for message
177      * variables in the message template. This object is a set of key-value pairs. Each
178      * key defines a message variable in the template. The corresponding value defines
179      * the default value for that variable.</p>
180      */
GetDefaultSubstitutions()181     inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
182 
183     /**
184      * <p>The JSON object that specifies the default values that are used for message
185      * variables in the message template. This object is a set of key-value pairs. Each
186      * key defines a message variable in the template. The corresponding value defines
187      * the default value for that variable.</p>
188      */
DefaultSubstitutionsHasBeenSet()189     inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
190 
191     /**
192      * <p>The JSON object that specifies the default values that are used for message
193      * variables in the message template. This object is a set of key-value pairs. Each
194      * key defines a message variable in the template. The corresponding value defines
195      * the default value for that variable.</p>
196      */
SetDefaultSubstitutions(const Aws::String & value)197     inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
198 
199     /**
200      * <p>The JSON object that specifies the default values that are used for message
201      * variables in the message template. This object is a set of key-value pairs. Each
202      * key defines a message variable in the template. The corresponding value defines
203      * the default value for that variable.</p>
204      */
SetDefaultSubstitutions(Aws::String && value)205     inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
206 
207     /**
208      * <p>The JSON object that specifies the default values that are used for message
209      * variables in the message template. This object is a set of key-value pairs. Each
210      * key defines a message variable in the template. The corresponding value defines
211      * the default value for that variable.</p>
212      */
SetDefaultSubstitutions(const char * value)213     inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
214 
215     /**
216      * <p>The JSON object that specifies the default values that are used for message
217      * variables in the message template. This object is a set of key-value pairs. Each
218      * key defines a message variable in the template. The corresponding value defines
219      * the default value for that variable.</p>
220      */
WithDefaultSubstitutions(const Aws::String & value)221     inline VoiceTemplateResponse& WithDefaultSubstitutions(const Aws::String& value) { SetDefaultSubstitutions(value); return *this;}
222 
223     /**
224      * <p>The JSON object that specifies the default values that are used for message
225      * variables in the message template. This object is a set of key-value pairs. Each
226      * key defines a message variable in the template. The corresponding value defines
227      * the default value for that variable.</p>
228      */
WithDefaultSubstitutions(Aws::String && value)229     inline VoiceTemplateResponse& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
230 
231     /**
232      * <p>The JSON object that specifies the default values that are used for message
233      * variables in the message template. This object is a set of key-value pairs. Each
234      * key defines a message variable in the template. The corresponding value defines
235      * the default value for that variable.</p>
236      */
WithDefaultSubstitutions(const char * value)237     inline VoiceTemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
238 
239 
240     /**
241      * <p>The code for the language that's used when synthesizing the text of the
242      * script in messages that are based on the message template. For a list of
243      * supported languages and the code for each one, see the <a
244      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
245      * Developer Guide</a>.</p>
246      */
GetLanguageCode()247     inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
248 
249     /**
250      * <p>The code for the language that's used when synthesizing the text of the
251      * script in messages that are based on the message template. For a list of
252      * supported languages and the code for each one, see the <a
253      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
254      * Developer Guide</a>.</p>
255      */
LanguageCodeHasBeenSet()256     inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
257 
258     /**
259      * <p>The code for the language that's used when synthesizing the text of the
260      * script in messages that are based on the message template. For a list of
261      * supported languages and the code for each one, see the <a
262      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
263      * Developer Guide</a>.</p>
264      */
SetLanguageCode(const Aws::String & value)265     inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
266 
267     /**
268      * <p>The code for the language that's used when synthesizing the text of the
269      * script in messages that are based on the message template. For a list of
270      * supported languages and the code for each one, see the <a
271      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
272      * Developer Guide</a>.</p>
273      */
SetLanguageCode(Aws::String && value)274     inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
275 
276     /**
277      * <p>The code for the language that's used when synthesizing the text of the
278      * script in messages that are based on the message template. For a list of
279      * supported languages and the code for each one, see the <a
280      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
281      * Developer Guide</a>.</p>
282      */
SetLanguageCode(const char * value)283     inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
284 
285     /**
286      * <p>The code for the language that's used when synthesizing the text of the
287      * script in messages that are based on the message template. For a list of
288      * supported languages and the code for each one, see the <a
289      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
290      * Developer Guide</a>.</p>
291      */
WithLanguageCode(const Aws::String & value)292     inline VoiceTemplateResponse& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
293 
294     /**
295      * <p>The code for the language that's used when synthesizing the text of the
296      * script in messages that are based on the message template. For a list of
297      * supported languages and the code for each one, see the <a
298      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
299      * Developer Guide</a>.</p>
300      */
WithLanguageCode(Aws::String && value)301     inline VoiceTemplateResponse& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
302 
303     /**
304      * <p>The code for the language that's used when synthesizing the text of the
305      * script in messages that are based on the message template. For a list of
306      * supported languages and the code for each one, see the <a
307      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
308      * Developer Guide</a>.</p>
309      */
WithLanguageCode(const char * value)310     inline VoiceTemplateResponse& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
311 
312 
313     /**
314      * <p>The date, in ISO 8601 format, when the message template was last
315      * modified.</p>
316      */
GetLastModifiedDate()317     inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
318 
319     /**
320      * <p>The date, in ISO 8601 format, when the message template was last
321      * modified.</p>
322      */
LastModifiedDateHasBeenSet()323     inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
324 
325     /**
326      * <p>The date, in ISO 8601 format, when the message template was last
327      * modified.</p>
328      */
SetLastModifiedDate(const Aws::String & value)329     inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
330 
331     /**
332      * <p>The date, in ISO 8601 format, when the message template was last
333      * modified.</p>
334      */
SetLastModifiedDate(Aws::String && value)335     inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
336 
337     /**
338      * <p>The date, in ISO 8601 format, when the message template was last
339      * modified.</p>
340      */
SetLastModifiedDate(const char * value)341     inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
342 
343     /**
344      * <p>The date, in ISO 8601 format, when the message template was last
345      * modified.</p>
346      */
WithLastModifiedDate(const Aws::String & value)347     inline VoiceTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
348 
349     /**
350      * <p>The date, in ISO 8601 format, when the message template was last
351      * modified.</p>
352      */
WithLastModifiedDate(Aws::String && value)353     inline VoiceTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
354 
355     /**
356      * <p>The date, in ISO 8601 format, when the message template was last
357      * modified.</p>
358      */
WithLastModifiedDate(const char * value)359     inline VoiceTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
360 
361 
362     /**
363      * <p>A string-to-string map of key-value pairs that identifies the tags that are
364      * associated with the message template. Each tag consists of a required tag key
365      * and an associated tag value.</p>
366      */
GetTags()367     inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
368 
369     /**
370      * <p>A string-to-string map of key-value pairs that identifies the tags that are
371      * associated with the message template. Each tag consists of a required tag key
372      * and an associated tag value.</p>
373      */
TagsHasBeenSet()374     inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
375 
376     /**
377      * <p>A string-to-string map of key-value pairs that identifies the tags that are
378      * associated with the message template. Each tag consists of a required tag key
379      * and an associated tag value.</p>
380      */
SetTags(const Aws::Map<Aws::String,Aws::String> & value)381     inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
382 
383     /**
384      * <p>A string-to-string map of key-value pairs that identifies the tags that are
385      * associated with the message template. Each tag consists of a required tag key
386      * and an associated tag value.</p>
387      */
SetTags(Aws::Map<Aws::String,Aws::String> && value)388     inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
389 
390     /**
391      * <p>A string-to-string map of key-value pairs that identifies the tags that are
392      * associated with the message template. Each tag consists of a required tag key
393      * and an associated tag value.</p>
394      */
WithTags(const Aws::Map<Aws::String,Aws::String> & value)395     inline VoiceTemplateResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
396 
397     /**
398      * <p>A string-to-string map of key-value pairs that identifies the tags that are
399      * associated with the message template. Each tag consists of a required tag key
400      * and an associated tag value.</p>
401      */
WithTags(Aws::Map<Aws::String,Aws::String> && value)402     inline VoiceTemplateResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
403 
404     /**
405      * <p>A string-to-string map of key-value pairs that identifies the tags that are
406      * associated with the message template. Each tag consists of a required tag key
407      * and an associated tag value.</p>
408      */
AddTags(const Aws::String & key,const Aws::String & value)409     inline VoiceTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
410 
411     /**
412      * <p>A string-to-string map of key-value pairs that identifies the tags that are
413      * associated with the message template. Each tag consists of a required tag key
414      * and an associated tag value.</p>
415      */
AddTags(Aws::String && key,const Aws::String & value)416     inline VoiceTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
417 
418     /**
419      * <p>A string-to-string map of key-value pairs that identifies the tags that are
420      * associated with the message template. Each tag consists of a required tag key
421      * and an associated tag value.</p>
422      */
AddTags(const Aws::String & key,Aws::String && value)423     inline VoiceTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
424 
425     /**
426      * <p>A string-to-string map of key-value pairs that identifies the tags that are
427      * associated with the message template. Each tag consists of a required tag key
428      * and an associated tag value.</p>
429      */
AddTags(Aws::String && key,Aws::String && value)430     inline VoiceTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
431 
432     /**
433      * <p>A string-to-string map of key-value pairs that identifies the tags that are
434      * associated with the message template. Each tag consists of a required tag key
435      * and an associated tag value.</p>
436      */
AddTags(const char * key,Aws::String && value)437     inline VoiceTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
438 
439     /**
440      * <p>A string-to-string map of key-value pairs that identifies the tags that are
441      * associated with the message template. Each tag consists of a required tag key
442      * and an associated tag value.</p>
443      */
AddTags(Aws::String && key,const char * value)444     inline VoiceTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
445 
446     /**
447      * <p>A string-to-string map of key-value pairs that identifies the tags that are
448      * associated with the message template. Each tag consists of a required tag key
449      * and an associated tag value.</p>
450      */
AddTags(const char * key,const char * value)451     inline VoiceTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
452 
453 
454     /**
455      * <p>The custom description of the message template.</p>
456      */
GetTemplateDescription()457     inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
458 
459     /**
460      * <p>The custom description of the message template.</p>
461      */
TemplateDescriptionHasBeenSet()462     inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
463 
464     /**
465      * <p>The custom description of the message template.</p>
466      */
SetTemplateDescription(const Aws::String & value)467     inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
468 
469     /**
470      * <p>The custom description of the message template.</p>
471      */
SetTemplateDescription(Aws::String && value)472     inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
473 
474     /**
475      * <p>The custom description of the message template.</p>
476      */
SetTemplateDescription(const char * value)477     inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
478 
479     /**
480      * <p>The custom description of the message template.</p>
481      */
WithTemplateDescription(const Aws::String & value)482     inline VoiceTemplateResponse& WithTemplateDescription(const Aws::String& value) { SetTemplateDescription(value); return *this;}
483 
484     /**
485      * <p>The custom description of the message template.</p>
486      */
WithTemplateDescription(Aws::String && value)487     inline VoiceTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
488 
489     /**
490      * <p>The custom description of the message template.</p>
491      */
WithTemplateDescription(const char * value)492     inline VoiceTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
493 
494 
495     /**
496      * <p>The name of the message template.</p>
497      */
GetTemplateName()498     inline const Aws::String& GetTemplateName() const{ return m_templateName; }
499 
500     /**
501      * <p>The name of the message template.</p>
502      */
TemplateNameHasBeenSet()503     inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
504 
505     /**
506      * <p>The name of the message template.</p>
507      */
SetTemplateName(const Aws::String & value)508     inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
509 
510     /**
511      * <p>The name of the message template.</p>
512      */
SetTemplateName(Aws::String && value)513     inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
514 
515     /**
516      * <p>The name of the message template.</p>
517      */
SetTemplateName(const char * value)518     inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
519 
520     /**
521      * <p>The name of the message template.</p>
522      */
WithTemplateName(const Aws::String & value)523     inline VoiceTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
524 
525     /**
526      * <p>The name of the message template.</p>
527      */
WithTemplateName(Aws::String && value)528     inline VoiceTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
529 
530     /**
531      * <p>The name of the message template.</p>
532      */
WithTemplateName(const char * value)533     inline VoiceTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
534 
535 
536     /**
537      * <p>The type of channel that the message template is designed for. For a voice
538      * template, this value is VOICE.</p>
539      */
GetTemplateType()540     inline const TemplateType& GetTemplateType() const{ return m_templateType; }
541 
542     /**
543      * <p>The type of channel that the message template is designed for. For a voice
544      * template, this value is VOICE.</p>
545      */
TemplateTypeHasBeenSet()546     inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
547 
548     /**
549      * <p>The type of channel that the message template is designed for. For a voice
550      * template, this value is VOICE.</p>
551      */
SetTemplateType(const TemplateType & value)552     inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
553 
554     /**
555      * <p>The type of channel that the message template is designed for. For a voice
556      * template, this value is VOICE.</p>
557      */
SetTemplateType(TemplateType && value)558     inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
559 
560     /**
561      * <p>The type of channel that the message template is designed for. For a voice
562      * template, this value is VOICE.</p>
563      */
WithTemplateType(const TemplateType & value)564     inline VoiceTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
565 
566     /**
567      * <p>The type of channel that the message template is designed for. For a voice
568      * template, this value is VOICE.</p>
569      */
WithTemplateType(TemplateType && value)570     inline VoiceTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
571 
572 
573     /**
574      * <p>The unique identifier, as an integer, for the active version of the message
575      * template, or the version of the template that you specified by using the version
576      * parameter in your request.</p>
577      */
GetVersion()578     inline const Aws::String& GetVersion() const{ return m_version; }
579 
580     /**
581      * <p>The unique identifier, as an integer, for the active version of the message
582      * template, or the version of the template that you specified by using the version
583      * parameter in your request.</p>
584      */
VersionHasBeenSet()585     inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
586 
587     /**
588      * <p>The unique identifier, as an integer, for the active version of the message
589      * template, or the version of the template that you specified by using the version
590      * parameter in your request.</p>
591      */
SetVersion(const Aws::String & value)592     inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
593 
594     /**
595      * <p>The unique identifier, as an integer, for the active version of the message
596      * template, or the version of the template that you specified by using the version
597      * parameter in your request.</p>
598      */
SetVersion(Aws::String && value)599     inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
600 
601     /**
602      * <p>The unique identifier, as an integer, for the active version of the message
603      * template, or the version of the template that you specified by using the version
604      * parameter in your request.</p>
605      */
SetVersion(const char * value)606     inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
607 
608     /**
609      * <p>The unique identifier, as an integer, for the active version of the message
610      * template, or the version of the template that you specified by using the version
611      * parameter in your request.</p>
612      */
WithVersion(const Aws::String & value)613     inline VoiceTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
614 
615     /**
616      * <p>The unique identifier, as an integer, for the active version of the message
617      * template, or the version of the template that you specified by using the version
618      * parameter in your request.</p>
619      */
WithVersion(Aws::String && value)620     inline VoiceTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
621 
622     /**
623      * <p>The unique identifier, as an integer, for the active version of the message
624      * template, or the version of the template that you specified by using the version
625      * parameter in your request.</p>
626      */
WithVersion(const char * value)627     inline VoiceTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;}
628 
629 
630     /**
631      * <p>The name of the voice that's used when delivering messages that are based on
632      * the message template. For a list of supported voices, see the <a
633      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
634      * Developer Guide</a>.</p>
635      */
GetVoiceId()636     inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
637 
638     /**
639      * <p>The name of the voice that's used when delivering messages that are based on
640      * the message template. For a list of supported voices, see the <a
641      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
642      * Developer Guide</a>.</p>
643      */
VoiceIdHasBeenSet()644     inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
645 
646     /**
647      * <p>The name of the voice that's used when delivering messages that are based on
648      * the message template. For a list of supported voices, see the <a
649      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
650      * Developer Guide</a>.</p>
651      */
SetVoiceId(const Aws::String & value)652     inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
653 
654     /**
655      * <p>The name of the voice that's used when delivering messages that are based on
656      * the message template. For a list of supported voices, see the <a
657      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
658      * Developer Guide</a>.</p>
659      */
SetVoiceId(Aws::String && value)660     inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
661 
662     /**
663      * <p>The name of the voice that's used when delivering messages that are based on
664      * the message template. For a list of supported voices, see the <a
665      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
666      * Developer Guide</a>.</p>
667      */
SetVoiceId(const char * value)668     inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
669 
670     /**
671      * <p>The name of the voice that's used when delivering messages that are based on
672      * the message template. For a list of supported voices, see the <a
673      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
674      * Developer Guide</a>.</p>
675      */
WithVoiceId(const Aws::String & value)676     inline VoiceTemplateResponse& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
677 
678     /**
679      * <p>The name of the voice that's used when delivering messages that are based on
680      * the message template. For a list of supported voices, see the <a
681      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
682      * Developer Guide</a>.</p>
683      */
WithVoiceId(Aws::String && value)684     inline VoiceTemplateResponse& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
685 
686     /**
687      * <p>The name of the voice that's used when delivering messages that are based on
688      * the message template. For a list of supported voices, see the <a
689      * href="https://docs.aws.amazon.com/polly/latest/dg/what-is.html">Amazon Polly
690      * Developer Guide</a>.</p>
691      */
WithVoiceId(const char * value)692     inline VoiceTemplateResponse& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
693 
694   private:
695 
696     Aws::String m_arn;
697     bool m_arnHasBeenSet;
698 
699     Aws::String m_body;
700     bool m_bodyHasBeenSet;
701 
702     Aws::String m_creationDate;
703     bool m_creationDateHasBeenSet;
704 
705     Aws::String m_defaultSubstitutions;
706     bool m_defaultSubstitutionsHasBeenSet;
707 
708     Aws::String m_languageCode;
709     bool m_languageCodeHasBeenSet;
710 
711     Aws::String m_lastModifiedDate;
712     bool m_lastModifiedDateHasBeenSet;
713 
714     Aws::Map<Aws::String, Aws::String> m_tags;
715     bool m_tagsHasBeenSet;
716 
717     Aws::String m_templateDescription;
718     bool m_templateDescriptionHasBeenSet;
719 
720     Aws::String m_templateName;
721     bool m_templateNameHasBeenSet;
722 
723     TemplateType m_templateType;
724     bool m_templateTypeHasBeenSet;
725 
726     Aws::String m_version;
727     bool m_versionHasBeenSet;
728 
729     Aws::String m_voiceId;
730     bool m_voiceIdHasBeenSet;
731   };
732 
733 } // namespace Model
734 } // namespace Pinpoint
735 } // namespace Aws
736