AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
218 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
219 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
220 inline void SetOutputFormat(OutputFormat value) {
221 m_outputFormatHasBeenSet = true;
222 m_outputFormat = value;
223 }
225 SetOutputFormat(value);
226 return *this;
227 }
229
231
239 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
240 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
241 template <typename SampleRateT = Aws::String>
242 void SetSampleRate(SampleRateT&& value) {
243 m_sampleRateHasBeenSet = true;
244 m_sampleRate = std::forward<SampleRateT>(value);
245 }
246 template <typename SampleRateT = Aws::String>
247 SynthesisTask& WithSampleRate(SampleRateT&& value) {
248 SetSampleRate(std::forward<SampleRateT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
258 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
259 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
260 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) {
261 m_speechMarkTypesHasBeenSet = true;
262 m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value);
263 }
264 template <typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
265 SynthesisTask& WithSpeechMarkTypes(SpeechMarkTypesT&& value) {
266 SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value));
267 return *this;
268 }
270 m_speechMarkTypesHasBeenSet = true;
271 m_speechMarkTypes.push_back(value);
272 return *this;
273 }
275
277
281 inline TextType GetTextType() const { return m_textType; }
282 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
283 inline void SetTextType(TextType value) {
284 m_textTypeHasBeenSet = true;
285 m_textType = value;
286 }
288 SetTextType(value);
289 return *this;
290 }
292
294
297 inline VoiceId GetVoiceId() const { return m_voiceId; }
298 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
299 inline void SetVoiceId(VoiceId value) {
300 m_voiceIdHasBeenSet = true;
301 m_voiceId = value;
302 }
304 SetVoiceId(value);
305 return *this;
306 }
308
310
320 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
321 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
322 inline void SetLanguageCode(LanguageCode value) {
323 m_languageCodeHasBeenSet = true;
324 m_languageCode = value;
325 }
327 SetLanguageCode(value);
328 return *this;
329 }
331 private:
332 Engine m_engine{Engine::NOT_SET};
333
334 Aws::String m_taskId;
335
336 TaskStatus m_taskStatus{TaskStatus::NOT_SET};
337
338 Aws::String m_taskStatusReason;
339
340 Aws::String m_outputUri;
341
342 Aws::Utils::DateTime m_creationTime{};
343
344 int m_requestCharacters{0};
345
346 Aws::String m_snsTopicArn;
347
348 Aws::Vector<Aws::String> m_lexiconNames;
349
350 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
351
352 Aws::String m_sampleRate;
353
354 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
355
356 TextType m_textType{TextType::NOT_SET};
357
358 VoiceId m_voiceId{VoiceId::NOT_SET};
359
360 LanguageCode m_languageCode{LanguageCode::NOT_SET};
361 bool m_engineHasBeenSet = false;
362 bool m_taskIdHasBeenSet = false;
363 bool m_taskStatusHasBeenSet = false;
364 bool m_taskStatusReasonHasBeenSet = false;
365 bool m_outputUriHasBeenSet = false;
366 bool m_creationTimeHasBeenSet = false;
367 bool m_requestCharactersHasBeenSet = false;
368 bool m_snsTopicArnHasBeenSet = false;
369 bool m_lexiconNamesHasBeenSet = false;
370 bool m_outputFormatHasBeenSet = false;
371 bool m_sampleRateHasBeenSet = false;
372 bool m_speechMarkTypesHasBeenSet = false;
373 bool m_textTypeHasBeenSet = false;
374 bool m_voiceIdHasBeenSet = false;
375 bool m_languageCodeHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace Polly
380} // 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