AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 Engine GetEngine() const { return m_engine; }
58 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
59 inline void SetEngine(Engine value) { m_engineHasBeenSet = true; m_engine = value; }
60 inline SynthesisTask& WithEngine(Engine value) { SetEngine(value); return *this;}
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) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
71 template<typename TaskIdT = Aws::String>
72 SynthesisTask& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
74
76
79 inline TaskStatus GetTaskStatus() const { return m_taskStatus; }
80 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
81 inline void SetTaskStatus(TaskStatus value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
82 inline SynthesisTask& WithTaskStatus(TaskStatus value) { SetTaskStatus(value); return *this;}
84
86
90 inline const Aws::String& GetTaskStatusReason() const { return m_taskStatusReason; }
91 inline bool TaskStatusReasonHasBeenSet() const { return m_taskStatusReasonHasBeenSet; }
92 template<typename TaskStatusReasonT = Aws::String>
93 void SetTaskStatusReason(TaskStatusReasonT&& value) { m_taskStatusReasonHasBeenSet = true; m_taskStatusReason = std::forward<TaskStatusReasonT>(value); }
94 template<typename TaskStatusReasonT = Aws::String>
95 SynthesisTask& WithTaskStatusReason(TaskStatusReasonT&& value) { SetTaskStatusReason(std::forward<TaskStatusReasonT>(value)); return *this;}
97
99
102 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
103 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
104 template<typename OutputUriT = Aws::String>
105 void SetOutputUri(OutputUriT&& value) { m_outputUriHasBeenSet = true; m_outputUri = std::forward<OutputUriT>(value); }
106 template<typename OutputUriT = Aws::String>
107 SynthesisTask& WithOutputUri(OutputUriT&& value) { SetOutputUri(std::forward<OutputUriT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
115 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
116 template<typename CreationTimeT = Aws::Utils::DateTime>
117 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
118 template<typename CreationTimeT = Aws::Utils::DateTime>
119 SynthesisTask& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
121
123
126 inline int GetRequestCharacters() const { return m_requestCharacters; }
127 inline bool RequestCharactersHasBeenSet() const { return m_requestCharactersHasBeenSet; }
128 inline void SetRequestCharacters(int value) { m_requestCharactersHasBeenSet = true; m_requestCharacters = value; }
129 inline SynthesisTask& WithRequestCharacters(int value) { SetRequestCharacters(value); return *this;}
131
133
137 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
138 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
139 template<typename SnsTopicArnT = Aws::String>
140 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
141 template<typename SnsTopicArnT = Aws::String>
142 SynthesisTask& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
144
146
151 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
152 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
153 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
154 void SetLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::forward<LexiconNamesT>(value); }
155 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
156 SynthesisTask& WithLexiconNames(LexiconNamesT&& value) { SetLexiconNames(std::forward<LexiconNamesT>(value)); return *this;}
157 template<typename LexiconNamesT = Aws::String>
158 SynthesisTask& AddLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value)); return *this; }
160
162
166 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
167 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
168 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
169 inline SynthesisTask& WithOutputFormat(OutputFormat value) { SetOutputFormat(value); return *this;}
171
173
181 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
182 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
183 template<typename SampleRateT = Aws::String>
184 void SetSampleRate(SampleRateT&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::forward<SampleRateT>(value); }
185 template<typename SampleRateT = Aws::String>
186 SynthesisTask& WithSampleRate(SampleRateT&& value) { SetSampleRate(std::forward<SampleRateT>(value)); return *this;}
188
190
193 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
194 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
195 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
196 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value); }
197 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
198 SynthesisTask& WithSpeechMarkTypes(SpeechMarkTypesT&& value) { SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value)); return *this;}
199 inline SynthesisTask& AddSpeechMarkTypes(SpeechMarkType value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
201
203
207 inline TextType GetTextType() const { return m_textType; }
208 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
209 inline void SetTextType(TextType value) { m_textTypeHasBeenSet = true; m_textType = value; }
210 inline SynthesisTask& WithTextType(TextType value) { SetTextType(value); return *this;}
212
214
217 inline VoiceId GetVoiceId() const { return m_voiceId; }
218 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
219 inline void SetVoiceId(VoiceId value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
220 inline SynthesisTask& WithVoiceId(VoiceId value) { SetVoiceId(value); return *this;}
222
224
234 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
235 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
236 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
237 inline SynthesisTask& WithLanguageCode(LanguageCode value) { SetLanguageCode(value); return *this;}
239 private:
240
241 Engine m_engine{Engine::NOT_SET};
242 bool m_engineHasBeenSet = false;
243
244 Aws::String m_taskId;
245 bool m_taskIdHasBeenSet = false;
246
247 TaskStatus m_taskStatus{TaskStatus::NOT_SET};
248 bool m_taskStatusHasBeenSet = false;
249
250 Aws::String m_taskStatusReason;
251 bool m_taskStatusReasonHasBeenSet = false;
252
253 Aws::String m_outputUri;
254 bool m_outputUriHasBeenSet = false;
255
256 Aws::Utils::DateTime m_creationTime{};
257 bool m_creationTimeHasBeenSet = false;
258
259 int m_requestCharacters{0};
260 bool m_requestCharactersHasBeenSet = false;
261
262 Aws::String m_snsTopicArn;
263 bool m_snsTopicArnHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_lexiconNames;
266 bool m_lexiconNamesHasBeenSet = false;
267
268 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
269 bool m_outputFormatHasBeenSet = false;
270
271 Aws::String m_sampleRate;
272 bool m_sampleRateHasBeenSet = false;
273
274 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
275 bool m_speechMarkTypesHasBeenSet = false;
276
277 TextType m_textType{TextType::NOT_SET};
278 bool m_textTypeHasBeenSet = false;
279
280 VoiceId m_voiceId{VoiceId::NOT_SET};
281 bool m_voiceIdHasBeenSet = false;
282
283 LanguageCode m_languageCode{LanguageCode::NOT_SET};
284 bool m_languageCodeHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace Polly
289} // 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