AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SynthesizeSpeechRequest.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 SynthesizeSpeechRequest();
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 "SynthesizeSpeech"; }
38
39 AWS_POLLY_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_POLLY_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
60 inline const Engine& GetEngine() const{ return m_engine; }
61 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
62 inline void SetEngine(const Engine& value) { m_engineHasBeenSet = true; m_engine = value; }
63 inline void SetEngine(Engine&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
64 inline SynthesizeSpeechRequest& WithEngine(const Engine& value) { SetEngine(value); return *this;}
65 inline SynthesizeSpeechRequest& WithEngine(Engine&& value) { SetEngine(std::move(value)); return *this;}
67
69
80 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
81 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
82 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
83 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
84 inline SynthesizeSpeechRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
85 inline SynthesizeSpeechRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
87
89
96 inline const Aws::Vector<Aws::String>& GetLexiconNames() const{ return m_lexiconNames; }
97 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
98 inline void SetLexiconNames(const Aws::Vector<Aws::String>& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = value; }
99 inline void SetLexiconNames(Aws::Vector<Aws::String>&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::move(value); }
101 inline SynthesizeSpeechRequest& WithLexiconNames(Aws::Vector<Aws::String>&& value) { SetLexiconNames(std::move(value)); return *this;}
102 inline SynthesizeSpeechRequest& AddLexiconNames(const Aws::String& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
103 inline SynthesizeSpeechRequest& AddLexiconNames(Aws::String&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(std::move(value)); return *this; }
104 inline SynthesizeSpeechRequest& AddLexiconNames(const char* value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.push_back(value); return *this; }
106
108
114 inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; }
115 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
116 inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
117 inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
118 inline SynthesizeSpeechRequest& WithOutputFormat(const OutputFormat& value) { SetOutputFormat(value); return *this;}
119 inline SynthesizeSpeechRequest& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
121
123
131 inline const Aws::String& GetSampleRate() const{ return m_sampleRate; }
132 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
133 inline void SetSampleRate(const Aws::String& value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
134 inline void SetSampleRate(Aws::String&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::move(value); }
135 inline void SetSampleRate(const char* value) { m_sampleRateHasBeenSet = true; m_sampleRate.assign(value); }
136 inline SynthesizeSpeechRequest& WithSampleRate(const Aws::String& value) { SetSampleRate(value); return *this;}
137 inline SynthesizeSpeechRequest& WithSampleRate(Aws::String&& value) { SetSampleRate(std::move(value)); return *this;}
138 inline SynthesizeSpeechRequest& WithSampleRate(const char* value) { SetSampleRate(value); return *this;}
140
142
145 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const{ return m_speechMarkTypes; }
146 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
147 inline void SetSpeechMarkTypes(const Aws::Vector<SpeechMarkType>& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = value; }
148 inline void SetSpeechMarkTypes(Aws::Vector<SpeechMarkType>&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::move(value); }
151 inline SynthesizeSpeechRequest& AddSpeechMarkTypes(const SpeechMarkType& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
152 inline SynthesizeSpeechRequest& AddSpeechMarkTypes(SpeechMarkType&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(std::move(value)); return *this; }
154
156
160 inline const Aws::String& GetText() const{ return m_text; }
161 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
162 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
163 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
164 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
165 inline SynthesizeSpeechRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
166 inline SynthesizeSpeechRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
167 inline SynthesizeSpeechRequest& WithText(const char* value) { SetText(value); return *this;}
169
171
176 inline const TextType& GetTextType() const{ return m_textType; }
177 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
178 inline void SetTextType(const TextType& value) { m_textTypeHasBeenSet = true; m_textType = value; }
179 inline void SetTextType(TextType&& value) { m_textTypeHasBeenSet = true; m_textType = std::move(value); }
180 inline SynthesizeSpeechRequest& WithTextType(const TextType& value) { SetTextType(value); return *this;}
181 inline SynthesizeSpeechRequest& WithTextType(TextType&& value) { SetTextType(std::move(value)); return *this;}
183
185
191 inline const VoiceId& GetVoiceId() const{ return m_voiceId; }
192 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
193 inline void SetVoiceId(const VoiceId& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
194 inline void SetVoiceId(VoiceId&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
195 inline SynthesizeSpeechRequest& WithVoiceId(const VoiceId& value) { SetVoiceId(value); return *this;}
196 inline SynthesizeSpeechRequest& WithVoiceId(VoiceId&& value) { SetVoiceId(std::move(value)); return *this;}
198 private:
199
200 Engine m_engine;
201 bool m_engineHasBeenSet = false;
202
203 LanguageCode m_languageCode;
204 bool m_languageCodeHasBeenSet = false;
205
206 Aws::Vector<Aws::String> m_lexiconNames;
207 bool m_lexiconNamesHasBeenSet = false;
208
209 OutputFormat m_outputFormat;
210 bool m_outputFormatHasBeenSet = false;
211
212 Aws::String m_sampleRate;
213 bool m_sampleRateHasBeenSet = false;
214
215 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
216 bool m_speechMarkTypesHasBeenSet = false;
217
218 Aws::String m_text;
219 bool m_textHasBeenSet = false;
220
221 TextType m_textType;
222 bool m_textTypeHasBeenSet = false;
223
224 VoiceId m_voiceId;
225 bool m_voiceIdHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace Polly
230} // namespace Aws
SynthesizeSpeechRequest & WithTextType(TextType &&value)
SynthesizeSpeechRequest & WithText(const Aws::String &value)
SynthesizeSpeechRequest & AddLexiconNames(Aws::String &&value)
SynthesizeSpeechRequest & WithSampleRate(Aws::String &&value)
SynthesizeSpeechRequest & WithVoiceId(const VoiceId &value)
void SetSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
SynthesizeSpeechRequest & WithLexiconNames(Aws::Vector< Aws::String > &&value)
SynthesizeSpeechRequest & AddLexiconNames(const Aws::String &value)
SynthesizeSpeechRequest & WithSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
SynthesizeSpeechRequest & WithLanguageCode(const LanguageCode &value)
void SetSpeechMarkTypes(Aws::Vector< SpeechMarkType > &&value)
SynthesizeSpeechRequest & WithLanguageCode(LanguageCode &&value)
SynthesizeSpeechRequest & AddLexiconNames(const char *value)
SynthesizeSpeechRequest & WithText(Aws::String &&value)
void SetLexiconNames(const Aws::Vector< Aws::String > &value)
SynthesizeSpeechRequest & WithOutputFormat(const OutputFormat &value)
virtual const char * GetServiceRequestName() const override
SynthesizeSpeechRequest & WithSampleRate(const Aws::String &value)
AWS_POLLY_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SynthesizeSpeechRequest & WithOutputFormat(OutputFormat &&value)
void SetLexiconNames(Aws::Vector< Aws::String > &&value)
SynthesizeSpeechRequest & WithLexiconNames(const Aws::Vector< Aws::String > &value)
SynthesizeSpeechRequest & WithSampleRate(const char *value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
SynthesizeSpeechRequest & WithEngine(const Engine &value)
SynthesizeSpeechRequest & AddSpeechMarkTypes(const SpeechMarkType &value)
SynthesizeSpeechRequest & WithTextType(const TextType &value)
SynthesizeSpeechRequest & WithSpeechMarkTypes(const Aws::Vector< SpeechMarkType > &value)
SynthesizeSpeechRequest & WithEngine(Engine &&value)
SynthesizeSpeechRequest & WithVoiceId(VoiceId &&value)
SynthesizeSpeechRequest & WithText(const char *value)
AWS_POLLY_API Aws::String SerializePayload() const override
void SetLanguageCode(const LanguageCode &value)
SynthesizeSpeechRequest & AddSpeechMarkTypes(SpeechMarkType &&value)
const Aws::Vector< Aws::String > & GetLexiconNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector