AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SynthesisTask.h
1
6#pragma once
7#include <aws/polly/Polly_EXPORTS.h>
8#include <aws/polly/model/Engine.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/polly/model/TaskStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/polly/model/OutputFormat.h>
14#include <aws/polly/model/TextType.h>
15#include <aws/polly/model/VoiceId.h>
16#include <aws/polly/model/LanguageCode.h>
17#include <aws/polly/model/SpeechMarkType.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Polly
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_POLLY_API SynthesisTask();
45 AWS_POLLY_API SynthesisTask(Aws::Utils::Json::JsonView jsonValue);
47 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline const Engine& GetEngine() const{ return m_engine; }
58 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
59 inline void SetEngine(const Engine& value) { m_engineHasBeenSet = true; m_engine = value; }
60 inline void SetEngine(Engine&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
61 inline SynthesisTask& WithEngine(const Engine& value) { SetEngine(value); return *this;}
62 inline SynthesisTask& WithEngine(Engine&& value) { SetEngine(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetTaskId() const{ return m_taskId; }
70 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
71 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
72 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
73 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
74 inline SynthesisTask& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
75 inline SynthesisTask& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
76 inline SynthesisTask& WithTaskId(const char* value) { SetTaskId(value); return *this;}
78
80
83 inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; }
84 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
85 inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
86 inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
87 inline SynthesisTask& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;}
88 inline SynthesisTask& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
90
92
96 inline const Aws::String& GetTaskStatusReason() const{ return m_taskStatusReason; }
97 inline bool TaskStatusReasonHasBeenSet() const { return m_taskStatusReasonHasBeenSet; }
98 inline void SetTaskStatusReason(const Aws::String& value) { m_taskStatusReasonHasBeenSet = true; m_taskStatusReason = value; }
99 inline void SetTaskStatusReason(Aws::String&& value) { m_taskStatusReasonHasBeenSet = true; m_taskStatusReason = std::move(value); }
100 inline void SetTaskStatusReason(const char* value) { m_taskStatusReasonHasBeenSet = true; m_taskStatusReason.assign(value); }
101 inline SynthesisTask& WithTaskStatusReason(const Aws::String& value) { SetTaskStatusReason(value); return *this;}
102 inline SynthesisTask& WithTaskStatusReason(Aws::String&& value) { SetTaskStatusReason(std::move(value)); return *this;}
103 inline SynthesisTask& WithTaskStatusReason(const char* value) { SetTaskStatusReason(value); return *this;}
105
107
110 inline const Aws::String& GetOutputUri() const{ return m_outputUri; }
111 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
112 inline void SetOutputUri(const Aws::String& value) { m_outputUriHasBeenSet = true; m_outputUri = value; }
113 inline void SetOutputUri(Aws::String&& value) { m_outputUriHasBeenSet = true; m_outputUri = std::move(value); }
114 inline void SetOutputUri(const char* value) { m_outputUriHasBeenSet = true; m_outputUri.assign(value); }
115 inline SynthesisTask& WithOutputUri(const Aws::String& value) { SetOutputUri(value); return *this;}
116 inline SynthesisTask& WithOutputUri(Aws::String&& value) { SetOutputUri(std::move(value)); return *this;}
117 inline SynthesisTask& WithOutputUri(const char* value) { SetOutputUri(value); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
125 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
126 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
127 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
128 inline SynthesisTask& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
129 inline SynthesisTask& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
131
133
136 inline int GetRequestCharacters() const{ return m_requestCharacters; }
137 inline bool RequestCharactersHasBeenSet() const { return m_requestCharactersHasBeenSet; }
138 inline void SetRequestCharacters(int value) { m_requestCharactersHasBeenSet = true; m_requestCharacters = value; }
139 inline SynthesisTask& WithRequestCharacters(int value) { SetRequestCharacters(value); return *this;}
141
143
147 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
148 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
149 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
150 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
151 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
152 inline SynthesisTask& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
153 inline SynthesisTask& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
154 inline SynthesisTask& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
156
158
163 inline const Aws::Vector<Aws::String>& GetLexiconNames() const{ return m_lexiconNames; }
164 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
165 inline void SetLexiconNames(const Aws::Vector<Aws::String>& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = value; }
166 inline void SetLexiconNames(Aws::Vector<Aws::String>&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::move(value); }
167 inline SynthesisTask& WithLexiconNames(const Aws::Vector<Aws::String>& value) { SetLexiconNames(value); return *this;}
168 inline SynthesisTask& WithLexiconNames(Aws::Vector<Aws::String>&& value) { SetLexiconNames(std::move(value)); return *this;}
169 inline SynthesisTask& AddLexiconNames(const Aws::String& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
170 inline SynthesisTask& AddLexiconNames(Aws::String&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(std::move(value)); return *this; }
171 inline SynthesisTask& AddLexiconNames(const char* value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
173
175
179 inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; }
180 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
181 inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
182 inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
183 inline SynthesisTask& WithOutputFormat(const OutputFormat& value) { SetOutputFormat(value); return *this;}
184 inline SynthesisTask& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
186
188
196 inline const Aws::String& GetSampleRate() const{ return m_sampleRate; }
197 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
198 inline void SetSampleRate(const Aws::String& value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
199 inline void SetSampleRate(Aws::String&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::move(value); }
200 inline void SetSampleRate(const char* value) { m_sampleRateHasBeenSet = true; m_sampleRate.assign(value); }
201 inline SynthesisTask& WithSampleRate(const Aws::String& value) { SetSampleRate(value); return *this;}
202 inline SynthesisTask& WithSampleRate(Aws::String&& value) { SetSampleRate(std::move(value)); return *this;}
203 inline SynthesisTask& WithSampleRate(const char* value) { SetSampleRate(value); return *this;}
205
207
210 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const{ return m_speechMarkTypes; }
211 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
212 inline void SetSpeechMarkTypes(const Aws::Vector<SpeechMarkType>& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = value; }
213 inline void SetSpeechMarkTypes(Aws::Vector<SpeechMarkType>&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::move(value); }
215 inline SynthesisTask& WithSpeechMarkTypes(Aws::Vector<SpeechMarkType>&& value) { SetSpeechMarkTypes(std::move(value)); return *this;}
216 inline SynthesisTask& AddSpeechMarkTypes(const SpeechMarkType& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
217 inline SynthesisTask& AddSpeechMarkTypes(SpeechMarkType&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(std::move(value)); return *this; }
219
221
225 inline const TextType& GetTextType() const{ return m_textType; }
226 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
227 inline void SetTextType(const TextType& value) { m_textTypeHasBeenSet = true; m_textType = value; }
228 inline void SetTextType(TextType&& value) { m_textTypeHasBeenSet = true; m_textType = std::move(value); }
229 inline SynthesisTask& WithTextType(const TextType& value) { SetTextType(value); return *this;}
230 inline SynthesisTask& WithTextType(TextType&& value) { SetTextType(std::move(value)); return *this;}
232
234
237 inline const VoiceId& GetVoiceId() const{ return m_voiceId; }
238 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
239 inline void SetVoiceId(const VoiceId& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
240 inline void SetVoiceId(VoiceId&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
241 inline SynthesisTask& WithVoiceId(const VoiceId& value) { SetVoiceId(value); return *this;}
242 inline SynthesisTask& WithVoiceId(VoiceId&& value) { SetVoiceId(std::move(value)); return *this;}
244
246
256 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
257 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
258 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
259 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
260 inline SynthesisTask& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
261 inline SynthesisTask& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
263 private:
264
265 Engine m_engine;
266 bool m_engineHasBeenSet = false;
267
268 Aws::String m_taskId;
269 bool m_taskIdHasBeenSet = false;
270
271 TaskStatus m_taskStatus;
272 bool m_taskStatusHasBeenSet = false;
273
274 Aws::String m_taskStatusReason;
275 bool m_taskStatusReasonHasBeenSet = false;
276
277 Aws::String m_outputUri;
278 bool m_outputUriHasBeenSet = false;
279
280 Aws::Utils::DateTime m_creationTime;
281 bool m_creationTimeHasBeenSet = false;
282
283 int m_requestCharacters;
284 bool m_requestCharactersHasBeenSet = false;
285
286 Aws::String m_snsTopicArn;
287 bool m_snsTopicArnHasBeenSet = false;
288
289 Aws::Vector<Aws::String> m_lexiconNames;
290 bool m_lexiconNamesHasBeenSet = false;
291
292 OutputFormat m_outputFormat;
293 bool m_outputFormatHasBeenSet = false;
294
295 Aws::String m_sampleRate;
296 bool m_sampleRateHasBeenSet = false;
297
298 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
299 bool m_speechMarkTypesHasBeenSet = false;
300
301 TextType m_textType;
302 bool m_textTypeHasBeenSet = false;
303
304 VoiceId m_voiceId;
305 bool m_voiceIdHasBeenSet = false;
306
307 LanguageCode m_languageCode;
308 bool m_languageCodeHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace Polly
313} // namespace Aws
void SetSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
SynthesisTask & WithTaskStatusReason(const Aws::String &value)
void SetTaskStatus(TaskStatus &&value)
SynthesisTask & WithTaskStatus(const TaskStatus &value)
const OutputFormat & GetOutputFormat() const
SynthesisTask & AddLexiconNames(const char *value)
SynthesisTask & WithCreationTime(Aws::Utils::DateTime &&value)
SynthesisTask & WithSampleRate(const Aws::String &value)
const Aws::String & GetTaskStatusReason() const
void SetTaskStatusReason(const char *value)
SynthesisTask & WithOutputFormat(OutputFormat &&value)
void SetTaskId(const Aws::String &value)
void SetVoiceId(const VoiceId &value)
SynthesisTask & WithLexiconNames(const Aws::Vector< Aws::String > &value)
const Aws::String & GetOutputUri() const
void SetOutputUri(const Aws::String &value)
SynthesisTask & WithTaskId(const Aws::String &value)
void SetTaskStatusReason(const Aws::String &value)
void SetTaskStatusReason(Aws::String &&value)
void SetLexiconNames(Aws::Vector< Aws::String > &&value)
void SetSnsTopicArn(const Aws::String &value)
SynthesisTask & WithLexiconNames(Aws::Vector< Aws::String > &&value)
SynthesisTask & WithOutputUri(const Aws::String &value)
const VoiceId & GetVoiceId() const
void SetSnsTopicArn(const char *value)
void SetSampleRate(const Aws::String &value)
const Engine & GetEngine() const
SynthesisTask & WithSampleRate(Aws::String &&value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
SynthesisTask & WithEngine(Engine &&value)
SynthesisTask & WithTaskStatus(TaskStatus &&value)
void SetEngine(const Engine &value)
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
SynthesisTask & WithTaskId(Aws::String &&value)
SynthesisTask & WithSnsTopicArn(Aws::String &&value)
SynthesisTask & WithSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
SynthesisTask & WithRequestCharacters(int value)
AWS_POLLY_API SynthesisTask & operator=(Aws::Utils::Json::JsonView jsonValue)
SynthesisTask & WithOutputFormat(const OutputFormat &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_POLLY_API SynthesisTask(Aws::Utils::Json::JsonView jsonValue)
SynthesisTask & WithOutputUri(const char *value)
const Aws::String & GetSampleRate() const
void SetOutputFormat(const OutputFormat &value)
SynthesisTask & WithSampleRate(const char *value)
const Aws::String & GetSnsTopicArn() const
void SetSampleRate(Aws::String &&value)
const TaskStatus & GetTaskStatus() const
void SetSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
SynthesisTask & WithCreationTime(const Aws::Utils::DateTime &value)
SynthesisTask & WithOutputUri(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetEngine(Engine &&value)
void SetOutputUri(const char *value)
void SetTextType(const TextType &value)
void SetSnsTopicArn(Aws::String &&value)
SynthesisTask & AddSpeechMarkTypes(const SpeechMarkType &value)
SynthesisTask & WithTextType(TextType &&value)
void SetVoiceId(VoiceId &&value)
SynthesisTask & AddSpeechMarkTypes(SpeechMarkType &&value)
void SetSampleRate(const char *value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
SynthesisTask & WithSnsTopicArn(const Aws::String &value)
SynthesisTask & WithLanguageCode(const LanguageCode &value)
const LanguageCode & GetLanguageCode() const
SynthesisTask & WithTaskStatusReason(const char *value)
SynthesisTask & WithSnsTopicArn(const char *value)
SynthesisTask & AddLexiconNames(const Aws::String &value)
void SetLexiconNames(const Aws::Vector< Aws::String > &value)
SynthesisTask & AddLexiconNames(Aws::String &&value)
SynthesisTask & WithSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
void SetOutputFormat(OutputFormat &&value)
const Aws::String & GetTaskId() const
void SetLanguageCode(LanguageCode &&value)
SynthesisTask & WithTextType(const TextType &value)
void SetLanguageCode(const LanguageCode &value)
void SetTextType(TextType &&value)
SynthesisTask & WithTaskId(const char *value)
void SetTaskStatus(const TaskStatus &value)
void SetTaskId(Aws::String &&value)
const TextType & GetTextType() const
SynthesisTask & WithVoiceId(VoiceId &&value)
SynthesisTask & WithVoiceId(const VoiceId &value)
SynthesisTask & WithEngine(const Engine &value)
SynthesisTask & WithTaskStatusReason(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetOutputUri(Aws::String &&value)
void SetTaskId(const char *value)
SynthesisTask & WithLanguageCode(LanguageCode &&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