AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 Engine GetEngine() const { return m_engine; }
61 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
62 inline void SetEngine(Engine value) { m_engineHasBeenSet = true; m_engine = value; }
63 inline SynthesizeSpeechRequest& WithEngine(Engine value) { SetEngine(value); return *this;}
65
67
78 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
79 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
80 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
83
85
92 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
93 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
94 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
95 void SetLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::forward<LexiconNamesT>(value); }
96 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
97 SynthesizeSpeechRequest& WithLexiconNames(LexiconNamesT&& value) { SetLexiconNames(std::forward<LexiconNamesT>(value)); return *this;}
98 template<typename LexiconNamesT = Aws::String>
99 SynthesizeSpeechRequest& AddLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value)); return *this; }
101
103
109 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
110 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
111 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
114
116
124 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
125 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
126 template<typename SampleRateT = Aws::String>
127 void SetSampleRate(SampleRateT&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::forward<SampleRateT>(value); }
128 template<typename SampleRateT = Aws::String>
129 SynthesizeSpeechRequest& WithSampleRate(SampleRateT&& value) { SetSampleRate(std::forward<SampleRateT>(value)); return *this;}
131
133
136 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
137 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
138 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
139 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value); }
140 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
141 SynthesizeSpeechRequest& WithSpeechMarkTypes(SpeechMarkTypesT&& value) { SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value)); return *this;}
142 inline SynthesizeSpeechRequest& AddSpeechMarkTypes(SpeechMarkType value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
144
146
150 inline const Aws::String& GetText() const { return m_text; }
151 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
152 template<typename TextT = Aws::String>
153 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
154 template<typename TextT = Aws::String>
155 SynthesizeSpeechRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
157
159
164 inline TextType GetTextType() const { return m_textType; }
165 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
166 inline void SetTextType(TextType value) { m_textTypeHasBeenSet = true; m_textType = value; }
167 inline SynthesizeSpeechRequest& WithTextType(TextType value) { SetTextType(value); return *this;}
169
171
177 inline VoiceId GetVoiceId() const { return m_voiceId; }
178 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
179 inline void SetVoiceId(VoiceId value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
180 inline SynthesizeSpeechRequest& WithVoiceId(VoiceId value) { SetVoiceId(value); return *this;}
182 private:
183
184 Engine m_engine{Engine::NOT_SET};
185 bool m_engineHasBeenSet = false;
186
187 LanguageCode m_languageCode{LanguageCode::NOT_SET};
188 bool m_languageCodeHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_lexiconNames;
191 bool m_lexiconNamesHasBeenSet = false;
192
193 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
194 bool m_outputFormatHasBeenSet = false;
195
196 Aws::String m_sampleRate;
197 bool m_sampleRateHasBeenSet = false;
198
199 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
200 bool m_speechMarkTypesHasBeenSet = false;
201
202 Aws::String m_text;
203 bool m_textHasBeenSet = false;
204
205 TextType m_textType{TextType::NOT_SET};
206 bool m_textTypeHasBeenSet = false;
207
208 VoiceId m_voiceId{VoiceId::NOT_SET};
209 bool m_voiceIdHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Polly
214} // namespace Aws
SynthesizeSpeechRequest & WithOutputFormat(OutputFormat value)
SynthesizeSpeechRequest & WithText(TextT &&value)
SynthesizeSpeechRequest & WithEngine(Engine value)
SynthesizeSpeechRequest & AddLexiconNames(LexiconNamesT &&value)
SynthesizeSpeechRequest & WithVoiceId(VoiceId value)
AWS_POLLY_API SynthesizeSpeechRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_POLLY_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SynthesizeSpeechRequest & WithSampleRate(SampleRateT &&value)
SynthesizeSpeechRequest & AddSpeechMarkTypes(SpeechMarkType value)
const Aws::Vector< SpeechMarkType > & GetSpeechMarkTypes() const
SynthesizeSpeechRequest & WithTextType(TextType value)
SynthesizeSpeechRequest & WithSpeechMarkTypes(SpeechMarkTypesT &&value)
SynthesizeSpeechRequest & WithLanguageCode(LanguageCode value)
AWS_POLLY_API Aws::String SerializePayload() const override
SynthesizeSpeechRequest & WithLexiconNames(LexiconNamesT &&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