AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartSpeechSynthesisTaskRequest.h
1
6#pragma once
7#include <aws/polly/Polly_EXPORTS.h>
8#include <aws/polly/PollyRequest.h>
9#include <aws/polly/model/Engine.h>
10#include <aws/polly/model/LanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/polly/model/OutputFormat.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/polly/model/TextType.h>
15#include <aws/polly/model/VoiceId.h>
16#include <aws/polly/model/SpeechMarkType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Polly
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartSpeechSynthesisTask"; }
38
39 AWS_POLLY_API Aws::String SerializePayload() const override;
40
41
43
49 inline const Engine& GetEngine() const{ return m_engine; }
50 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
51 inline void SetEngine(const Engine& value) { m_engineHasBeenSet = true; m_engine = value; }
52 inline void SetEngine(Engine&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
53 inline StartSpeechSynthesisTaskRequest& WithEngine(const Engine& value) { SetEngine(value); return *this;}
54 inline StartSpeechSynthesisTaskRequest& WithEngine(Engine&& value) { SetEngine(std::move(value)); return *this;}
56
58
69 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
70 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
71 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
72 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
74 inline StartSpeechSynthesisTaskRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
76
78
83 inline const Aws::Vector<Aws::String>& GetLexiconNames() const{ return m_lexiconNames; }
84 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
85 inline void SetLexiconNames(const Aws::Vector<Aws::String>& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = value; }
86 inline void SetLexiconNames(Aws::Vector<Aws::String>&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::move(value); }
89 inline StartSpeechSynthesisTaskRequest& AddLexiconNames(const Aws::String& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
90 inline StartSpeechSynthesisTaskRequest& AddLexiconNames(Aws::String&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(std::move(value)); return *this; }
91 inline StartSpeechSynthesisTaskRequest& AddLexiconNames(const char* value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
93
95
99 inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; }
100 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
101 inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
102 inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
104 inline StartSpeechSynthesisTaskRequest& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
112 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
113 inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
114 inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::move(value); }
115 inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
118 inline StartSpeechSynthesisTaskRequest& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
120
122
125 inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
126 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
127 inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
128 inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::move(value); }
129 inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
132 inline StartSpeechSynthesisTaskRequest& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
134
136
144 inline const Aws::String& GetSampleRate() const{ return m_sampleRate; }
145 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
146 inline void SetSampleRate(const Aws::String& value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
147 inline void SetSampleRate(Aws::String&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::move(value); }
148 inline void SetSampleRate(const char* value) { m_sampleRateHasBeenSet = true; m_sampleRate.assign(value); }
149 inline StartSpeechSynthesisTaskRequest& WithSampleRate(const Aws::String& value) { SetSampleRate(value); return *this;}
150 inline StartSpeechSynthesisTaskRequest& WithSampleRate(Aws::String&& value) { SetSampleRate(std::move(value)); return *this;}
151 inline StartSpeechSynthesisTaskRequest& WithSampleRate(const char* value) { SetSampleRate(value); return *this;}
153
155
159 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
160 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
161 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
162 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
163 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
164 inline StartSpeechSynthesisTaskRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
165 inline StartSpeechSynthesisTaskRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
166 inline StartSpeechSynthesisTaskRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
168
170
173 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const{ return m_speechMarkTypes; }
174 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
175 inline void SetSpeechMarkTypes(const Aws::Vector<SpeechMarkType>& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = value; }
176 inline void SetSpeechMarkTypes(Aws::Vector<SpeechMarkType>&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::move(value); }
179 inline StartSpeechSynthesisTaskRequest& AddSpeechMarkTypes(const SpeechMarkType& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
180 inline StartSpeechSynthesisTaskRequest& AddSpeechMarkTypes(SpeechMarkType&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(std::move(value)); return *this; }
182
184
188 inline const Aws::String& GetText() const{ return m_text; }
189 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
190 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
191 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
192 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
193 inline StartSpeechSynthesisTaskRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
194 inline StartSpeechSynthesisTaskRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
195 inline StartSpeechSynthesisTaskRequest& WithText(const char* value) { SetText(value); return *this;}
197
199
203 inline const TextType& GetTextType() const{ return m_textType; }
204 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
205 inline void SetTextType(const TextType& value) { m_textTypeHasBeenSet = true; m_textType = value; }
206 inline void SetTextType(TextType&& value) { m_textTypeHasBeenSet = true; m_textType = std::move(value); }
207 inline StartSpeechSynthesisTaskRequest& WithTextType(const TextType& value) { SetTextType(value); return *this;}
208 inline StartSpeechSynthesisTaskRequest& WithTextType(TextType&& value) { SetTextType(std::move(value)); return *this;}
210
212
215 inline const VoiceId& GetVoiceId() const{ return m_voiceId; }
216 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
217 inline void SetVoiceId(const VoiceId& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
218 inline void SetVoiceId(VoiceId&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
219 inline StartSpeechSynthesisTaskRequest& WithVoiceId(const VoiceId& value) { SetVoiceId(value); return *this;}
220 inline StartSpeechSynthesisTaskRequest& WithVoiceId(VoiceId&& value) { SetVoiceId(std::move(value)); return *this;}
222 private:
223
224 Engine m_engine;
225 bool m_engineHasBeenSet = false;
226
227 LanguageCode m_languageCode;
228 bool m_languageCodeHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_lexiconNames;
231 bool m_lexiconNamesHasBeenSet = false;
232
233 OutputFormat m_outputFormat;
234 bool m_outputFormatHasBeenSet = false;
235
236 Aws::String m_outputS3BucketName;
237 bool m_outputS3BucketNameHasBeenSet = false;
238
239 Aws::String m_outputS3KeyPrefix;
240 bool m_outputS3KeyPrefixHasBeenSet = false;
241
242 Aws::String m_sampleRate;
243 bool m_sampleRateHasBeenSet = false;
244
245 Aws::String m_snsTopicArn;
246 bool m_snsTopicArnHasBeenSet = false;
247
248 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
249 bool m_speechMarkTypesHasBeenSet = false;
250
251 Aws::String m_text;
252 bool m_textHasBeenSet = false;
253
254 TextType m_textType;
255 bool m_textTypeHasBeenSet = false;
256
257 VoiceId m_voiceId;
258 bool m_voiceIdHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Polly
263} // namespace Aws
StartSpeechSynthesisTaskRequest & AddSpeechMarkTypes(const SpeechMarkType &value)
StartSpeechSynthesisTaskRequest & WithOutputS3KeyPrefix(const char *value)
StartSpeechSynthesisTaskRequest & WithVoiceId(VoiceId &&value)
StartSpeechSynthesisTaskRequest & WithTextType(TextType &&value)
StartSpeechSynthesisTaskRequest & WithTextType(const TextType &value)
StartSpeechSynthesisTaskRequest & WithLexiconNames(const Aws::Vector< Aws::String > &value)
StartSpeechSynthesisTaskRequest & WithSampleRate(const char *value)
StartSpeechSynthesisTaskRequest & WithOutputS3KeyPrefix(const Aws::String &value)
StartSpeechSynthesisTaskRequest & WithOutputFormat(OutputFormat &&value)
StartSpeechSynthesisTaskRequest & WithSampleRate(const Aws::String &value)
void SetLexiconNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
StartSpeechSynthesisTaskRequest & AddLexiconNames(Aws::String &&value)
StartSpeechSynthesisTaskRequest & WithEngine(Engine &&value)
StartSpeechSynthesisTaskRequest & WithEngine(const Engine &value)
StartSpeechSynthesisTaskRequest & AddLexiconNames(const char *value)
StartSpeechSynthesisTaskRequest & WithOutputS3BucketName(const char *value)
StartSpeechSynthesisTaskRequest & WithText(const Aws::String &value)
StartSpeechSynthesisTaskRequest & WithLexiconNames(Aws::Vector< Aws::String > &&value)
void SetSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
StartSpeechSynthesisTaskRequest & WithText(const char *value)
StartSpeechSynthesisTaskRequest & WithOutputFormat(const OutputFormat &value)
StartSpeechSynthesisTaskRequest & WithText(Aws::String &&value)
StartSpeechSynthesisTaskRequest & WithSampleRate(Aws::String &&value)
StartSpeechSynthesisTaskRequest & WithSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3BucketName(const Aws::String &value)
StartSpeechSynthesisTaskRequest & WithVoiceId(const VoiceId &value)
void SetSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
StartSpeechSynthesisTaskRequest & WithSnsTopicArn(const Aws::String &value)
StartSpeechSynthesisTaskRequest & WithLanguageCode(const LanguageCode &value)
StartSpeechSynthesisTaskRequest & WithSnsTopicArn(Aws::String &&value)
StartSpeechSynthesisTaskRequest & WithSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
StartSpeechSynthesisTaskRequest & WithLanguageCode(LanguageCode &&value)
StartSpeechSynthesisTaskRequest & AddSpeechMarkTypes(SpeechMarkType &&value)
StartSpeechSynthesisTaskRequest & WithSnsTopicArn(const char *value)
StartSpeechSynthesisTaskRequest & AddLexiconNames(const Aws::String &value)
StartSpeechSynthesisTaskRequest & WithOutputS3KeyPrefix(Aws::String &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3BucketName(Aws::String &&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