AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/GenerativeAISettings.h>
11#include <aws/lexv2-models/model/SpeechDetectionSensitivity.h>
12#include <aws/lexv2-models/model/SpeechRecognitionSettings.h>
13#include <aws/lexv2-models/model/UnifiedSpeechSettings.h>
14#include <aws/lexv2-models/model/VoiceSettings.h>
15
16#include <utility>
17
18namespace Aws {
19namespace LexModelsV2 {
20namespace Model {
21
25 public:
26 AWS_LEXMODELSV2_API UpdateBotLocaleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateBotLocale"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetBotId() const { return m_botId; }
41 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
42 template <typename BotIdT = Aws::String>
43 void SetBotId(BotIdT&& value) {
44 m_botIdHasBeenSet = true;
45 m_botId = std::forward<BotIdT>(value);
46 }
47 template <typename BotIdT = Aws::String>
49 SetBotId(std::forward<BotIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
60 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
61 template <typename BotVersionT = Aws::String>
62 void SetBotVersion(BotVersionT&& value) {
63 m_botVersionHasBeenSet = true;
64 m_botVersion = std::forward<BotVersionT>(value);
65 }
66 template <typename BotVersionT = Aws::String>
67 UpdateBotLocaleRequest& WithBotVersion(BotVersionT&& value) {
68 SetBotVersion(std::forward<BotVersionT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetLocaleId() const { return m_localeId; }
81 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
82 template <typename LocaleIdT = Aws::String>
83 void SetLocaleId(LocaleIdT&& value) {
84 m_localeIdHasBeenSet = true;
85 m_localeId = std::forward<LocaleIdT>(value);
86 }
87 template <typename LocaleIdT = Aws::String>
89 SetLocaleId(std::forward<LocaleIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
118 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
119 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
120 inline void SetNluIntentConfidenceThreshold(double value) {
121 m_nluIntentConfidenceThresholdHasBeenSet = true;
122 m_nluIntentConfidenceThreshold = value;
123 }
126 return *this;
127 }
129
131
135 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
136 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
137 template <typename VoiceSettingsT = VoiceSettings>
138 void SetVoiceSettings(VoiceSettingsT&& value) {
139 m_voiceSettingsHasBeenSet = true;
140 m_voiceSettings = std::forward<VoiceSettingsT>(value);
141 }
142 template <typename VoiceSettingsT = VoiceSettings>
143 UpdateBotLocaleRequest& WithVoiceSettings(VoiceSettingsT&& value) {
144 SetVoiceSettings(std::forward<VoiceSettingsT>(value));
145 return *this;
146 }
148
150
153 inline const UnifiedSpeechSettings& GetUnifiedSpeechSettings() const { return m_unifiedSpeechSettings; }
154 inline bool UnifiedSpeechSettingsHasBeenSet() const { return m_unifiedSpeechSettingsHasBeenSet; }
155 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
156 void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
157 m_unifiedSpeechSettingsHasBeenSet = true;
158 m_unifiedSpeechSettings = std::forward<UnifiedSpeechSettingsT>(value);
159 }
160 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
161 UpdateBotLocaleRequest& WithUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
162 SetUnifiedSpeechSettings(std::forward<UnifiedSpeechSettingsT>(value));
163 return *this;
164 }
166
168
171 inline const SpeechRecognitionSettings& GetSpeechRecognitionSettings() const { return m_speechRecognitionSettings; }
172 inline bool SpeechRecognitionSettingsHasBeenSet() const { return m_speechRecognitionSettingsHasBeenSet; }
173 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
174 void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
175 m_speechRecognitionSettingsHasBeenSet = true;
176 m_speechRecognitionSettings = std::forward<SpeechRecognitionSettingsT>(value);
177 }
178 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
179 UpdateBotLocaleRequest& WithSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
180 SetSpeechRecognitionSettings(std::forward<SpeechRecognitionSettingsT>(value));
181 return *this;
182 }
184
186
191 inline const GenerativeAISettings& GetGenerativeAISettings() const { return m_generativeAISettings; }
192 inline bool GenerativeAISettingsHasBeenSet() const { return m_generativeAISettingsHasBeenSet; }
193 template <typename GenerativeAISettingsT = GenerativeAISettings>
194 void SetGenerativeAISettings(GenerativeAISettingsT&& value) {
195 m_generativeAISettingsHasBeenSet = true;
196 m_generativeAISettings = std::forward<GenerativeAISettingsT>(value);
197 }
198 template <typename GenerativeAISettingsT = GenerativeAISettings>
199 UpdateBotLocaleRequest& WithGenerativeAISettings(GenerativeAISettingsT&& value) {
200 SetGenerativeAISettings(std::forward<GenerativeAISettingsT>(value));
201 return *this;
202 }
204
206
211 inline SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const { return m_speechDetectionSensitivity; }
212 inline bool SpeechDetectionSensitivityHasBeenSet() const { return m_speechDetectionSensitivityHasBeenSet; }
214 m_speechDetectionSensitivityHasBeenSet = true;
215 m_speechDetectionSensitivity = value;
216 }
219 return *this;
220 }
222 private:
223 Aws::String m_botId;
224
225 Aws::String m_botVersion;
226
227 Aws::String m_localeId;
228
229 Aws::String m_description;
230
231 double m_nluIntentConfidenceThreshold{0.0};
232
233 VoiceSettings m_voiceSettings;
234
235 UnifiedSpeechSettings m_unifiedSpeechSettings;
236
237 SpeechRecognitionSettings m_speechRecognitionSettings;
238
239 GenerativeAISettings m_generativeAISettings;
240
242 bool m_botIdHasBeenSet = false;
243 bool m_botVersionHasBeenSet = false;
244 bool m_localeIdHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
247 bool m_voiceSettingsHasBeenSet = false;
248 bool m_unifiedSpeechSettingsHasBeenSet = false;
249 bool m_speechRecognitionSettingsHasBeenSet = false;
250 bool m_generativeAISettingsHasBeenSet = false;
251 bool m_speechDetectionSensitivityHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace LexModelsV2
256} // namespace Aws
UpdateBotLocaleRequest & WithUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
UpdateBotLocaleRequest & WithSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
void SetGenerativeAISettings(GenerativeAISettingsT &&value)
const GenerativeAISettings & GetGenerativeAISettings() const
UpdateBotLocaleRequest & WithBotId(BotIdT &&value)
SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const
void SetSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
const UnifiedSpeechSettings & GetUnifiedSpeechSettings() const
UpdateBotLocaleRequest & WithVoiceSettings(VoiceSettingsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
AWS_LEXMODELSV2_API UpdateBotLocaleRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateBotLocaleRequest & WithDescription(DescriptionT &&value)
UpdateBotLocaleRequest & WithGenerativeAISettings(GenerativeAISettingsT &&value)
UpdateBotLocaleRequest & WithBotVersion(BotVersionT &&value)
UpdateBotLocaleRequest & WithNluIntentConfidenceThreshold(double value)
void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
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