AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
SynthesizeSpeechRequest.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/PollyRequest.h>
10#include <aws/polly/Polly_EXPORTS.h>
11#include <aws/polly/model/Engine.h>
12#include <aws/polly/model/LanguageCode.h>
13#include <aws/polly/model/OutputFormat.h>
14#include <aws/polly/model/SpeechMarkType.h>
15#include <aws/polly/model/TextType.h>
16#include <aws/polly/model/VoiceId.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Polly {
22namespace Model {
23
27 public:
28 AWS_POLLY_API SynthesizeSpeechRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SynthesizeSpeech"; }
35
36 AWS_POLLY_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_POLLY_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
54 inline Engine GetEngine() const { return m_engine; }
55 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
56 inline void SetEngine(Engine value) {
57 m_engineHasBeenSet = true;
58 m_engine = value;
59 }
61 SetEngine(value);
62 return *this;
63 }
65
67
78 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
79 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
80 inline void SetLanguageCode(LanguageCode value) {
81 m_languageCodeHasBeenSet = true;
82 m_languageCode = value;
83 }
85 SetLanguageCode(value);
86 return *this;
87 }
89
91
98 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
99 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
100 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
101 void SetLexiconNames(LexiconNamesT&& value) {
102 m_lexiconNamesHasBeenSet = true;
103 m_lexiconNames = std::forward<LexiconNamesT>(value);
104 }
105 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
107 SetLexiconNames(std::forward<LexiconNamesT>(value));
108 return *this;
109 }
110 template <typename LexiconNamesT = Aws::String>
111 SynthesizeSpeechRequest& AddLexiconNames(LexiconNamesT&& value) {
112 m_lexiconNamesHasBeenSet = true;
113 m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value));
114 return *this;
115 }
117
119
125 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
126 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
127 inline void SetOutputFormat(OutputFormat value) {
128 m_outputFormatHasBeenSet = true;
129 m_outputFormat = value;
130 }
132 SetOutputFormat(value);
133 return *this;
134 }
136
138
146 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
147 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
148 template <typename SampleRateT = Aws::String>
149 void SetSampleRate(SampleRateT&& value) {
150 m_sampleRateHasBeenSet = true;
151 m_sampleRate = std::forward<SampleRateT>(value);
152 }
153 template <typename SampleRateT = Aws::String>
155 SetSampleRate(std::forward<SampleRateT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
165 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
166 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
167 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
168 m_speechMarkTypesHasBeenSet = true;
169 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
170 }
171 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
172 SynthesizeSpeechRequest& WithSpeechMarkTypes(SpeechMarkTypesT&& value) {
173 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
174 return *this;
175 }
177 m_speechMarkTypesHasBeenSet = true;
178 m_speechMarkTypes.push_back(value);
179 return *this;
180 }
182
184
188 inline const Aws::String& GetText() const { return m_text; }
189 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
190 template <typename TextT = Aws::String>
191 void SetText(TextT&& value) {
192 m_textHasBeenSet = true;
193 m_text = std::forward<TextT>(value);
194 }
195 template <typename TextT = Aws::String>
197 SetText(std::forward<TextT>(value));
198 return *this;
199 }
201
203
208 inline TextType GetTextType() const { return m_textType; }
209 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
210 inline void SetTextType(TextType value) {
211 m_textTypeHasBeenSet = true;
212 m_textType = value;
213 }
215 SetTextType(value);
216 return *this;
217 }
219
221
227 inline VoiceId GetVoiceId() const { return m_voiceId; }
228 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
229 inline void SetVoiceId(VoiceId value) {
230 m_voiceIdHasBeenSet = true;
231 m_voiceId = value;
232 }
234 SetVoiceId(value);
235 return *this;
236 }
238 private:
239 Engine m_engine{Engine::NOT_SET};
240 bool m_engineHasBeenSet = false;
241
242 LanguageCode m_languageCode{LanguageCode::NOT_SET};
243 bool m_languageCodeHasBeenSet = false;
244
245 Aws::Vector<Aws::String> m_lexiconNames;
246 bool m_lexiconNamesHasBeenSet = false;
247
248 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
249 bool m_outputFormatHasBeenSet = false;
250
251 Aws::String m_sampleRate;
252 bool m_sampleRateHasBeenSet = false;
253
254 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
255 bool m_speechMarkTypesHasBeenSet = false;
256
257 Aws::String m_text;
258 bool m_textHasBeenSet = false;
259
260 TextType m_textType{TextType::NOT_SET};
261 bool m_textTypeHasBeenSet = false;
262
263 VoiceId m_voiceId{VoiceId::NOT_SET};
264 bool m_voiceIdHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace Polly
269} // namespace Aws
SynthesizeSpeechRequest & WithOutputFormat(OutputFormat value)
SynthesizeSpeechRequest & WithText(TextT &&value)
SynthesizeSpeechRequest & WithEngine(Engine value)
SynthesizeSpeechRequest & AddLexiconNames(LexiconNamesT &&value)
SynthesizeSpeechRequest & WithVoiceId(VoiceId value)
AWS_POLLY_API SynthesizeSpeechRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_POLLY_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SynthesizeSpeechRequest & WithSampleRate(SampleRateT &&value)
SynthesizeSpeechRequest & AddSpeechMarkTypes(SpeechMarkType value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
SynthesizeSpeechRequest & WithTextType(TextType value)
SynthesizeSpeechRequest & WithSpeechMarkTypes(SpeechMarkTypesT &&value)
SynthesizeSpeechRequest & WithLanguageCode(LanguageCode value)
AWS_POLLY_API Aws::String SerializePayload() const override
SynthesizeSpeechRequest & WithLexiconNames(LexiconNamesT &&value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector