AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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
113 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
114 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
115 inline void SetOutputFormat(OutputFormat value) {
116 m_outputFormatHasBeenSet = true;
117 m_outputFormat = value;
118 }
120 SetOutputFormat(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
130 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
131 template <typename OutputS3BucketNameT = Aws::String>
132 void SetOutputS3BucketName(OutputS3BucketNameT&& value) {
133 m_outputS3BucketNameHasBeenSet = true;
134 m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value);
135 }
136 template <typename OutputS3BucketNameT = Aws::String>
138 SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
148 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
149 template <typename OutputS3KeyPrefixT = Aws::String>
150 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
151 m_outputS3KeyPrefixHasBeenSet = true;
152 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
153 }
154 template <typename OutputS3KeyPrefixT = Aws::String>
156 SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value));
157 return *this;
158 }
160
162
171 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
172 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
173 template <typename SampleRateT = Aws::String>
174 void SetSampleRate(SampleRateT&& value) {
175 m_sampleRateHasBeenSet = true;
176 m_sampleRate = std::forward<SampleRateT>(value);
177 }
178 template <typename SampleRateT = Aws::String>
180 SetSampleRate(std::forward<SampleRateT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
191 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
192 template <typename SnsTopicArnT = Aws::String>
193 void SetSnsTopicArn(SnsTopicArnT&& value) {
194 m_snsTopicArnHasBeenSet = true;
195 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
196 }
197 template <typename SnsTopicArnT = Aws::String>
199 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
209 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
210 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
211 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
212 m_speechMarkTypesHasBeenSet = true;
213 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
214 }
215 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
217 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
218 return *this;
219 }
221 m_speechMarkTypesHasBeenSet = true;
222 m_speechMarkTypes.push_back(value);
223 return *this;
224 }
226
228
232 inline const Aws::String& GetText() const { return m_text; }
233 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
234 template <typename TextT = Aws::String>
235 void SetText(TextT&& value) {
236 m_textHasBeenSet = true;
237 m_text = std::forward<TextT>(value);
238 }
239 template <typename TextT = Aws::String>
241 SetText(std::forward<TextT>(value));
242 return *this;
243 }
245
247
251 inline TextType GetTextType() const { return m_textType; }
252 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
253 inline void SetTextType(TextType value) {
254 m_textTypeHasBeenSet = true;
255 m_textType = value;
256 }
258 SetTextType(value);
259 return *this;
260 }
262
264
267 inline VoiceId GetVoiceId() const { return m_voiceId; }
268 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
269 inline void SetVoiceId(VoiceId value) {
270 m_voiceIdHasBeenSet = true;
271 m_voiceId = value;
272 }
274 SetVoiceId(value);
275 return *this;
276 }
278 private:
279 Engine m_engine{Engine::NOT_SET};
280
281 LanguageCode m_languageCode{LanguageCode::NOT_SET};
282
283 Aws::Vector<Aws::String> m_lexiconNames;
284
285 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
286
287 Aws::String m_outputS3BucketName;
288
289 Aws::String m_outputS3KeyPrefix;
290
291 Aws::String m_sampleRate;
292
293 Aws::String m_snsTopicArn;
294
295 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
296
297 Aws::String m_text;
298
299 TextType m_textType{TextType::NOT_SET};
300
301 VoiceId m_voiceId{VoiceId::NOT_SET};
302 bool m_engineHasBeenSet = false;
303 bool m_languageCodeHasBeenSet = false;
304 bool m_lexiconNamesHasBeenSet = false;
305 bool m_outputFormatHasBeenSet = false;
306 bool m_outputS3BucketNameHasBeenSet = false;
307 bool m_outputS3KeyPrefixHasBeenSet = false;
308 bool m_sampleRateHasBeenSet = false;
309 bool m_snsTopicArnHasBeenSet = false;
310 bool m_speechMarkTypesHasBeenSet = false;
311 bool m_textHasBeenSet = false;
312 bool m_textTypeHasBeenSet = false;
313 bool m_voiceIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace Polly
318} // 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