AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
UpdateBotLocaleRequest.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 UpdateBotLocaleRequest() = 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 "UpdateBotLocale"; }
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 UpdateBotLocaleRequest& WithBotVersion(BotVersionT&& value) {
70 SetBotVersion(std::forward<BotVersionT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetLocaleId() const { return m_localeId; }
83 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
84 template <typename LocaleIdT = Aws::String>
85 void SetLocaleId(LocaleIdT&& value) {
86 m_localeIdHasBeenSet = true;
87 m_localeId = std::forward<LocaleIdT>(value);
88 }
89 template <typename LocaleIdT = Aws::String>
91 SetLocaleId(std::forward<LocaleIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
120 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
121 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
122 inline void SetNluIntentConfidenceThreshold(double value) {
123 m_nluIntentConfidenceThresholdHasBeenSet = true;
124 m_nluIntentConfidenceThreshold = value;
125 }
128 return *this;
129 }
131
133
137 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
138 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
139 template <typename VoiceSettingsT = VoiceSettings>
140 void SetVoiceSettings(VoiceSettingsT&& value) {
141 m_voiceSettingsHasBeenSet = true;
142 m_voiceSettings = std::forward<VoiceSettingsT>(value);
143 }
144 template <typename VoiceSettingsT = VoiceSettings>
145 UpdateBotLocaleRequest& WithVoiceSettings(VoiceSettingsT&& value) {
146 SetVoiceSettings(std::forward<VoiceSettingsT>(value));
147 return *this;
148 }
150
152
155 inline const UnifiedSpeechSettings& GetUnifiedSpeechSettings() const { return m_unifiedSpeechSettings; }
156 inline bool UnifiedSpeechSettingsHasBeenSet() const { return m_unifiedSpeechSettingsHasBeenSet; }
157 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
158 void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
159 m_unifiedSpeechSettingsHasBeenSet = true;
160 m_unifiedSpeechSettings = std::forward<UnifiedSpeechSettingsT>(value);
161 }
162 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
163 UpdateBotLocaleRequest& WithUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
164 SetUnifiedSpeechSettings(std::forward<UnifiedSpeechSettingsT>(value));
165 return *this;
166 }
168
170
175 inline const AudioFillerSettings& GetAudioFillerSettings() const { return m_audioFillerSettings; }
176 inline bool AudioFillerSettingsHasBeenSet() const { return m_audioFillerSettingsHasBeenSet; }
177 template <typename AudioFillerSettingsT = AudioFillerSettings>
178 void SetAudioFillerSettings(AudioFillerSettingsT&& value) {
179 m_audioFillerSettingsHasBeenSet = true;
180 m_audioFillerSettings = std::forward<AudioFillerSettingsT>(value);
181 }
182 template <typename AudioFillerSettingsT = AudioFillerSettings>
183 UpdateBotLocaleRequest& WithAudioFillerSettings(AudioFillerSettingsT&& value) {
184 SetAudioFillerSettings(std::forward<AudioFillerSettingsT>(value));
185 return *this;
186 }
188
190
193 inline const SpeechRecognitionSettings& GetSpeechRecognitionSettings() const { return m_speechRecognitionSettings; }
194 inline bool SpeechRecognitionSettingsHasBeenSet() const { return m_speechRecognitionSettingsHasBeenSet; }
195 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
196 void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
197 m_speechRecognitionSettingsHasBeenSet = true;
198 m_speechRecognitionSettings = std::forward<SpeechRecognitionSettingsT>(value);
199 }
200 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
201 UpdateBotLocaleRequest& WithSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
202 SetSpeechRecognitionSettings(std::forward<SpeechRecognitionSettingsT>(value));
203 return *this;
204 }
206
208
213 inline const GenerativeAISettings& GetGenerativeAISettings() const { return m_generativeAISettings; }
214 inline bool GenerativeAISettingsHasBeenSet() const { return m_generativeAISettingsHasBeenSet; }
215 template <typename GenerativeAISettingsT = GenerativeAISettings>
216 void SetGenerativeAISettings(GenerativeAISettingsT&& value) {
217 m_generativeAISettingsHasBeenSet = true;
218 m_generativeAISettings = std::forward<GenerativeAISettingsT>(value);
219 }
220 template <typename GenerativeAISettingsT = GenerativeAISettings>
221 UpdateBotLocaleRequest& WithGenerativeAISettings(GenerativeAISettingsT&& value) {
222 SetGenerativeAISettings(std::forward<GenerativeAISettingsT>(value));
223 return *this;
224 }
226
228
233 inline SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const { return m_speechDetectionSensitivity; }
234 inline bool SpeechDetectionSensitivityHasBeenSet() const { return m_speechDetectionSensitivityHasBeenSet; }
236 m_speechDetectionSensitivityHasBeenSet = true;
237 m_speechDetectionSensitivity = value;
238 }
241 return *this;
242 }
244
246
252 inline const SpeakerDiarizationSettings& GetSpeakerDiarizationSettings() const { return m_speakerDiarizationSettings; }
253 inline bool SpeakerDiarizationSettingsHasBeenSet() const { return m_speakerDiarizationSettingsHasBeenSet; }
254 template <typename SpeakerDiarizationSettingsT = SpeakerDiarizationSettings>
255 void SetSpeakerDiarizationSettings(SpeakerDiarizationSettingsT&& value) {
256 m_speakerDiarizationSettingsHasBeenSet = true;
257 m_speakerDiarizationSettings = std::forward<SpeakerDiarizationSettingsT>(value);
258 }
259 template <typename SpeakerDiarizationSettingsT = SpeakerDiarizationSettings>
260 UpdateBotLocaleRequest& WithSpeakerDiarizationSettings(SpeakerDiarizationSettingsT&& value) {
261 SetSpeakerDiarizationSettings(std::forward<SpeakerDiarizationSettingsT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_botId;
267
268 Aws::String m_botVersion;
269
270 Aws::String m_localeId;
271
272 Aws::String m_description;
273
274 double m_nluIntentConfidenceThreshold{0.0};
275
276 VoiceSettings m_voiceSettings;
277
278 UnifiedSpeechSettings m_unifiedSpeechSettings;
279
280 AudioFillerSettings m_audioFillerSettings;
281
282 SpeechRecognitionSettings m_speechRecognitionSettings;
283
284 GenerativeAISettings m_generativeAISettings;
285
287
288 SpeakerDiarizationSettings m_speakerDiarizationSettings;
289 bool m_botIdHasBeenSet = false;
290 bool m_botVersionHasBeenSet = false;
291 bool m_localeIdHasBeenSet = false;
292 bool m_descriptionHasBeenSet = false;
293 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
294 bool m_voiceSettingsHasBeenSet = false;
295 bool m_unifiedSpeechSettingsHasBeenSet = false;
296 bool m_audioFillerSettingsHasBeenSet = false;
297 bool m_speechRecognitionSettingsHasBeenSet = false;
298 bool m_generativeAISettingsHasBeenSet = false;
299 bool m_speechDetectionSensitivityHasBeenSet = false;
300 bool m_speakerDiarizationSettingsHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace LexModelsV2
305} // namespace Aws
UpdateBotLocaleRequest & WithUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
UpdateBotLocaleRequest & WithSpeakerDiarizationSettings(SpeakerDiarizationSettingsT &&value)
UpdateBotLocaleRequest & WithSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
void SetAudioFillerSettings(AudioFillerSettingsT &&value)
void SetGenerativeAISettings(GenerativeAISettingsT &&value)
const GenerativeAISettings & GetGenerativeAISettings() const
UpdateBotLocaleRequest & WithBotId(BotIdT &&value)
SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const
void SetSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
const UnifiedSpeechSettings & GetUnifiedSpeechSettings() const
void SetSpeakerDiarizationSettings(SpeakerDiarizationSettingsT &&value)
UpdateBotLocaleRequest & WithVoiceSettings(VoiceSettingsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
AWS_LEXMODELSV2_API UpdateBotLocaleRequest()=default
virtual const char * GetServiceRequestName() const override
const SpeakerDiarizationSettings & GetSpeakerDiarizationSettings() const
UpdateBotLocaleRequest & WithDescription(DescriptionT &&value)
UpdateBotLocaleRequest & WithAudioFillerSettings(AudioFillerSettingsT &&value)
UpdateBotLocaleRequest & WithGenerativeAISettings(GenerativeAISettingsT &&value)
UpdateBotLocaleRequest & WithBotVersion(BotVersionT &&value)
UpdateBotLocaleRequest & WithNluIntentConfidenceThreshold(double value)
void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
const AudioFillerSettings & GetAudioFillerSettings() const
UpdateBotLocaleRequest & WithLocaleId(LocaleIdT &&value)
void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
UpdateBotLocaleRequest & WithSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
const SpeechRecognitionSettings & GetSpeechRecognitionSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String