AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Voice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/polly/Polly_EXPORTS.h>
10#include <aws/polly/model/Engine.h>
11#include <aws/polly/model/Gender.h>
12#include <aws/polly/model/LanguageCode.h>
13#include <aws/polly/model/VoiceId.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Polly {
25namespace Model {
26
32class Voice {
33 public:
34 AWS_POLLY_API Voice() = default;
35 AWS_POLLY_API Voice(Aws::Utils::Json::JsonView jsonValue);
36 AWS_POLLY_API Voice& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline Gender GetGender() const { return m_gender; }
44 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
45 inline void SetGender(Gender value) {
46 m_genderHasBeenSet = true;
47 m_gender = value;
48 }
49 inline Voice& WithGender(Gender value) {
50 SetGender(value);
51 return *this;
52 }
54
56
60 inline VoiceId GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(VoiceId value) {
63 m_idHasBeenSet = true;
64 m_id = value;
65 }
66 inline Voice& WithId(VoiceId value) {
67 SetId(value);
68 return *this;
69 }
71
73
76 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
77 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
78 inline void SetLanguageCode(LanguageCode value) {
79 m_languageCodeHasBeenSet = true;
80 m_languageCode = value;
81 }
83 SetLanguageCode(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetLanguageName() const { return m_languageName; }
93 inline bool LanguageNameHasBeenSet() const { return m_languageNameHasBeenSet; }
94 template <typename LanguageNameT = Aws::String>
95 void SetLanguageName(LanguageNameT&& value) {
96 m_languageNameHasBeenSet = true;
97 m_languageName = std::forward<LanguageNameT>(value);
98 }
99 template <typename LanguageNameT = Aws::String>
100 Voice& WithLanguageName(LanguageNameT&& value) {
101 SetLanguageName(std::forward<LanguageNameT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetName() const { return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 template <typename NameT = Aws::String>
114 void SetName(NameT&& value) {
115 m_nameHasBeenSet = true;
116 m_name = std::forward<NameT>(value);
117 }
118 template <typename NameT = Aws::String>
119 Voice& WithName(NameT&& value) {
120 SetName(std::forward<NameT>(value));
121 return *this;
122 }
124
126
133 inline const Aws::Vector<LanguageCode>& GetAdditionalLanguageCodes() const { return m_additionalLanguageCodes; }
134 inline bool AdditionalLanguageCodesHasBeenSet() const { return m_additionalLanguageCodesHasBeenSet; }
135 template <typename AdditionalLanguageCodesT = Aws::Vector<LanguageCode>>
136 void SetAdditionalLanguageCodes(AdditionalLanguageCodesT&& value) {
137 m_additionalLanguageCodesHasBeenSet = true;
138 m_additionalLanguageCodes = std::forward<AdditionalLanguageCodesT>(value);
139 }
140 template <typename AdditionalLanguageCodesT = Aws::Vector<LanguageCode>>
141 Voice& WithAdditionalLanguageCodes(AdditionalLanguageCodesT&& value) {
142 SetAdditionalLanguageCodes(std::forward<AdditionalLanguageCodesT>(value));
143 return *this;
144 }
146 m_additionalLanguageCodesHasBeenSet = true;
147 m_additionalLanguageCodes.push_back(value);
148 return *this;
149 }
151
153
158 inline const Aws::Vector<Engine>& GetSupportedEngines() const { return m_supportedEngines; }
159 inline bool SupportedEnginesHasBeenSet() const { return m_supportedEnginesHasBeenSet; }
160 template <typename SupportedEnginesT = Aws::Vector<Engine>>
161 void SetSupportedEngines(SupportedEnginesT&& value) {
162 m_supportedEnginesHasBeenSet = true;
163 m_supportedEngines = std::forward<SupportedEnginesT>(value);
164 }
165 template <typename SupportedEnginesT = Aws::Vector<Engine>>
166 Voice& WithSupportedEngines(SupportedEnginesT&& value) {
167 SetSupportedEngines(std::forward<SupportedEnginesT>(value));
168 return *this;
169 }
171 m_supportedEnginesHasBeenSet = true;
172 m_supportedEngines.push_back(value);
173 return *this;
174 }
176 private:
177 Gender m_gender{Gender::NOT_SET};
178
180
181 LanguageCode m_languageCode{LanguageCode::NOT_SET};
182
183 Aws::String m_languageName;
184
185 Aws::String m_name;
186
187 Aws::Vector<LanguageCode> m_additionalLanguageCodes;
188
189 Aws::Vector<Engine> m_supportedEngines;
190 bool m_genderHasBeenSet = false;
191 bool m_idHasBeenSet = false;
192 bool m_languageCodeHasBeenSet = false;
193 bool m_languageNameHasBeenSet = false;
194 bool m_nameHasBeenSet = false;
195 bool m_additionalLanguageCodesHasBeenSet = false;
196 bool m_supportedEnginesHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace Polly
201} // namespace Aws
Voice & WithName(NameT &&value)
Definition Voice.h:119
bool LanguageNameHasBeenSet() const
Definition Voice.h:93
bool GenderHasBeenSet() const
Definition Voice.h:44
AWS_POLLY_API Voice(Aws::Utils::Json::JsonView jsonValue)
Voice & WithLanguageName(LanguageNameT &&value)
Definition Voice.h:100
bool LanguageCodeHasBeenSet() const
Definition Voice.h:77
bool AdditionalLanguageCodesHasBeenSet() const
Definition Voice.h:134
void SetSupportedEngines(SupportedEnginesT &&value)
Definition Voice.h:161
Voice & WithAdditionalLanguageCodes(AdditionalLanguageCodesT &&value)
Definition Voice.h:141
Voice & AddSupportedEngines(Engine value)
Definition Voice.h:170
Gender GetGender() const
Definition Voice.h:43
LanguageCode GetLanguageCode() const
Definition Voice.h:76
void SetLanguageCode(LanguageCode value)
Definition Voice.h:78
const Aws::String & GetLanguageName() const
Definition Voice.h:92
bool IdHasBeenSet() const
Definition Voice.h:61
Voice & WithSupportedEngines(SupportedEnginesT &&value)
Definition Voice.h:166
void SetGender(Gender value)
Definition Voice.h:45
AWS_POLLY_API Voice()=default
VoiceId GetId() const
Definition Voice.h:60
bool NameHasBeenSet() const
Definition Voice.h:112
Voice & AddAdditionalLanguageCodes(LanguageCode value)
Definition Voice.h:145
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition Voice.h:114
void SetLanguageName(LanguageNameT &&value)
Definition Voice.h:95
const Aws::String & GetName() const
Definition Voice.h:111
const Aws::Vector< Engine > & GetSupportedEngines() const
Definition Voice.h:158
AWS_POLLY_API Voice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LanguageCode > & GetAdditionalLanguageCodes() const
Definition Voice.h:133
void SetId(VoiceId value)
Definition Voice.h:62
bool SupportedEnginesHasBeenSet() const
Definition Voice.h:159
void SetAdditionalLanguageCodes(AdditionalLanguageCodesT &&value)
Definition Voice.h:136
Voice & WithLanguageCode(LanguageCode value)
Definition Voice.h:82
Voice & WithId(VoiceId value)
Definition Voice.h:66
Voice & WithGender(Gender value)
Definition Voice.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue