AWS SDK for C++  1.9.108
AWS SDK for C++
Voice.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/polly/model/Engine.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Polly
27 {
28 namespace Model
29 {
30 
37  {
38  public:
39  Voice();
43 
44 
48  inline const Gender& GetGender() const{ return m_gender; }
49 
53  inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
54 
58  inline void SetGender(const Gender& value) { m_genderHasBeenSet = true; m_gender = value; }
59 
63  inline void SetGender(Gender&& value) { m_genderHasBeenSet = true; m_gender = std::move(value); }
64 
68  inline Voice& WithGender(const Gender& value) { SetGender(value); return *this;}
69 
73  inline Voice& WithGender(Gender&& value) { SetGender(std::move(value)); return *this;}
74 
75 
80  inline const VoiceId& GetId() const{ return m_id; }
81 
86  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87 
92  inline void SetId(const VoiceId& value) { m_idHasBeenSet = true; m_id = value; }
93 
98  inline void SetId(VoiceId&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
99 
104  inline Voice& WithId(const VoiceId& value) { SetId(value); return *this;}
105 
110  inline Voice& WithId(VoiceId&& value) { SetId(std::move(value)); return *this;}
111 
112 
116  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
117 
121  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
122 
126  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
127 
131  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
132 
136  inline Voice& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
137 
141  inline Voice& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
142 
143 
147  inline const Aws::String& GetLanguageName() const{ return m_languageName; }
148 
152  inline bool LanguageNameHasBeenSet() const { return m_languageNameHasBeenSet; }
153 
157  inline void SetLanguageName(const Aws::String& value) { m_languageNameHasBeenSet = true; m_languageName = value; }
158 
162  inline void SetLanguageName(Aws::String&& value) { m_languageNameHasBeenSet = true; m_languageName = std::move(value); }
163 
167  inline void SetLanguageName(const char* value) { m_languageNameHasBeenSet = true; m_languageName.assign(value); }
168 
172  inline Voice& WithLanguageName(const Aws::String& value) { SetLanguageName(value); return *this;}
173 
177  inline Voice& WithLanguageName(Aws::String&& value) { SetLanguageName(std::move(value)); return *this;}
178 
182  inline Voice& WithLanguageName(const char* value) { SetLanguageName(value); return *this;}
183 
184 
189  inline const Aws::String& GetName() const{ return m_name; }
190 
195  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
196 
201  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
202 
207  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
208 
213  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
214 
219  inline Voice& WithName(const Aws::String& value) { SetName(value); return *this;}
220 
225  inline Voice& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
226 
231  inline Voice& WithName(const char* value) { SetName(value); return *this;}
232 
233 
241  inline const Aws::Vector<LanguageCode>& GetAdditionalLanguageCodes() const{ return m_additionalLanguageCodes; }
242 
250  inline bool AdditionalLanguageCodesHasBeenSet() const { return m_additionalLanguageCodesHasBeenSet; }
251 
259  inline void SetAdditionalLanguageCodes(const Aws::Vector<LanguageCode>& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes = value; }
260 
268  inline void SetAdditionalLanguageCodes(Aws::Vector<LanguageCode>&& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes = std::move(value); }
269 
277  inline Voice& WithAdditionalLanguageCodes(const Aws::Vector<LanguageCode>& value) { SetAdditionalLanguageCodes(value); return *this;}
278 
286  inline Voice& WithAdditionalLanguageCodes(Aws::Vector<LanguageCode>&& value) { SetAdditionalLanguageCodes(std::move(value)); return *this;}
287 
295  inline Voice& AddAdditionalLanguageCodes(const LanguageCode& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes.push_back(value); return *this; }
296 
304  inline Voice& AddAdditionalLanguageCodes(LanguageCode&& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes.push_back(std::move(value)); return *this; }
305 
306 
311  inline const Aws::Vector<Engine>& GetSupportedEngines() const{ return m_supportedEngines; }
312 
317  inline bool SupportedEnginesHasBeenSet() const { return m_supportedEnginesHasBeenSet; }
318 
323  inline void SetSupportedEngines(const Aws::Vector<Engine>& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines = value; }
324 
329  inline void SetSupportedEngines(Aws::Vector<Engine>&& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines = std::move(value); }
330 
335  inline Voice& WithSupportedEngines(const Aws::Vector<Engine>& value) { SetSupportedEngines(value); return *this;}
336 
341  inline Voice& WithSupportedEngines(Aws::Vector<Engine>&& value) { SetSupportedEngines(std::move(value)); return *this;}
342 
347  inline Voice& AddSupportedEngines(const Engine& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines.push_back(value); return *this; }
348 
353  inline Voice& AddSupportedEngines(Engine&& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines.push_back(std::move(value)); return *this; }
354 
355  private:
356 
357  Gender m_gender;
358  bool m_genderHasBeenSet;
359 
360  VoiceId m_id;
361  bool m_idHasBeenSet;
362 
363  LanguageCode m_languageCode;
364  bool m_languageCodeHasBeenSet;
365 
366  Aws::String m_languageName;
367  bool m_languageNameHasBeenSet;
368 
369  Aws::String m_name;
370  bool m_nameHasBeenSet;
371 
372  Aws::Vector<LanguageCode> m_additionalLanguageCodes;
373  bool m_additionalLanguageCodesHasBeenSet;
374 
375  Aws::Vector<Engine> m_supportedEngines;
376  bool m_supportedEnginesHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace Polly
381 } // namespace Aws
Aws::Polly::Model::Voice::WithAdditionalLanguageCodes
Voice & WithAdditionalLanguageCodes(Aws::Vector< LanguageCode > &&value)
Definition: Voice.h:286
Aws::Polly::Model::Voice::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Voice.h:86
Aws::Polly::Model::Gender
Gender
Definition: Gender.h:17
Aws::Polly::Model::Voice::AddAdditionalLanguageCodes
Voice & AddAdditionalLanguageCodes(LanguageCode &&value)
Definition: Voice.h:304
Aws::Polly::Model::Voice::WithName
Voice & WithName(const Aws::String &value)
Definition: Voice.h:219
Aws::Polly::Model::Voice::SetAdditionalLanguageCodes
void SetAdditionalLanguageCodes(const Aws::Vector< LanguageCode > &value)
Definition: Voice.h:259
Aws::Polly::Model::Voice::WithLanguageName
Voice & WithLanguageName(const Aws::String &value)
Definition: Voice.h:172
Aws::Polly::Model::Voice::SetSupportedEngines
void SetSupportedEngines(const Aws::Vector< Engine > &value)
Definition: Voice.h:323
Aws::Polly::Model::Voice::WithName
Voice & WithName(const char *value)
Definition: Voice.h:231
Aws::Polly::Model::Voice::operator=
Voice & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Polly::Model::Voice::AddAdditionalLanguageCodes
Voice & AddAdditionalLanguageCodes(const LanguageCode &value)
Definition: Voice.h:295
Aws::Polly::Model::Voice::WithLanguageCode
Voice & WithLanguageCode(LanguageCode &&value)
Definition: Voice.h:141
Aws::Polly::Model::Voice::WithLanguageCode
Voice & WithLanguageCode(const LanguageCode &value)
Definition: Voice.h:136
Aws::Polly::Model::Voice::WithGender
Voice & WithGender(Gender &&value)
Definition: Voice.h:73
Aws::Polly::Model::Voice::GenderHasBeenSet
bool GenderHasBeenSet() const
Definition: Voice.h:53
Aws::Polly::Model::Voice::SetAdditionalLanguageCodes
void SetAdditionalLanguageCodes(Aws::Vector< LanguageCode > &&value)
Definition: Voice.h:268
Polly_EXPORTS.h
Aws::Polly::Model::Voice::Voice
Voice()
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::Model::Voice::WithSupportedEngines
Voice & WithSupportedEngines(Aws::Vector< Engine > &&value)
Definition: Voice.h:341
Aws::Polly::Model::Voice::SetLanguageName
void SetLanguageName(const char *value)
Definition: Voice.h:167
Aws::Polly::Model::Voice::AddSupportedEngines
Voice & AddSupportedEngines(Engine &&value)
Definition: Voice.h:353
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Polly::Model::Voice::SetGender
void SetGender(Gender &&value)
Definition: Voice.h:63
Aws::Polly::Model::Voice::SetId
void SetId(const VoiceId &value)
Definition: Voice.h:92
Aws::Polly::Model::Voice::GetSupportedEngines
const Aws::Vector< Engine > & GetSupportedEngines() const
Definition: Voice.h:311
Aws::Polly::Model::Voice::AdditionalLanguageCodesHasBeenSet
bool AdditionalLanguageCodesHasBeenSet() const
Definition: Voice.h:250
Engine.h
Aws::Polly::Model::Voice::WithId
Voice & WithId(const VoiceId &value)
Definition: Voice.h:104
LanguageCode.h
AWSVector.h
Aws::Polly::Model::Voice::GetName
const Aws::String & GetName() const
Definition: Voice.h:189
Gender.h
Aws::Polly::Model::Voice::WithLanguageName
Voice & WithLanguageName(Aws::String &&value)
Definition: Voice.h:177
Aws::Polly::Model::Voice::SetLanguageName
void SetLanguageName(Aws::String &&value)
Definition: Voice.h:162
Aws::Polly::Model::Voice::GetLanguageName
const Aws::String & GetLanguageName() const
Definition: Voice.h:147
Aws::Polly::Model::Voice::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Polly::Model::Voice
Definition: Voice.h:37
Aws::Polly::Model::VoiceId
VoiceId
Definition: VoiceId.h:17
Aws::Polly::Model::Voice::WithLanguageName
Voice & WithLanguageName(const char *value)
Definition: Voice.h:182
Aws::Polly::Model::Voice::GetLanguageCode
const LanguageCode & GetLanguageCode() const
Definition: Voice.h:116
Aws::Polly::Model::Voice::SetId
void SetId(VoiceId &&value)
Definition: Voice.h:98
Aws::Polly::Model::Voice::WithId
Voice & WithId(VoiceId &&value)
Definition: Voice.h:110
VoiceId.h
Aws::Polly::Model::Voice::SetSupportedEngines
void SetSupportedEngines(Aws::Vector< Engine > &&value)
Definition: Voice.h:329
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Polly::Model::Voice::GetId
const VoiceId & GetId() const
Definition: Voice.h:80
Aws::Polly::Model::Voice::SetLanguageCode
void SetLanguageCode(LanguageCode &&value)
Definition: Voice.h:131
Aws::Polly::Model::Voice::LanguageNameHasBeenSet
bool LanguageNameHasBeenSet() const
Definition: Voice.h:152
Aws::Polly::Model::Voice::GetAdditionalLanguageCodes
const Aws::Vector< LanguageCode > & GetAdditionalLanguageCodes() const
Definition: Voice.h:241
Aws::Polly::Model::Voice::WithGender
Voice & WithGender(const Gender &value)
Definition: Voice.h:68
Aws::Polly::Model::Voice::WithAdditionalLanguageCodes
Voice & WithAdditionalLanguageCodes(const Aws::Vector< LanguageCode > &value)
Definition: Voice.h:277
Aws::Polly::Model::Voice::SetGender
void SetGender(const Gender &value)
Definition: Voice.h:58
Aws::Polly::Model::Voice::SupportedEnginesHasBeenSet
bool SupportedEnginesHasBeenSet() const
Definition: Voice.h:317
Aws
Definition: AccessManagementClient.h:15
Aws::Polly::Model::Voice::SetLanguageCode
void SetLanguageCode(const LanguageCode &value)
Definition: Voice.h:126
Aws::Polly::Model::Voice::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: Voice.h:121
Aws::Polly::Model::Voice::SetName
void SetName(Aws::String &&value)
Definition: Voice.h:207
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Polly::Model::Voice::WithSupportedEngines
Voice & WithSupportedEngines(const Aws::Vector< Engine > &value)
Definition: Voice.h:335
Aws::Polly::Model::Voice::SetLanguageName
void SetLanguageName(const Aws::String &value)
Definition: Voice.h:157
Aws::Polly::Model::LanguageCode
LanguageCode
Definition: LanguageCode.h:17
Aws::Polly::Model::Voice::AddSupportedEngines
Voice & AddSupportedEngines(const Engine &value)
Definition: Voice.h:347
Aws::Polly::Model::Voice::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Voice.h:195
Aws::Polly::Model::Voice::SetName
void SetName(const Aws::String &value)
Definition: Voice.h:201
Aws::Polly::Model::Voice::GetGender
const Gender & GetGender() const
Definition: Voice.h:48
Aws::Polly::Model::Voice::Voice
Voice(Aws::Utils::Json::JsonView jsonValue)
Aws::Polly::Model::Voice::WithName
Voice & WithName(Aws::String &&value)
Definition: Voice.h:225
Aws::Polly::Model::Voice::SetName
void SetName(const char *value)
Definition: Voice.h:213
Aws::Polly::Model::Engine
Engine
Definition: Engine.h:17