AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
SynthesisTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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/TaskStatus.h>
16#include <aws/polly/model/TextType.h>
17#include <aws/polly/model/VoiceId.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Polly {
29namespace Model {
30
38 public:
39 AWS_POLLY_API SynthesisTask() = default;
40 AWS_POLLY_API SynthesisTask(Aws::Utils::Json::JsonView jsonValue);
42 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
51 inline Engine GetEngine() const { return m_engine; }
52 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
53 inline void SetEngine(Engine value) {
54 m_engineHasBeenSet = true;
55 m_engine = value;
56 }
58 SetEngine(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetTaskId() const { return m_taskId; }
68 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
69 template <typename TaskIdT = Aws::String>
70 void SetTaskId(TaskIdT&& value) {
71 m_taskIdHasBeenSet = true;
72 m_taskId = std::forward<TaskIdT>(value);
73 }
74 template <typename TaskIdT = Aws::String>
75 SynthesisTask& WithTaskId(TaskIdT&& value) {
76 SetTaskId(std::forward<TaskIdT>(value));
77 return *this;
78 }
80
82
85 inline TaskStatus GetTaskStatus() const { return m_taskStatus; }
86 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
87 inline void SetTaskStatus(TaskStatus value) {
88 m_taskStatusHasBeenSet = true;
89 m_taskStatus = value;
90 }
92 SetTaskStatus(value);
93 return *this;
94 }
96
98
102 inline const Aws::String& GetTaskStatusReason() const { return m_taskStatusReason; }
103 inline bool TaskStatusReasonHasBeenSet() const { return m_taskStatusReasonHasBeenSet; }
104 template <typename TaskStatusReasonT = Aws::String>
105 void SetTaskStatusReason(TaskStatusReasonT&& value) {
106 m_taskStatusReasonHasBeenSet = true;
107 m_taskStatusReason = std::forward<TaskStatusReasonT>(value);
108 }
109 template <typename TaskStatusReasonT = Aws::String>
110 SynthesisTask& WithTaskStatusReason(TaskStatusReasonT&& value) {
111 SetTaskStatusReason(std::forward<TaskStatusReasonT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
121 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
122 template <typename OutputUriT = Aws::String>
123 void SetOutputUri(OutputUriT&& value) {
124 m_outputUriHasBeenSet = true;
125 m_outputUri = std::forward<OutputUriT>(value);
126 }
127 template <typename OutputUriT = Aws::String>
128 SynthesisTask& WithOutputUri(OutputUriT&& value) {
129 SetOutputUri(std::forward<OutputUriT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
139 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
140 template <typename CreationTimeT = Aws::Utils::DateTime>
141 void SetCreationTime(CreationTimeT&& value) {
142 m_creationTimeHasBeenSet = true;
143 m_creationTime = std::forward<CreationTimeT>(value);
144 }
145 template <typename CreationTimeT = Aws::Utils::DateTime>
146 SynthesisTask& WithCreationTime(CreationTimeT&& value) {
147 SetCreationTime(std::forward<CreationTimeT>(value));
148 return *this;
149 }
151
153
156 inline int GetRequestCharacters() const { return m_requestCharacters; }
157 inline bool RequestCharactersHasBeenSet() const { return m_requestCharactersHasBeenSet; }
158 inline void SetRequestCharacters(int value) {
159 m_requestCharactersHasBeenSet = true;
160 m_requestCharacters = value;
161 }
164 return *this;
165 }
167
169
173 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
174 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
175 template <typename SnsTopicArnT = Aws::String>
176 void SetSnsTopicArn(SnsTopicArnT&& value) {
177 m_snsTopicArnHasBeenSet = true;
178 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
179 }
180 template <typename SnsTopicArnT = Aws::String>
181 SynthesisTask& WithSnsTopicArn(SnsTopicArnT&& value) {
182 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
194 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
195 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
196 void SetLexiconNames(LexiconNamesT&& value) {
197 m_lexiconNamesHasBeenSet = true;
198 m_lexiconNames = std::forward<LexiconNamesT>(value);
199 }
200 template <typename LexiconNamesT = Aws::Vector<Aws::String>>
201 SynthesisTask& WithLexiconNames(LexiconNamesT&& value) {
202 SetLexiconNames(std::forward<LexiconNamesT>(value));
203 return *this;
204 }
205 template <typename LexiconNamesT = Aws::String>
206 SynthesisTask& AddLexiconNames(LexiconNamesT&& value) {
207 m_lexiconNamesHasBeenSet = true;
208 m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value));
209 return *this;
210 }
212
214
219 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
220 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
221 inline void SetOutputFormat(OutputFormat value) {
222 m_outputFormatHasBeenSet = true;
223 m_outputFormat = value;
224 }
226 SetOutputFormat(value);
227 return *this;
228 }
230
232
241 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
242 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
243 template <typename SampleRateT = Aws::String>
244 void SetSampleRate(SampleRateT&& value) {
245 m_sampleRateHasBeenSet = true;
246 m_sampleRate = std::forward<SampleRateT>(value);
247 }
248 template <typename SampleRateT = Aws::String>
249 SynthesisTask& WithSampleRate(SampleRateT&& value) {
250 SetSampleRate(std::forward<SampleRateT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
260 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
261 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
262 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
263 m_speechMarkTypesHasBeenSet = true;
264 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
265 }
266 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
267 SynthesisTask& WithSpeechMarkTypes(SpeechMarkTypesT&& value) {
268 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
269 return *this;
270 }
272 m_speechMarkTypesHasBeenSet = true;
273 m_speechMarkTypes.push_back(value);
274 return *this;
275 }
277
279
283 inline TextType GetTextType() const { return m_textType; }
284 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
285 inline void SetTextType(TextType value) {
286 m_textTypeHasBeenSet = true;
287 m_textType = value;
288 }
290 SetTextType(value);
291 return *this;
292 }
294
296
299 inline VoiceId GetVoiceId() const { return m_voiceId; }
300 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
301 inline void SetVoiceId(VoiceId value) {
302 m_voiceIdHasBeenSet = true;
303 m_voiceId = value;
304 }
306 SetVoiceId(value);
307 return *this;
308 }
310
312
322 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
323 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
324 inline void SetLanguageCode(LanguageCode value) {
325 m_languageCodeHasBeenSet = true;
326 m_languageCode = value;
327 }
329 SetLanguageCode(value);
330 return *this;
331 }
333 private:
334 Engine m_engine{Engine::NOT_SET};
335
336 Aws::String m_taskId;
337
338 TaskStatus m_taskStatus{TaskStatus::NOT_SET};
339
340 Aws::String m_taskStatusReason;
341
342 Aws::String m_outputUri;
343
344 Aws::Utils::DateTime m_creationTime{};
345
346 int m_requestCharacters{0};
347
348 Aws::String m_snsTopicArn;
349
350 Aws::Vector<Aws::String> m_lexiconNames;
351
352 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
353
354 Aws::String m_sampleRate;
355
356 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
357
358 TextType m_textType{TextType::NOT_SET};
359
360 VoiceId m_voiceId{VoiceId::NOT_SET};
361
362 LanguageCode m_languageCode{LanguageCode::NOT_SET};
363 bool m_engineHasBeenSet = false;
364 bool m_taskIdHasBeenSet = false;
365 bool m_taskStatusHasBeenSet = false;
366 bool m_taskStatusReasonHasBeenSet = false;
367 bool m_outputUriHasBeenSet = false;
368 bool m_creationTimeHasBeenSet = false;
369 bool m_requestCharactersHasBeenSet = false;
370 bool m_snsTopicArnHasBeenSet = false;
371 bool m_lexiconNamesHasBeenSet = false;
372 bool m_outputFormatHasBeenSet = false;
373 bool m_sampleRateHasBeenSet = false;
374 bool m_speechMarkTypesHasBeenSet = false;
375 bool m_textTypeHasBeenSet = false;
376 bool m_voiceIdHasBeenSet = false;
377 bool m_languageCodeHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace Polly
382} // namespace Aws
SynthesisTask & WithLanguageCode(LanguageCode value)
void SetTaskStatus(TaskStatus value)
SynthesisTask & WithSampleRate(SampleRateT &&value)
SynthesisTask & AddLexiconNames(LexiconNamesT &&value)
SynthesisTask & WithTaskId(TaskIdT &&value)
void SetTaskStatusReason(TaskStatusReasonT &&value)
SynthesisTask & WithOutputUri(OutputUriT &&value)
const Aws::String & GetTaskStatusReason() const
const Aws::String & GetOutputUri() const
OutputFormat GetOutputFormat() const
SynthesisTask & AddSpeechMarkTypes(SpeechMarkType value)
SynthesisTask & WithCreationTime(CreationTimeT &&value)
void SetLexiconNames(LexiconNamesT &&value)
AWS_POLLY_API SynthesisTask()=default
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
void SetTaskId(TaskIdT &&value)
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
SynthesisTask & WithRequestCharacters(int value)
AWS_POLLY_API SynthesisTask & operator=(Aws::Utils::Json::JsonView jsonValue)
SynthesisTask & WithLexiconNames(LexiconNamesT &&value)
SynthesisTask & WithTaskStatusReason(TaskStatusReasonT &&value)
AWS_POLLY_API SynthesisTask(Aws::Utils::Json::JsonView jsonValue)
SynthesisTask & WithTaskStatus(TaskStatus value)
SynthesisTask & WithEngine(Engine value)
const Aws::String & GetSampleRate() const
const Aws::String & GetSnsTopicArn() const
void SetCreationTime(CreationTimeT &&value)
void SetSpeechMarkTypes(SpeechMarkTypesT &&value)
LanguageCode GetLanguageCode() const
SynthesisTask & WithTextType(TextType value)
const Aws::Utils::DateTime & GetCreationTime() const
SynthesisTask & WithVoiceId(VoiceId value)
void SetSampleRate(SampleRateT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
void SetOutputFormat(OutputFormat value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
const Aws::String & GetTaskId() const
void SetTextType(TextType value)
SynthesisTask & WithSnsTopicArn(SnsTopicArnT &&value)
void SetOutputUri(OutputUriT &&value)
void SetLanguageCode(LanguageCode value)
SynthesisTask & WithOutputFormat(OutputFormat value)
SynthesisTask & WithSpeechMarkTypes(SpeechMarkTypesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue