AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
147 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
148 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
149 template <typename SampleRateT = Aws::String>
150 void SetSampleRate(SampleRateT&& value) {
151 m_sampleRateHasBeenSet = true;
152 m_sampleRate = std::forward<SampleRateT>(value);
153 }
154 template <typename SampleRateT = Aws::String>
156 SetSampleRate(std::forward<SampleRateT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
166 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
167 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
168 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
169 m_speechMarkTypesHasBeenSet = true;
170 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
171 }
172 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
173 SynthesizeSpeechRequest& WithSpeechMarkTypes(SpeechMarkTypesT&& value) {
174 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
175 return *this;
176 }
178 m_speechMarkTypesHasBeenSet = true;
179 m_speechMarkTypes.push_back(value);
180 return *this;
181 }
183
185
189 inline const Aws::String& GetText() const { return m_text; }
190 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
191 template <typename TextT = Aws::String>
192 void SetText(TextT&& value) {
193 m_textHasBeenSet = true;
194 m_text = std::forward<TextT>(value);
195 }
196 template <typename TextT = Aws::String>
198 SetText(std::forward<TextT>(value));
199 return *this;
200 }
202
204
209 inline TextType GetTextType() const { return m_textType; }
210 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
211 inline void SetTextType(TextType value) {
212 m_textTypeHasBeenSet = true;
213 m_textType = value;
214 }
216 SetTextType(value);
217 return *this;
218 }
220
222
228 inline VoiceId GetVoiceId() const { return m_voiceId; }
229 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
230 inline void SetVoiceId(VoiceId value) {
231 m_voiceIdHasBeenSet = true;
232 m_voiceId = value;
233 }
235 SetVoiceId(value);
236 return *this;
237 }
239 private:
240 Engine m_engine{Engine::NOT_SET};
241
242 LanguageCode m_languageCode{LanguageCode::NOT_SET};
243
244 Aws::Vector<Aws::String> m_lexiconNames;
245
246 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
247
248 Aws::String m_sampleRate;
249
250 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
251
252 Aws::String m_text;
253
254 TextType m_textType{TextType::NOT_SET};
255
256 VoiceId m_voiceId{VoiceId::NOT_SET};
257 bool m_engineHasBeenSet = false;
258 bool m_languageCodeHasBeenSet = false;
259 bool m_lexiconNamesHasBeenSet = false;
260 bool m_outputFormatHasBeenSet = false;
261 bool m_sampleRateHasBeenSet = false;
262 bool m_speechMarkTypesHasBeenSet = false;
263 bool m_textHasBeenSet = false;
264 bool m_textTypeHasBeenSet = false;
265 bool m_voiceIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Polly
270} // 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