AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
31 AWS_POLLY_API StartSpeechSynthesisTaskRequest() = default;
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 Engine GetEngine() const { return m_engine; }
50 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
51 inline void SetEngine(Engine value) { m_engineHasBeenSet = true; m_engine = value; }
52 inline StartSpeechSynthesisTaskRequest& WithEngine(Engine value) { SetEngine(value); return *this;}
54
56
67 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
68 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
69 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
72
74
79 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
80 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
81 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
82 void SetLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::forward<LexiconNamesT>(value); }
83 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
84 StartSpeechSynthesisTaskRequest& WithLexiconNames(LexiconNamesT&& value) { SetLexiconNames(std::forward<LexiconNamesT>(value)); return *this;}
85 template<typename LexiconNamesT = Aws::String>
86 StartSpeechSynthesisTaskRequest& AddLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value)); return *this; }
88
90
94 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
95 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
96 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
99
101
104 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
105 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
106 template<typename OutputS3BucketNameT = Aws::String>
107 void SetOutputS3BucketName(OutputS3BucketNameT&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value); }
108 template<typename OutputS3BucketNameT = Aws::String>
109 StartSpeechSynthesisTaskRequest& WithOutputS3BucketName(OutputS3BucketNameT&& value) { SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value)); return *this;}
111
113
116 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
117 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
118 template<typename OutputS3KeyPrefixT = Aws::String>
119 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value); }
120 template<typename OutputS3KeyPrefixT = Aws::String>
121 StartSpeechSynthesisTaskRequest& WithOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value)); return *this;}
123
125
133 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
134 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
135 template<typename SampleRateT = Aws::String>
136 void SetSampleRate(SampleRateT&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::forward<SampleRateT>(value); }
137 template<typename SampleRateT = Aws::String>
138 StartSpeechSynthesisTaskRequest& WithSampleRate(SampleRateT&& value) { SetSampleRate(std::forward<SampleRateT>(value)); return *this;}
140
142
146 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
147 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
148 template<typename SnsTopicArnT = Aws::String>
149 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
150 template<typename SnsTopicArnT = Aws::String>
151 StartSpeechSynthesisTaskRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
153
155
158 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
159 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
160 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
161 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value); }
162 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
163 StartSpeechSynthesisTaskRequest& WithSpeechMarkTypes(SpeechMarkTypesT&& value) { SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value)); return *this;}
164 inline StartSpeechSynthesisTaskRequest& AddSpeechMarkTypes(SpeechMarkType value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
166
168
172 inline const Aws::String& GetText() const { return m_text; }
173 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
174 template<typename TextT = Aws::String>
175 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
176 template<typename TextT = Aws::String>
177 StartSpeechSynthesisTaskRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
179
181
185 inline TextType GetTextType() const { return m_textType; }
186 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
187 inline void SetTextType(TextType value) { m_textTypeHasBeenSet = true; m_textType = value; }
188 inline StartSpeechSynthesisTaskRequest& WithTextType(TextType value) { SetTextType(value); return *this;}
190
192
195 inline VoiceId GetVoiceId() const { return m_voiceId; }
196 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
197 inline void SetVoiceId(VoiceId value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
198 inline StartSpeechSynthesisTaskRequest& WithVoiceId(VoiceId value) { SetVoiceId(value); return *this;}
200 private:
201
202 Engine m_engine{Engine::NOT_SET};
203 bool m_engineHasBeenSet = false;
204
205 LanguageCode m_languageCode{LanguageCode::NOT_SET};
206 bool m_languageCodeHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_lexiconNames;
209 bool m_lexiconNamesHasBeenSet = false;
210
211 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
212 bool m_outputFormatHasBeenSet = false;
213
214 Aws::String m_outputS3BucketName;
215 bool m_outputS3BucketNameHasBeenSet = false;
216
217 Aws::String m_outputS3KeyPrefix;
218 bool m_outputS3KeyPrefixHasBeenSet = false;
219
220 Aws::String m_sampleRate;
221 bool m_sampleRateHasBeenSet = false;
222
223 Aws::String m_snsTopicArn;
224 bool m_snsTopicArnHasBeenSet = false;
225
226 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
227 bool m_speechMarkTypesHasBeenSet = false;
228
229 Aws::String m_text;
230 bool m_textHasBeenSet = false;
231
232 TextType m_textType{TextType::NOT_SET};
233 bool m_textTypeHasBeenSet = false;
234
235 VoiceId m_voiceId{VoiceId::NOT_SET};
236 bool m_voiceIdHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace Polly
241} // namespace Aws
StartSpeechSynthesisTaskRequest & WithSampleRate(SampleRateT &&value)
StartSpeechSynthesisTaskRequest & WithSnsTopicArn(SnsTopicArnT &&value)
StartSpeechSynthesisTaskRequest & WithEngine(Engine value)
StartSpeechSynthesisTaskRequest & WithLanguageCode(LanguageCode value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
StartSpeechSynthesisTaskRequest & WithTextType(TextType value)
StartSpeechSynthesisTaskRequest & WithLexiconNames(LexiconNamesT &&value)
StartSpeechSynthesisTaskRequest & AddSpeechMarkTypes(SpeechMarkType value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
StartSpeechSynthesisTaskRequest & WithOutputFormat(OutputFormat value)
StartSpeechSynthesisTaskRequest & WithSpeechMarkTypes(SpeechMarkTypesT &&value)
StartSpeechSynthesisTaskRequest & WithText(TextT &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3BucketName(OutputS3BucketNameT &&value)
StartSpeechSynthesisTaskRequest & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
StartSpeechSynthesisTaskRequest & WithVoiceId(VoiceId value)
StartSpeechSynthesisTaskRequest & AddLexiconNames(LexiconNamesT &&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