AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
BotLocaleImportSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/SpeechDetectionSensitivity.h>
10#include <aws/lexv2-models/model/SpeechRecognitionSettings.h>
11#include <aws/lexv2-models/model/UnifiedSpeechSettings.h>
12#include <aws/lexv2-models/model/VoiceSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2 {
24namespace Model {
25
33 public:
34 AWS_LEXMODELSV2_API BotLocaleImportSpecification() = default;
37 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetBotId() const { return m_botId; }
44 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
45 template <typename BotIdT = Aws::String>
46 void SetBotId(BotIdT&& value) {
47 m_botIdHasBeenSet = true;
48 m_botId = std::forward<BotIdT>(value);
49 }
50 template <typename BotIdT = Aws::String>
52 SetBotId(std::forward<BotIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
63 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
64 template <typename BotVersionT = Aws::String>
65 void SetBotVersion(BotVersionT&& value) {
66 m_botVersionHasBeenSet = true;
67 m_botVersion = std::forward<BotVersionT>(value);
68 }
69 template <typename BotVersionT = Aws::String>
71 SetBotVersion(std::forward<BotVersionT>(value));
72 return *this;
73 }
75
77
85 inline const Aws::String& GetLocaleId() const { return m_localeId; }
86 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
87 template <typename LocaleIdT = Aws::String>
88 void SetLocaleId(LocaleIdT&& value) {
89 m_localeIdHasBeenSet = true;
90 m_localeId = std::forward<LocaleIdT>(value);
91 }
92 template <typename LocaleIdT = Aws::String>
94 SetLocaleId(std::forward<LocaleIdT>(value));
95 return *this;
96 }
98
100
114 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
115 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
116 inline void SetNluIntentConfidenceThreshold(double value) {
117 m_nluIntentConfidenceThresholdHasBeenSet = true;
118 m_nluIntentConfidenceThreshold = value;
119 }
122 return *this;
123 }
125
127
128 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
129 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
130 template <typename VoiceSettingsT = VoiceSettings>
131 void SetVoiceSettings(VoiceSettingsT&& value) {
132 m_voiceSettingsHasBeenSet = true;
133 m_voiceSettings = std::forward<VoiceSettingsT>(value);
134 }
135 template <typename VoiceSettingsT = VoiceSettings>
137 SetVoiceSettings(std::forward<VoiceSettingsT>(value));
138 return *this;
139 }
141
143
147 inline const SpeechRecognitionSettings& GetSpeechRecognitionSettings() const { return m_speechRecognitionSettings; }
148 inline bool SpeechRecognitionSettingsHasBeenSet() const { return m_speechRecognitionSettingsHasBeenSet; }
149 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
150 void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
151 m_speechRecognitionSettingsHasBeenSet = true;
152 m_speechRecognitionSettings = std::forward<SpeechRecognitionSettingsT>(value);
153 }
154 template <typename SpeechRecognitionSettingsT = SpeechRecognitionSettings>
155 BotLocaleImportSpecification& WithSpeechRecognitionSettings(SpeechRecognitionSettingsT&& value) {
156 SetSpeechRecognitionSettings(std::forward<SpeechRecognitionSettingsT>(value));
157 return *this;
158 }
160
162
167 inline SpeechDetectionSensitivity GetSpeechDetectionSensitivity() const { return m_speechDetectionSensitivity; }
168 inline bool SpeechDetectionSensitivityHasBeenSet() const { return m_speechDetectionSensitivityHasBeenSet; }
170 m_speechDetectionSensitivityHasBeenSet = true;
171 m_speechDetectionSensitivity = value;
172 }
175 return *this;
176 }
178
180
184 inline const UnifiedSpeechSettings& GetUnifiedSpeechSettings() const { return m_unifiedSpeechSettings; }
185 inline bool UnifiedSpeechSettingsHasBeenSet() const { return m_unifiedSpeechSettingsHasBeenSet; }
186 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
187 void SetUnifiedSpeechSettings(UnifiedSpeechSettingsT&& value) {
188 m_unifiedSpeechSettingsHasBeenSet = true;
189 m_unifiedSpeechSettings = std::forward<UnifiedSpeechSettingsT>(value);
190 }
191 template <typename UnifiedSpeechSettingsT = UnifiedSpeechSettings>
193 SetUnifiedSpeechSettings(std::forward<UnifiedSpeechSettingsT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_botId;
199
200 Aws::String m_botVersion;
201
202 Aws::String m_localeId;
203
204 double m_nluIntentConfidenceThreshold{0.0};
205
206 VoiceSettings m_voiceSettings;
207
208 SpeechRecognitionSettings m_speechRecognitionSettings;
209
211
212 UnifiedSpeechSettings m_unifiedSpeechSettings;
213 bool m_botIdHasBeenSet = false;
214 bool m_botVersionHasBeenSet = false;
215 bool m_localeIdHasBeenSet = false;
216 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
217 bool m_voiceSettingsHasBeenSet = false;
218 bool m_speechRecognitionSettingsHasBeenSet = false;
219 bool m_speechDetectionSensitivityHasBeenSet = false;
220 bool m_unifiedSpeechSettingsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace LexModelsV2
225} // namespace Aws
BotLocaleImportSpecification & WithSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
BotLocaleImportSpecification & WithSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
BotLocaleImportSpecification & WithUnifiedSpeechSettings(UnifiedSpeechSettingsT &&value)
BotLocaleImportSpecification & WithBotId(BotIdT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API BotLocaleImportSpecification()=default
BotLocaleImportSpecification & WithBotVersion(BotVersionT &&value)
void SetSpeechDetectionSensitivity(SpeechDetectionSensitivity value)
AWS_LEXMODELSV2_API BotLocaleImportSpecification(Aws::Utils::Json::JsonView jsonValue)
void SetSpeechRecognitionSettings(SpeechRecognitionSettingsT &&value)
BotLocaleImportSpecification & WithVoiceSettings(VoiceSettingsT &&value)
BotLocaleImportSpecification & WithNluIntentConfidenceThreshold(double value)
AWS_LEXMODELSV2_API BotLocaleImportSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
BotLocaleImportSpecification & WithLocaleId(LocaleIdT &&value)
const SpeechRecognitionSettings & GetSpeechRecognitionSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue