AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
CreateBotLocaleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/AudioFillerSettings.h>
11#include <aws/lexv2-models/model/GenerativeAISettings.h>
12#include <aws/lexv2-models/model/SpeakerDiarizationSettings.h>
13#include <aws/lexv2-models/model/SpeechDetectionSensitivity.h>
14#include <aws/lexv2-models/model/SpeechRecognitionSettings.h>
15#include <aws/lexv2-models/model/UnifiedSpeechSettings.h>
16#include <aws/lexv2-models/model/VoiceSettings.h>
17
18#include <utility>
19
20namespace Aws {
21namespace LexModelsV2 {
22namespace Model {
23
27 public:
28 AWS_LEXMODELSV2_API CreateBotLocaleRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBotLocale"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetBotId() const { return m_botId; }
43 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
44 template <typename BotIdT = Aws::String>
45 void SetBotId(BotIdT&& value) {
46 m_botIdHasBeenSet = true;
47 m_botId = std::forward<BotIdT>(value);
48 }
49 template <typename BotIdT = Aws::String>
51 SetBotId(std::forward<BotIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
62 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
63 template <typename BotVersionT = Aws::String>
64 void SetBotVersion(BotVersionT&& value) {
65 m_botVersionHasBeenSet = true;
66 m_botVersion = std::forward<BotVersionT>(value);
67 }
68 template <typename BotVersionT = Aws::String>
69 CreateBotLocaleRequest& WithBotVersion(BotVersionT&& value) {
70 SetBotVersion(std::forward<BotVersionT>(value));
71 return *this;
72 }
74
76
84 inline const Aws::String& GetLocaleId() const { return m_localeId; }
85 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
86 template <typename LocaleIdT = Aws::String>
87 void SetLocaleId(LocaleIdT&& value) {
88 m_localeIdHasBeenSet = true;
89 m_localeId = std::forward<LocaleIdT>(value);
90 }
91 template <typename LocaleIdT = Aws::String>
93 SetLocaleId(std::forward<LocaleIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
130 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
131 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
132 inline void SetNluIntentConfidenceThreshold(double value) {
133 m_nluIntentConfidenceThresholdHasBeenSet = true;
134 m_nluIntentConfidenceThreshold = value;
135 }
138 return *this;
139 }
141
143
147 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
148 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
149 template <typename VoiceSettingsT = VoiceSettings>
150 void SetVoiceSettings(VoiceSettingsT&& value) {
151 m_voiceSettingsHasBeenSet = true;
152 m_voiceSettings = std::forward<VoiceSettingsT>(value);
153 }
154 template <typename VoiceSettingsT = VoiceSettings>
155 CreateBotLocaleRequest& WithVoiceSettings(VoiceSettingsT&& value) {
156 SetVoiceSettings(std::forward<VoiceSettingsT>(value));
157 return *this;
158 }
160
162
165 inline const UnifiedSpeechSettings& GetUnifiedSpeechSettings() const { return m_unifiedSpeechSettings; }
166 inline bool UnifiedSpeechSettingsHasBeenSet() const { return m_unifiedSpeechSettingsHasBeenSet; }
167 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
168 void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
169 m_unifiedSpeechSettingsHasBeenSet = true;
170 m_unifiedSpeechSettings = std::forward<UnifiedSpeechSettingsT>(value);
171 }
172 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
173 CreateBotLocaleRequest& WithUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
174 SetUnifiedSpeechSettings(std::forward<UnifiedSpeechSettingsT>(value));
175 return *this;
176 }
178
180
187 inline const AudioFillerSettings& GetAudioFillerSettings() const { return m_audioFillerSettings; }
188 inline bool AudioFillerSettingsHasBeenSet() const { return m_audioFillerSettingsHasBeenSet; }
189 template <typename AudioFillerSettingsT = AudioFillerSettings>
190 void SetAudioFillerSettings(AudioFillerSettingsT&& value) {
191 m_audioFillerSettingsHasBeenSet = true;
192 m_audioFillerSettings = std::forward<AudioFillerSettingsT>(value);
193 }
194 template <typename AudioFillerSettingsT = AudioFillerSettings>
195 CreateBotLocaleRequest& WithAudioFillerSettings(AudioFillerSettingsT&& value) {
196 SetAudioFillerSettings(std::forward<AudioFillerSettingsT>(value));
197 return *this;
198 }
200
202
205 inline const SpeechRecognitionSettings& GetSpeechRecognitionSettings() const { return m_speechRecognitionSettings; }
206 inline bool SpeechRecognitionSettingsHasBeenSet() const { return m_speechRecognitionSettingsHasBeenSet; }
207 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
208 void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
209 m_speechRecognitionSettingsHasBeenSet = true;
210 m_speechRecognitionSettings = std::forward<SpeechRecognitionSettingsT>(value);
211 }
212 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
213 CreateBotLocaleRequest& WithSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
214 SetSpeechRecognitionSettings(std::forward<SpeechRecognitionSettingsT>(value));
215 return *this;
216 }
218
220
221 inline const GenerativeAISettings& GetGenerativeAISettings() const { return m_generativeAISettings; }
222 inline bool GenerativeAISettingsHasBeenSet() const { return m_generativeAISettingsHasBeenSet; }
223 template <typename GenerativeAISettingsT = GenerativeAISettings>
224 void SetGenerativeAISettings(GenerativeAISettingsT&& value) {
225 m_generativeAISettingsHasBeenSet = true;
226 m_generativeAISettings = std::forward<GenerativeAISettingsT>(value);
227 }
228 template <typename GenerativeAISettingsT = GenerativeAISettings>
229 CreateBotLocaleRequest& WithGenerativeAISettings(GenerativeAISettingsT&& value) {
230 SetGenerativeAISettings(std::forward<GenerativeAISettingsT>(value));
231 return *this;
232 }
234
236
241 inline SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const { return m_speechDetectionSensitivity; }
242 inline bool SpeechDetectionSensitivityHasBeenSet() const { return m_speechDetectionSensitivityHasBeenSet; }
244 m_speechDetectionSensitivityHasBeenSet = true;
245 m_speechDetectionSensitivity = value;
246 }
249 return *this;
250 }
252
254
259 inline const SpeakerDiarizationSettings& GetSpeakerDiarizationSettings() const { return m_speakerDiarizationSettings; }
260 inline bool SpeakerDiarizationSettingsHasBeenSet() const { return m_speakerDiarizationSettingsHasBeenSet; }
261 template <typename SpeakerDiarizationSettingsT = SpeakerDiarizationSettings>
262 void SetSpeakerDiarizationSettings(SpeakerDiarizationSettingsT&& value) {
263 m_speakerDiarizationSettingsHasBeenSet = true;
264 m_speakerDiarizationSettings = std::forward<SpeakerDiarizationSettingsT>(value);
265 }
266 template <typename SpeakerDiarizationSettingsT = SpeakerDiarizationSettings>
267 CreateBotLocaleRequest& WithSpeakerDiarizationSettings(SpeakerDiarizationSettingsT&& value) {
268 SetSpeakerDiarizationSettings(std::forward<SpeakerDiarizationSettingsT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_botId;
274
275 Aws::String m_botVersion;
276
277 Aws::String m_localeId;
278
279 Aws::String m_description;
280
281 double m_nluIntentConfidenceThreshold{0.0};
282
283 VoiceSettings m_voiceSettings;
284
285 UnifiedSpeechSettings m_unifiedSpeechSettings;
286
287 AudioFillerSettings m_audioFillerSettings;
288
289 SpeechRecognitionSettings m_speechRecognitionSettings;
290
291 GenerativeAISettings m_generativeAISettings;
292
294
295 SpeakerDiarizationSettings m_speakerDiarizationSettings;
296 bool m_botIdHasBeenSet = false;
297 bool m_botVersionHasBeenSet = false;
298 bool m_localeIdHasBeenSet = false;
299 bool m_descriptionHasBeenSet = false;
300 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
301 bool m_voiceSettingsHasBeenSet = false;
302 bool m_unifiedSpeechSettingsHasBeenSet = false;
303 bool m_audioFillerSettingsHasBeenSet = false;
304 bool m_speechRecognitionSettingsHasBeenSet = false;
305 bool m_generativeAISettingsHasBeenSet = false;
306 bool m_speechDetectionSensitivityHasBeenSet = false;
307 bool m_speakerDiarizationSettingsHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace LexModelsV2
312} // namespace Aws
CreateBotLocaleRequest & WithSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
CreateBotLocaleRequest & WithLocaleId(LocaleIdT &&value)
void SetAudioFillerSettings(AudioFillerSettingsT &&value)
AWS_LEXMODELSV2_API CreateBotLocaleRequest()=default
CreateBotLocaleRequest & WithNluIntentConfidenceThreshold(double value)
void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
CreateBotLocaleRequest & WithSpeakerDiarizationSettings(SpeakerDiarizationSettingsT &&value)
SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const
CreateBotLocaleRequest & WithUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
const UnifiedSpeechSettings & GetUnifiedSpeechSettings() const
CreateBotLocaleRequest & WithBotVersion(BotVersionT &&value)
void SetSpeakerDiarizationSettings(SpeakerDiarizationSettingsT &&value)
void SetSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
const SpeechRecognitionSettings & GetSpeechRecognitionSettings() const
CreateBotLocaleRequest & WithAudioFillerSettings(AudioFillerSettingsT &&value)
CreateBotLocaleRequest & WithGenerativeAISettings(GenerativeAISettingsT &&value)
CreateBotLocaleRequest & WithSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
virtual const char * GetServiceRequestName() const override
const SpeakerDiarizationSettings & GetSpeakerDiarizationSettings() const
CreateBotLocaleRequest & WithDescription(DescriptionT &&value)
const GenerativeAISettings & GetGenerativeAISettings() const
void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
const AudioFillerSettings & GetAudioFillerSettings() const
void SetGenerativeAISettings(GenerativeAISettingsT &&value)
CreateBotLocaleRequest & WithBotId(BotIdT &&value)
CreateBotLocaleRequest & WithVoiceSettings(VoiceSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String