AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateSlotResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/MultipleValuesSetting.h>
11#include <aws/lexv2-models/model/ObfuscationSetting.h>
12#include <aws/lexv2-models/model/SlotValueElicitationSetting.h>
13#include <aws/lexv2-models/model/SubSlotSetting.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2 {
27namespace Model {
29 public:
30 AWS_LEXMODELSV2_API CreateSlotResult() = default;
33
35
39 inline const Aws::String& GetSlotId() const { return m_slotId; }
40 template <typename SlotIdT = Aws::String>
41 void SetSlotId(SlotIdT&& value) {
42 m_slotIdHasBeenSet = true;
43 m_slotId = std::forward<SlotIdT>(value);
44 }
45 template <typename SlotIdT = Aws::String>
46 CreateSlotResult& WithSlotId(SlotIdT&& value) {
47 SetSlotId(std::forward<SlotIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetSlotName() const { return m_slotName; }
57 template <typename SlotNameT = Aws::String>
58 void SetSlotName(SlotNameT&& value) {
59 m_slotNameHasBeenSet = true;
60 m_slotName = std::forward<SlotNameT>(value);
61 }
62 template <typename SlotNameT = Aws::String>
63 CreateSlotResult& WithSlotName(SlotNameT&& value) {
64 SetSlotName(std::forward<SlotNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 CreateSlotResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
91 template <typename SlotTypeIdT = Aws::String>
92 void SetSlotTypeId(SlotTypeIdT&& value) {
93 m_slotTypeIdHasBeenSet = true;
94 m_slotTypeId = std::forward<SlotTypeIdT>(value);
95 }
96 template <typename SlotTypeIdT = Aws::String>
97 CreateSlotResult& WithSlotTypeId(SlotTypeIdT&& value) {
98 SetSlotTypeId(std::forward<SlotTypeIdT>(value));
99 return *this;
100 }
102
104
107 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
108 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
109 void SetValueElicitationSetting(ValueElicitationSettingT&& value) {
110 m_valueElicitationSettingHasBeenSet = true;
111 m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value);
112 }
113 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
114 CreateSlotResult& WithValueElicitationSetting(ValueElicitationSettingT&& value) {
115 SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value));
116 return *this;
117 }
119
121
125 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
126 template <typename ObfuscationSettingT = ObfuscationSetting>
127 void SetObfuscationSetting(ObfuscationSettingT&& value) {
128 m_obfuscationSettingHasBeenSet = true;
129 m_obfuscationSetting = std::forward<ObfuscationSettingT>(value);
130 }
131 template <typename ObfuscationSettingT = ObfuscationSetting>
132 CreateSlotResult& WithObfuscationSetting(ObfuscationSettingT&& value) {
133 SetObfuscationSetting(std::forward<ObfuscationSettingT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetBotId() const { return m_botId; }
143 template <typename BotIdT = Aws::String>
144 void SetBotId(BotIdT&& value) {
145 m_botIdHasBeenSet = true;
146 m_botId = std::forward<BotIdT>(value);
147 }
148 template <typename BotIdT = Aws::String>
149 CreateSlotResult& WithBotId(BotIdT&& value) {
150 SetBotId(std::forward<BotIdT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
160 template <typename BotVersionT = Aws::String>
161 void SetBotVersion(BotVersionT&& value) {
162 m_botVersionHasBeenSet = true;
163 m_botVersion = std::forward<BotVersionT>(value);
164 }
165 template <typename BotVersionT = Aws::String>
166 CreateSlotResult& WithBotVersion(BotVersionT&& value) {
167 SetBotVersion(std::forward<BotVersionT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetLocaleId() const { return m_localeId; }
177 template <typename LocaleIdT = Aws::String>
178 void SetLocaleId(LocaleIdT&& value) {
179 m_localeIdHasBeenSet = true;
180 m_localeId = std::forward<LocaleIdT>(value);
181 }
182 template <typename LocaleIdT = Aws::String>
183 CreateSlotResult& WithLocaleId(LocaleIdT&& value) {
184 SetLocaleId(std::forward<LocaleIdT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetIntentId() const { return m_intentId; }
194 template <typename IntentIdT = Aws::String>
195 void SetIntentId(IntentIdT&& value) {
196 m_intentIdHasBeenSet = true;
197 m_intentId = std::forward<IntentIdT>(value);
198 }
199 template <typename IntentIdT = Aws::String>
200 CreateSlotResult& WithIntentId(IntentIdT&& value) {
201 SetIntentId(std::forward<IntentIdT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
211 template <typename CreationDateTimeT = Aws::Utils::DateTime>
212 void SetCreationDateTime(CreationDateTimeT&& value) {
213 m_creationDateTimeHasBeenSet = true;
214 m_creationDateTime = std::forward<CreationDateTimeT>(value);
215 }
216 template <typename CreationDateTimeT = Aws::Utils::DateTime>
217 CreateSlotResult& WithCreationDateTime(CreationDateTimeT&& value) {
218 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
219 return *this;
220 }
222
224
227 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
228 template <typename MultipleValuesSettingT = MultipleValuesSetting>
229 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) {
230 m_multipleValuesSettingHasBeenSet = true;
231 m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value);
232 }
233 template <typename MultipleValuesSettingT = MultipleValuesSetting>
234 CreateSlotResult& WithMultipleValuesSetting(MultipleValuesSettingT&& value) {
235 SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value));
236 return *this;
237 }
239
241
245 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
246 template <typename SubSlotSettingT = SubSlotSetting>
247 void SetSubSlotSetting(SubSlotSettingT&& value) {
248 m_subSlotSettingHasBeenSet = true;
249 m_subSlotSetting = std::forward<SubSlotSettingT>(value);
250 }
251 template <typename SubSlotSettingT = SubSlotSetting>
252 CreateSlotResult& WithSubSlotSetting(SubSlotSettingT&& value) {
253 SetSubSlotSetting(std::forward<SubSlotSettingT>(value));
254 return *this;
255 }
257
259
260 inline const Aws::String& GetRequestId() const { return m_requestId; }
261 template <typename RequestIdT = Aws::String>
262 void SetRequestId(RequestIdT&& value) {
263 m_requestIdHasBeenSet = true;
264 m_requestId = std::forward<RequestIdT>(value);
265 }
266 template <typename RequestIdT = Aws::String>
267 CreateSlotResult& WithRequestId(RequestIdT&& value) {
268 SetRequestId(std::forward<RequestIdT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_slotId;
274
275 Aws::String m_slotName;
276
277 Aws::String m_description;
278
279 Aws::String m_slotTypeId;
280
281 SlotValueElicitationSetting m_valueElicitationSetting;
282
283 ObfuscationSetting m_obfuscationSetting;
284
285 Aws::String m_botId;
286
287 Aws::String m_botVersion;
288
289 Aws::String m_localeId;
290
291 Aws::String m_intentId;
292
293 Aws::Utils::DateTime m_creationDateTime{};
294
295 MultipleValuesSetting m_multipleValuesSetting;
296
297 SubSlotSetting m_subSlotSetting;
298
299 Aws::String m_requestId;
300 bool m_slotIdHasBeenSet = false;
301 bool m_slotNameHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_slotTypeIdHasBeenSet = false;
304 bool m_valueElicitationSettingHasBeenSet = false;
305 bool m_obfuscationSettingHasBeenSet = false;
306 bool m_botIdHasBeenSet = false;
307 bool m_botVersionHasBeenSet = false;
308 bool m_localeIdHasBeenSet = false;
309 bool m_intentIdHasBeenSet = false;
310 bool m_creationDateTimeHasBeenSet = false;
311 bool m_multipleValuesSettingHasBeenSet = false;
312 bool m_subSlotSettingHasBeenSet = false;
313 bool m_requestIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace LexModelsV2
318} // namespace Aws
CreateSlotResult & WithSlotTypeId(SlotTypeIdT &&value)
const SlotValueElicitationSetting & GetValueElicitationSetting() const
const Aws::String & GetBotVersion() const
CreateSlotResult & WithRequestId(RequestIdT &&value)
CreateSlotResult & WithSubSlotSetting(SubSlotSettingT &&value)
const Aws::String & GetSlotTypeId() const
AWS_LEXMODELSV2_API CreateSlotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetDescription() const
const SubSlotSetting & GetSubSlotSetting() const
CreateSlotResult & WithValueElicitationSetting(ValueElicitationSettingT &&value)
CreateSlotResult & WithBotId(BotIdT &&value)
void SetSubSlotSetting(SubSlotSettingT &&value)
AWS_LEXMODELSV2_API CreateSlotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMultipleValuesSetting(MultipleValuesSettingT &&value)
AWS_LEXMODELSV2_API CreateSlotResult()=default
void SetDescription(DescriptionT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
CreateSlotResult & WithSlotId(SlotIdT &&value)
const Aws::String & GetSlotName() const
CreateSlotResult & WithBotVersion(BotVersionT &&value)
CreateSlotResult & WithObfuscationSetting(ObfuscationSettingT &&value)
const ObfuscationSetting & GetObfuscationSetting() const
const MultipleValuesSetting & GetMultipleValuesSetting() const
void SetObfuscationSetting(ObfuscationSettingT &&value)
CreateSlotResult & WithMultipleValuesSetting(MultipleValuesSettingT &&value)
CreateSlotResult & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
CreateSlotResult & WithDescription(DescriptionT &&value)
CreateSlotResult & WithIntentId(IntentIdT &&value)
CreateSlotResult & WithSlotName(SlotNameT &&value)
void SetValueElicitationSetting(ValueElicitationSettingT &&value)
CreateSlotResult & WithLocaleId(LocaleIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue