AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/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 CreateBotLocaleRequest() = 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 "CreateBotLocale"; }
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 CreateBotLocaleRequest& WithBotVersion(BotVersionT&& value) {
68 SetBotVersion(std::forward<BotVersionT>(value));
69 return *this;
70 }
72
74
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
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
128 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
129 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
130 inline void SetNluIntentConfidenceThreshold(double value) {
131 m_nluIntentConfidenceThresholdHasBeenSet = true;
132 m_nluIntentConfidenceThreshold = value;
133 }
136 return *this;
137 }
139
141
145 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
146 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
147 template <typename VoiceSettingsT = VoiceSettings>
148 void SetVoiceSettings(VoiceSettingsT&& value) {
149 m_voiceSettingsHasBeenSet = true;
150 m_voiceSettings = std::forward<VoiceSettingsT>(value);
151 }
152 template <typename VoiceSettingsT = VoiceSettings>
153 CreateBotLocaleRequest& WithVoiceSettings(VoiceSettingsT&& value) {
154 SetVoiceSettings(std::forward<VoiceSettingsT>(value));
155 return *this;
156 }
158
160
163 inline const UnifiedSpeechSettings& GetUnifiedSpeechSettings() const { return m_unifiedSpeechSettings; }
164 inline bool UnifiedSpeechSettingsHasBeenSet() const { return m_unifiedSpeechSettingsHasBeenSet; }
165 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
166 void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
167 m_unifiedSpeechSettingsHasBeenSet = true;
168 m_unifiedSpeechSettings = std::forward<UnifiedSpeechSettingsT>(value);
169 }
170 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
171 CreateBotLocaleRequest& WithUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
172 SetUnifiedSpeechSettings(std::forward<UnifiedSpeechSettingsT>(value));
173 return *this;
174 }
176
178
181 inline const SpeechRecognitionSettings& GetSpeechRecognitionSettings() const { return m_speechRecognitionSettings; }
182 inline bool SpeechRecognitionSettingsHasBeenSet() const { return m_speechRecognitionSettingsHasBeenSet; }
183 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
184 void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
185 m_speechRecognitionSettingsHasBeenSet = true;
186 m_speechRecognitionSettings = std::forward<SpeechRecognitionSettingsT>(value);
187 }
188 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
189 CreateBotLocaleRequest& WithSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
190 SetSpeechRecognitionSettings(std::forward<SpeechRecognitionSettingsT>(value));
191 return *this;
192 }
194
196
197 inline const GenerativeAISettings& GetGenerativeAISettings() const { return m_generativeAISettings; }
198 inline bool GenerativeAISettingsHasBeenSet() const { return m_generativeAISettingsHasBeenSet; }
199 template <typename GenerativeAISettingsT = GenerativeAISettings>
200 void SetGenerativeAISettings(GenerativeAISettingsT&& value) {
201 m_generativeAISettingsHasBeenSet = true;
202 m_generativeAISettings = std::forward<GenerativeAISettingsT>(value);
203 }
204 template <typename GenerativeAISettingsT = GenerativeAISettings>
205 CreateBotLocaleRequest& WithGenerativeAISettings(GenerativeAISettingsT&& value) {
206 SetGenerativeAISettings(std::forward<GenerativeAISettingsT>(value));
207 return *this;
208 }
210
212
217 inline SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const { return m_speechDetectionSensitivity; }
218 inline bool SpeechDetectionSensitivityHasBeenSet() const { return m_speechDetectionSensitivityHasBeenSet; }
220 m_speechDetectionSensitivityHasBeenSet = true;
221 m_speechDetectionSensitivity = value;
222 }
225 return *this;
226 }
228 private:
229 Aws::String m_botId;
230
231 Aws::String m_botVersion;
232
233 Aws::String m_localeId;
234
235 Aws::String m_description;
236
237 double m_nluIntentConfidenceThreshold{0.0};
238
239 VoiceSettings m_voiceSettings;
240
241 UnifiedSpeechSettings m_unifiedSpeechSettings;
242
243 SpeechRecognitionSettings m_speechRecognitionSettings;
244
245 GenerativeAISettings m_generativeAISettings;
246
248 bool m_botIdHasBeenSet = false;
249 bool m_botVersionHasBeenSet = false;
250 bool m_localeIdHasBeenSet = false;
251 bool m_descriptionHasBeenSet = false;
252 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
253 bool m_voiceSettingsHasBeenSet = false;
254 bool m_unifiedSpeechSettingsHasBeenSet = false;
255 bool m_speechRecognitionSettingsHasBeenSet = false;
256 bool m_generativeAISettingsHasBeenSet = false;
257 bool m_speechDetectionSensitivityHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace LexModelsV2
262} // namespace Aws
CreateBotLocaleRequest & WithSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
CreateBotLocaleRequest & WithLocaleId(LocaleIdT &&value)
AWS_LEXMODELSV2_API CreateBotLocaleRequest()=default
CreateBotLocaleRequest & WithNluIntentConfidenceThreshold(double value)
void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const
CreateBotLocaleRequest & WithUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
const UnifiedSpeechSettings & GetUnifiedSpeechSettings() const
CreateBotLocaleRequest & WithBotVersion(BotVersionT &&value)
void SetSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
const SpeechRecognitionSettings & GetSpeechRecognitionSettings() const
CreateBotLocaleRequest & WithGenerativeAISettings(GenerativeAISettingsT &&value)
CreateBotLocaleRequest & WithSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
virtual const char * GetServiceRequestName() const override
CreateBotLocaleRequest & WithDescription(DescriptionT &&value)
const GenerativeAISettings & GetGenerativeAISettings() const
void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetGenerativeAISettings(GenerativeAISettingsT &&value)
CreateBotLocaleRequest & WithBotId(BotIdT &&value)
CreateBotLocaleRequest & WithVoiceSettings(VoiceSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String