AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateSlotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/MultipleValuesSetting.h>
12#include <aws/lexv2-models/model/ObfuscationSetting.h>
13#include <aws/lexv2-models/model/SlotValueElicitationSetting.h>
14#include <aws/lexv2-models/model/SubSlotSetting.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LexModelsV2 {
28namespace Model {
30 public:
31 AWS_LEXMODELSV2_API CreateSlotResult() = default;
34
36
40 inline const Aws::String& GetSlotId() const { return m_slotId; }
41 template <typename SlotIdT = Aws::String>
42 void SetSlotId(SlotIdT&& value) {
43 m_slotIdHasBeenSet = true;
44 m_slotId = std::forward<SlotIdT>(value);
45 }
46 template <typename SlotIdT = Aws::String>
47 CreateSlotResult& WithSlotId(SlotIdT&& value) {
48 SetSlotId(std::forward<SlotIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSlotName() const { return m_slotName; }
58 template <typename SlotNameT = Aws::String>
59 void SetSlotName(SlotNameT&& value) {
60 m_slotNameHasBeenSet = true;
61 m_slotName = std::forward<SlotNameT>(value);
62 }
63 template <typename SlotNameT = Aws::String>
64 CreateSlotResult& WithSlotName(SlotNameT&& value) {
65 SetSlotName(std::forward<SlotNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 CreateSlotResult& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
92 template <typename SlotTypeIdT = Aws::String>
93 void SetSlotTypeId(SlotTypeIdT&& value) {
94 m_slotTypeIdHasBeenSet = true;
95 m_slotTypeId = std::forward<SlotTypeIdT>(value);
96 }
97 template <typename SlotTypeIdT = Aws::String>
98 CreateSlotResult& WithSlotTypeId(SlotTypeIdT&& value) {
99 SetSlotTypeId(std::forward<SlotTypeIdT>(value));
100 return *this;
101 }
103
105
108 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
109 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
110 void SetValueElicitationSetting(ValueElicitationSettingT&& value) {
111 m_valueElicitationSettingHasBeenSet = true;
112 m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value);
113 }
114 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
115 CreateSlotResult& WithValueElicitationSetting(ValueElicitationSettingT&& value) {
116 SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value));
117 return *this;
118 }
120
122
126 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
127 template <typename ObfuscationSettingT = ObfuscationSetting>
128 void SetObfuscationSetting(ObfuscationSettingT&& value) {
129 m_obfuscationSettingHasBeenSet = true;
130 m_obfuscationSetting = std::forward<ObfuscationSettingT>(value);
131 }
132 template <typename ObfuscationSettingT = ObfuscationSetting>
133 CreateSlotResult& WithObfuscationSetting(ObfuscationSettingT&& value) {
134 SetObfuscationSetting(std::forward<ObfuscationSettingT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetBotId() const { return m_botId; }
144 template <typename BotIdT = Aws::String>
145 void SetBotId(BotIdT&& value) {
146 m_botIdHasBeenSet = true;
147 m_botId = std::forward<BotIdT>(value);
148 }
149 template <typename BotIdT = Aws::String>
150 CreateSlotResult& WithBotId(BotIdT&& value) {
151 SetBotId(std::forward<BotIdT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
161 template <typename BotVersionT = Aws::String>
162 void SetBotVersion(BotVersionT&& value) {
163 m_botVersionHasBeenSet = true;
164 m_botVersion = std::forward<BotVersionT>(value);
165 }
166 template <typename BotVersionT = Aws::String>
167 CreateSlotResult& WithBotVersion(BotVersionT&& value) {
168 SetBotVersion(std::forward<BotVersionT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetLocaleId() const { return m_localeId; }
178 template <typename LocaleIdT = Aws::String>
179 void SetLocaleId(LocaleIdT&& value) {
180 m_localeIdHasBeenSet = true;
181 m_localeId = std::forward<LocaleIdT>(value);
182 }
183 template <typename LocaleIdT = Aws::String>
184 CreateSlotResult& WithLocaleId(LocaleIdT&& value) {
185 SetLocaleId(std::forward<LocaleIdT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetIntentId() const { return m_intentId; }
195 template <typename IntentIdT = Aws::String>
196 void SetIntentId(IntentIdT&& value) {
197 m_intentIdHasBeenSet = true;
198 m_intentId = std::forward<IntentIdT>(value);
199 }
200 template <typename IntentIdT = Aws::String>
201 CreateSlotResult& WithIntentId(IntentIdT&& value) {
202 SetIntentId(std::forward<IntentIdT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
212 template <typename CreationDateTimeT = Aws::Utils::DateTime>
213 void SetCreationDateTime(CreationDateTimeT&& value) {
214 m_creationDateTimeHasBeenSet = true;
215 m_creationDateTime = std::forward<CreationDateTimeT>(value);
216 }
217 template <typename CreationDateTimeT = Aws::Utils::DateTime>
218 CreateSlotResult& WithCreationDateTime(CreationDateTimeT&& value) {
219 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
220 return *this;
221 }
223
225
228 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
229 template <typename MultipleValuesSettingT = MultipleValuesSetting>
230 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) {
231 m_multipleValuesSettingHasBeenSet = true;
232 m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value);
233 }
234 template <typename MultipleValuesSettingT = MultipleValuesSetting>
235 CreateSlotResult& WithMultipleValuesSetting(MultipleValuesSettingT&& value) {
236 SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value));
237 return *this;
238 }
240
242
246 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
247 template <typename SubSlotSettingT = SubSlotSetting>
248 void SetSubSlotSetting(SubSlotSettingT&& value) {
249 m_subSlotSettingHasBeenSet = true;
250 m_subSlotSetting = std::forward<SubSlotSettingT>(value);
251 }
252 template <typename SubSlotSettingT = SubSlotSetting>
253 CreateSlotResult& WithSubSlotSetting(SubSlotSettingT&& value) {
254 SetSubSlotSetting(std::forward<SubSlotSettingT>(value));
255 return *this;
256 }
258
260
261 inline const Aws::String& GetRequestId() const { return m_requestId; }
262 template <typename RequestIdT = Aws::String>
263 void SetRequestId(RequestIdT&& value) {
264 m_requestIdHasBeenSet = true;
265 m_requestId = std::forward<RequestIdT>(value);
266 }
267 template <typename RequestIdT = Aws::String>
268 CreateSlotResult& WithRequestId(RequestIdT&& value) {
269 SetRequestId(std::forward<RequestIdT>(value));
270 return *this;
271 }
273 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
274
275 private:
276 Aws::String m_slotId;
277
278 Aws::String m_slotName;
279
280 Aws::String m_description;
281
282 Aws::String m_slotTypeId;
283
284 SlotValueElicitationSetting m_valueElicitationSetting;
285
286 ObfuscationSetting m_obfuscationSetting;
287
288 Aws::String m_botId;
289
290 Aws::String m_botVersion;
291
292 Aws::String m_localeId;
293
294 Aws::String m_intentId;
295
296 Aws::Utils::DateTime m_creationDateTime{};
297
298 MultipleValuesSetting m_multipleValuesSetting;
299
300 SubSlotSetting m_subSlotSetting;
301
302 Aws::String m_requestId;
303 Aws::Http::HttpResponseCode m_HttpResponseCode;
304 bool m_slotIdHasBeenSet = false;
305 bool m_slotNameHasBeenSet = false;
306 bool m_descriptionHasBeenSet = false;
307 bool m_slotTypeIdHasBeenSet = false;
308 bool m_valueElicitationSettingHasBeenSet = false;
309 bool m_obfuscationSettingHasBeenSet = false;
310 bool m_botIdHasBeenSet = false;
311 bool m_botVersionHasBeenSet = false;
312 bool m_localeIdHasBeenSet = false;
313 bool m_intentIdHasBeenSet = false;
314 bool m_creationDateTimeHasBeenSet = false;
315 bool m_multipleValuesSettingHasBeenSet = false;
316 bool m_subSlotSettingHasBeenSet = false;
317 bool m_requestIdHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace LexModelsV2
322} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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