AWS SDK for C++

AWS SDK for C++ Version 1.11.636

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
58 inline Engine GetEngine() const { return m_engine; }
59 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
60 inline void SetEngine(Engine value) { m_engineHasBeenSet = true; m_engine = value; }
61 inline SynthesizeSpeechRequest& WithEngine(Engine value) { SetEngine(value); return *this;}
63
65
76 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
77 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
78 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
81
83
90 inline const Aws::Vector<Aws::String>& GetLexiconNames() const { return m_lexiconNames; }
91 inline bool LexiconNamesHasBeenSet() const { return m_lexiconNamesHasBeenSet; }
92 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
93 void SetLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames = std::forward<LexiconNamesT>(value); }
94 template<typename LexiconNamesT = Aws::Vector<Aws::String>>
95 SynthesizeSpeechRequest& WithLexiconNames(LexiconNamesT&& value) { SetLexiconNames(std::forward<LexiconNamesT>(value)); return *this;}
96 template<typename LexiconNamesT = Aws::String>
97 SynthesizeSpeechRequest& AddLexiconNames(LexiconNamesT&& value) { m_lexiconNamesHasBeenSet = true; m_lexiconNames.emplace_back(std::forward<LexiconNamesT>(value)); return *this; }
99
101
107 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
108 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
109 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
112
114
122 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
123 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
124 template<typename SampleRateT = Aws::String>
125 void SetSampleRate(SampleRateT&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::forward<SampleRateT>(value); }
126 template<typename SampleRateT = Aws::String>
127 SynthesizeSpeechRequest& WithSampleRate(SampleRateT&& value) { SetSampleRate(std::forward<SampleRateT>(value)); return *this;}
129
131
134 inline const Aws::Vector<SpeechMarkType>& GetSpeechMarkTypes() const { return m_speechMarkTypes; }
135 inline bool SpeechMarkTypesHasBeenSet() const { return m_speechMarkTypesHasBeenSet; }
136 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
137 void SetSpeechMarkTypes(SpeechMarkTypesT&& value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes = std::forward<SpeechMarkTypesT>(value); }
138 template<typename SpeechMarkTypesT = Aws::Vector<SpeechMarkType>>
139 SynthesizeSpeechRequest& WithSpeechMarkTypes(SpeechMarkTypesT&& value) { SetSpeechMarkTypes(std::forward<SpeechMarkTypesT>(value)); return *this;}
140 inline SynthesizeSpeechRequest& AddSpeechMarkTypes(SpeechMarkType value) { m_speechMarkTypesHasBeenSet = true; m_speechMarkTypes.push_back(value); return *this; }
142
144
148 inline const Aws::String& GetText() const { return m_text; }
149 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
150 template<typename TextT = Aws::String>
151 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
152 template<typename TextT = Aws::String>
153 SynthesizeSpeechRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
155
157
162 inline TextType GetTextType() const { return m_textType; }
163 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
164 inline void SetTextType(TextType value) { m_textTypeHasBeenSet = true; m_textType = value; }
165 inline SynthesizeSpeechRequest& WithTextType(TextType value) { SetTextType(value); return *this;}
167
169
175 inline VoiceId GetVoiceId() const { return m_voiceId; }
176 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
177 inline void SetVoiceId(VoiceId value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
178 inline SynthesizeSpeechRequest& WithVoiceId(VoiceId value) { SetVoiceId(value); return *this;}
180 private:
181
182 Engine m_engine{Engine::NOT_SET};
183 bool m_engineHasBeenSet = false;
184
185 LanguageCode m_languageCode{LanguageCode::NOT_SET};
186 bool m_languageCodeHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_lexiconNames;
189 bool m_lexiconNamesHasBeenSet = false;
190
191 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
192 bool m_outputFormatHasBeenSet = false;
193
194 Aws::String m_sampleRate;
195 bool m_sampleRateHasBeenSet = false;
196
197 Aws::Vector<SpeechMarkType> m_speechMarkTypes;
198 bool m_speechMarkTypesHasBeenSet = false;
199
200 Aws::String m_text;
201 bool m_textHasBeenSet = false;
202
203 TextType m_textType{TextType::NOT_SET};
204 bool m_textTypeHasBeenSet = false;
205
206 VoiceId m_voiceId{VoiceId::NOT_SET};
207 bool m_voiceIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace Polly
212} // 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