AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
VoiceTemplateResponse.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 VoiceTemplateResponse() = default;
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 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 VoiceTemplateResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
65 template<typename BodyT = Aws::String>
66 VoiceTemplateResponse& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
74 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
75 template<typename CreationDateT = Aws::String>
76 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
77 template<typename CreationDateT = Aws::String>
78 VoiceTemplateResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
80
82
88 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
89 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
90 template<typename DefaultSubstitutionsT = Aws::String>
91 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value); }
92 template<typename DefaultSubstitutionsT = Aws::String>
93 VoiceTemplateResponse& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) { SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value)); return *this;}
95
97
104 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
105 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
106 template<typename LanguageCodeT = Aws::String>
107 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
108 template<typename LanguageCodeT = Aws::String>
109 VoiceTemplateResponse& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
111
113
117 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
118 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
119 template<typename LastModifiedDateT = Aws::String>
120 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
121 template<typename LastModifiedDateT = Aws::String>
122 VoiceTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
124
126
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 VoiceTemplateResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 VoiceTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
140 }
142
144
147 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
148 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
149 template<typename TemplateDescriptionT = Aws::String>
150 void SetTemplateDescription(TemplateDescriptionT&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::forward<TemplateDescriptionT>(value); }
151 template<typename TemplateDescriptionT = Aws::String>
152 VoiceTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) { SetTemplateDescription(std::forward<TemplateDescriptionT>(value)); return *this;}
154
156
159 inline const Aws::String& GetTemplateName() const { return m_templateName; }
160 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
161 template<typename TemplateNameT = Aws::String>
162 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
163 template<typename TemplateNameT = Aws::String>
164 VoiceTemplateResponse& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
166
168
172 inline TemplateType GetTemplateType() const { return m_templateType; }
173 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
174 inline void SetTemplateType(TemplateType value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
177
179
184 inline const Aws::String& GetVersion() const { return m_version; }
185 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
186 template<typename VersionT = Aws::String>
187 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
188 template<typename VersionT = Aws::String>
189 VoiceTemplateResponse& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
191
193
199 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
200 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
201 template<typename VoiceIdT = Aws::String>
202 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
203 template<typename VoiceIdT = Aws::String>
204 VoiceTemplateResponse& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
206 private:
207
208 Aws::String m_arn;
209 bool m_arnHasBeenSet = false;
210
211 Aws::String m_body;
212 bool m_bodyHasBeenSet = false;
213
214 Aws::String m_creationDate;
215 bool m_creationDateHasBeenSet = false;
216
217 Aws::String m_defaultSubstitutions;
218 bool m_defaultSubstitutionsHasBeenSet = false;
219
220 Aws::String m_languageCode;
221 bool m_languageCodeHasBeenSet = false;
222
223 Aws::String m_lastModifiedDate;
224 bool m_lastModifiedDateHasBeenSet = false;
225
227 bool m_tagsHasBeenSet = false;
228
229 Aws::String m_templateDescription;
230 bool m_templateDescriptionHasBeenSet = false;
231
232 Aws::String m_templateName;
233 bool m_templateNameHasBeenSet = false;
234
235 TemplateType m_templateType{TemplateType::NOT_SET};
236 bool m_templateTypeHasBeenSet = false;
237
238 Aws::String m_version;
239 bool m_versionHasBeenSet = false;
240
241 Aws::String m_voiceId;
242 bool m_voiceIdHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Pinpoint
247} // 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