AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
StartSpeechSynthesisTaskRequest.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 StartSpeechSynthesisTaskRequest() = 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 "StartSpeechSynthesisTask"; }
35
36 AWS_POLLY_API Aws::String SerializePayload() const override;
37
39
45 inline Engine GetEngine() const { return m_engine; }
46 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
47 inline void SetEngine(Engine value) {
48 m_engineHasBeenSet = true;
49 m_engine = value;
50 }
52 SetEngine(value);
53 return *this;
54 }
56
58
69 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
70 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
71 inline void SetLanguageCode(LanguageCode value) {
72 m_languageCodeHasBeenSet = true;
73 m_languageCode = value;
74 }
76 SetLanguageCode(value);
77 return *this;
78 }
80
82
87 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
88 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
89 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
90 void SetLexiconNames(LexiconNamesT&& value) {
91 m_lexiconNamesHasBeenSet = true;
92 m_lexiconNames = std::forward<LexiconNamesT>(value);
93 }
94 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
96 SetLexiconNames(std::forward<LexiconNamesT>(value));
97 return *this;
98 }
99 template <typename LexiconNamesT = Aws::String>
101 m_lexiconNamesHasBeenSet = true;
102 m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value));
103 return *this;
104 }
106
108
112 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
113 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
114 inline void SetOutputFormat(OutputFormat value) {
115 m_outputFormatHasBeenSet = true;
116 m_outputFormat = value;
117 }
119 SetOutputFormat(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
129 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
130 template <typename OutputS3BucketNameT = Aws::String>
131 void SetOutputS3BucketName(OutputS3BucketNameT&& value) {
132 m_outputS3BucketNameHasBeenSet = true;
133 m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value);
134 }
135 template <typename OutputS3BucketNameT = Aws::String>
137 SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
147 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
148 template <typename OutputS3KeyPrefixT = Aws::String>
149 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
150 m_outputS3KeyPrefixHasBeenSet = true;
151 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
152 }
153 template <typename OutputS3KeyPrefixT = Aws::String>
155 SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value));
156 return *this;
157 }
159
161
169 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
170 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
171 template <typename SampleRateT = Aws::String>
172 void SetSampleRate(SampleRateT&& value) {
173 m_sampleRateHasBeenSet = true;
174 m_sampleRate = std::forward<SampleRateT>(value);
175 }
176 template <typename SampleRateT = Aws::String>
178 SetSampleRate(std::forward<SampleRateT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
189 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
190 template <typename SnsTopicArnT = Aws::String>
191 void SetSnsTopicArn(SnsTopicArnT&& value) {
192 m_snsTopicArnHasBeenSet = true;
193 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
194 }
195 template <typename SnsTopicArnT = Aws::String>
197 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
207 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
208 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
209 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
210 m_speechMarkTypesHasBeenSet = true;
211 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
212 }
213 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
215 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
216 return *this;
217 }
219 m_speechMarkTypesHasBeenSet = true;
220 m_speechMarkTypes.push_back(value);
221 return *this;
222 }
224
226
230 inline const Aws::String& GetText() const { return m_text; }
231 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
232 template <typename TextT = Aws::String>
233 void SetText(TextT&& value) {
234 m_textHasBeenSet = true;
235 m_text = std::forward<TextT>(value);
236 }
237 template <typename TextT = Aws::String>
239 SetText(std::forward<TextT>(value));
240 return *this;
241 }
243
245
249 inline TextType GetTextType() const { return m_textType; }
250 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
251 inline void SetTextType(TextType value) {
252 m_textTypeHasBeenSet = true;
253 m_textType = value;
254 }
256 SetTextType(value);
257 return *this;
258 }
260
262
265 inline VoiceId GetVoiceId() const { return m_voiceId; }
266 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
267 inline void SetVoiceId(VoiceId value) {
268 m_voiceIdHasBeenSet = true;
269 m_voiceId = value;
270 }
272 SetVoiceId(value);
273 return *this;
274 }
276 private:
277 Engine m_engine{Engine::NOT_SET};
278 bool m_engineHasBeenSet = false;
279
280 LanguageCode m_languageCode{LanguageCode::NOT_SET};
281 bool m_languageCodeHasBeenSet = false;
282
283 Aws::Vector<Aws::String> m_lexiconNames;
284 bool m_lexiconNamesHasBeenSet = false;
285
286 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
287 bool m_outputFormatHasBeenSet = false;
288
289 Aws::String m_outputS3BucketName;
290 bool m_outputS3BucketNameHasBeenSet = false;
291
292 Aws::String m_outputS3KeyPrefix;
293 bool m_outputS3KeyPrefixHasBeenSet = false;
294
295 Aws::String m_sampleRate;
296 bool m_sampleRateHasBeenSet = false;
297
298 Aws::String m_snsTopicArn;
299 bool m_snsTopicArnHasBeenSet = false;
300
301 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
302 bool m_speechMarkTypesHasBeenSet = false;
303
304 Aws::String m_text;
305 bool m_textHasBeenSet = false;
306
307 TextType m_textType{TextType::NOT_SET};
308 bool m_textTypeHasBeenSet = false;
309
310 VoiceId m_voiceId{VoiceId::NOT_SET};
311 bool m_voiceIdHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Polly
316} // namespace Aws
StartSpeechSynthesisTaskRequest & WithSampleRate(SampleRateT &&value)
StartSpeechSynthesisTaskRequest & WithSnsTopicArn(SnsTopicArnT &&value)
StartSpeechSynthesisTaskRequest & WithEngine(Engine value)
StartSpeechSynthesisTaskRequest & WithLanguageCode(LanguageCode value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
StartSpeechSynthesisTaskRequest & WithTextType(TextType value)
StartSpeechSynthesisTaskRequest & WithLexiconNames(LexiconNamesT &&value)
StartSpeechSynthesisTaskRequest & AddSpeechMarkTypes(SpeechMarkType value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
StartSpeechSynthesisTaskRequest & WithOutputFormat(OutputFormat value)
StartSpeechSynthesisTaskRequest & WithSpeechMarkTypes(SpeechMarkTypesT &&value)
StartSpeechSynthesisTaskRequest & WithText(TextT &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3BucketName(OutputS3BucketNameT &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
StartSpeechSynthesisTaskRequest & WithVoiceId(VoiceId value)
StartSpeechSynthesisTaskRequest & AddLexiconNames(LexiconNamesT &&value)
AWS_POLLY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector