AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSlotRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/SlotValueElicitationSetting.h>
11#include <aws/lexv2-models/model/ObfuscationSetting.h>
12#include <aws/lexv2-models/model/MultipleValuesSetting.h>
13#include <aws/lexv2-models/model/SubSlotSetting.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexModelsV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXMODELSV2_API UpdateSlotRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateSlot"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetSlotId() const{ return m_slotId; }
44 inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
45 inline void SetSlotId(const Aws::String& value) { m_slotIdHasBeenSet = true; m_slotId = value; }
46 inline void SetSlotId(Aws::String&& value) { m_slotIdHasBeenSet = true; m_slotId = std::move(value); }
47 inline void SetSlotId(const char* value) { m_slotIdHasBeenSet = true; m_slotId.assign(value); }
48 inline UpdateSlotRequest& WithSlotId(const Aws::String& value) { SetSlotId(value); return *this;}
49 inline UpdateSlotRequest& WithSlotId(Aws::String&& value) { SetSlotId(std::move(value)); return *this;}
50 inline UpdateSlotRequest& WithSlotId(const char* value) { SetSlotId(value); return *this;}
52
54
57 inline const Aws::String& GetSlotName() const{ return m_slotName; }
58 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
59 inline void SetSlotName(const Aws::String& value) { m_slotNameHasBeenSet = true; m_slotName = value; }
60 inline void SetSlotName(Aws::String&& value) { m_slotNameHasBeenSet = true; m_slotName = std::move(value); }
61 inline void SetSlotName(const char* value) { m_slotNameHasBeenSet = true; m_slotName.assign(value); }
62 inline UpdateSlotRequest& WithSlotName(const Aws::String& value) { SetSlotName(value); return *this;}
63 inline UpdateSlotRequest& WithSlotName(Aws::String&& value) { SetSlotName(std::move(value)); return *this;}
64 inline UpdateSlotRequest& WithSlotName(const char* value) { SetSlotName(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline UpdateSlotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline UpdateSlotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline UpdateSlotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline const Aws::String& GetSlotTypeId() const{ return m_slotTypeId; }
86 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
87 inline void SetSlotTypeId(const Aws::String& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = value; }
88 inline void SetSlotTypeId(Aws::String&& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = std::move(value); }
89 inline void SetSlotTypeId(const char* value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId.assign(value); }
90 inline UpdateSlotRequest& WithSlotTypeId(const Aws::String& value) { SetSlotTypeId(value); return *this;}
91 inline UpdateSlotRequest& WithSlotTypeId(Aws::String&& value) { SetSlotTypeId(std::move(value)); return *this;}
92 inline UpdateSlotRequest& WithSlotTypeId(const char* value) { SetSlotTypeId(value); return *this;}
94
96
100 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const{ return m_valueElicitationSetting; }
101 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
102 inline void SetValueElicitationSetting(const SlotValueElicitationSetting& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = value; }
103 inline void SetValueElicitationSetting(SlotValueElicitationSetting&& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = std::move(value); }
107
109
113 inline const ObfuscationSetting& GetObfuscationSetting() const{ return m_obfuscationSetting; }
114 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
115 inline void SetObfuscationSetting(const ObfuscationSetting& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = value; }
116 inline void SetObfuscationSetting(ObfuscationSetting&& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = std::move(value); }
118 inline UpdateSlotRequest& WithObfuscationSetting(ObfuscationSetting&& value) { SetObfuscationSetting(std::move(value)); return *this;}
120
122
125 inline const Aws::String& GetBotId() const{ return m_botId; }
126 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
127 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
128 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
129 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
130 inline UpdateSlotRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
131 inline UpdateSlotRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
132 inline UpdateSlotRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
134
136
140 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
141 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
142 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
143 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
144 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
145 inline UpdateSlotRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
146 inline UpdateSlotRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
147 inline UpdateSlotRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
149
151
157 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
158 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
159 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
160 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
161 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
162 inline UpdateSlotRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
163 inline UpdateSlotRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
164 inline UpdateSlotRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
166
168
171 inline const Aws::String& GetIntentId() const{ return m_intentId; }
172 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
173 inline void SetIntentId(const Aws::String& value) { m_intentIdHasBeenSet = true; m_intentId = value; }
174 inline void SetIntentId(Aws::String&& value) { m_intentIdHasBeenSet = true; m_intentId = std::move(value); }
175 inline void SetIntentId(const char* value) { m_intentIdHasBeenSet = true; m_intentId.assign(value); }
176 inline UpdateSlotRequest& WithIntentId(const Aws::String& value) { SetIntentId(value); return *this;}
177 inline UpdateSlotRequest& WithIntentId(Aws::String&& value) { SetIntentId(std::move(value)); return *this;}
178 inline UpdateSlotRequest& WithIntentId(const char* value) { SetIntentId(value); return *this;}
180
182
190 inline const MultipleValuesSetting& GetMultipleValuesSetting() const{ return m_multipleValuesSetting; }
191 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
192 inline void SetMultipleValuesSetting(const MultipleValuesSetting& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = value; }
193 inline void SetMultipleValuesSetting(MultipleValuesSetting&& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = std::move(value); }
197
199
203 inline const SubSlotSetting& GetSubSlotSetting() const{ return m_subSlotSetting; }
204 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
205 inline void SetSubSlotSetting(const SubSlotSetting& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = value; }
206 inline void SetSubSlotSetting(SubSlotSetting&& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = std::move(value); }
207 inline UpdateSlotRequest& WithSubSlotSetting(const SubSlotSetting& value) { SetSubSlotSetting(value); return *this;}
208 inline UpdateSlotRequest& WithSubSlotSetting(SubSlotSetting&& value) { SetSubSlotSetting(std::move(value)); return *this;}
210 private:
211
212 Aws::String m_slotId;
213 bool m_slotIdHasBeenSet = false;
214
215 Aws::String m_slotName;
216 bool m_slotNameHasBeenSet = false;
217
218 Aws::String m_description;
219 bool m_descriptionHasBeenSet = false;
220
221 Aws::String m_slotTypeId;
222 bool m_slotTypeIdHasBeenSet = false;
223
224 SlotValueElicitationSetting m_valueElicitationSetting;
225 bool m_valueElicitationSettingHasBeenSet = false;
226
227 ObfuscationSetting m_obfuscationSetting;
228 bool m_obfuscationSettingHasBeenSet = false;
229
230 Aws::String m_botId;
231 bool m_botIdHasBeenSet = false;
232
233 Aws::String m_botVersion;
234 bool m_botVersionHasBeenSet = false;
235
236 Aws::String m_localeId;
237 bool m_localeIdHasBeenSet = false;
238
239 Aws::String m_intentId;
240 bool m_intentIdHasBeenSet = false;
241
242 MultipleValuesSetting m_multipleValuesSetting;
243 bool m_multipleValuesSettingHasBeenSet = false;
244
245 SubSlotSetting m_subSlotSetting;
246 bool m_subSlotSettingHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace LexModelsV2
251} // namespace Aws
void SetSubSlotSetting(const SubSlotSetting &value)
const ObfuscationSetting & GetObfuscationSetting() const
UpdateSlotRequest & WithIntentId(const Aws::String &value)
UpdateSlotRequest & WithSubSlotSetting(const SubSlotSetting &value)
UpdateSlotRequest & WithBotVersion(const char *value)
UpdateSlotRequest & WithBotVersion(Aws::String &&value)
UpdateSlotRequest & WithObfuscationSetting(ObfuscationSetting &&value)
void SetMultipleValuesSetting(const MultipleValuesSetting &value)
UpdateSlotRequest & WithSlotTypeId(Aws::String &&value)
void SetValueElicitationSetting(const SlotValueElicitationSetting &value)
UpdateSlotRequest & WithSlotId(const Aws::String &value)
UpdateSlotRequest & WithDescription(const char *value)
UpdateSlotRequest & WithSlotTypeId(const Aws::String &value)
UpdateSlotRequest & WithBotId(const char *value)
UpdateSlotRequest & WithValueElicitationSetting(SlotValueElicitationSetting &&value)
const SlotValueElicitationSetting & GetValueElicitationSetting() const
void SetMultipleValuesSetting(MultipleValuesSetting &&value)
UpdateSlotRequest & WithSlotName(const Aws::String &value)
UpdateSlotRequest & WithLocaleId(const Aws::String &value)
void SetSubSlotSetting(SubSlotSetting &&value)
UpdateSlotRequest & WithSlotName(const char *value)
UpdateSlotRequest & WithIntentId(const char *value)
UpdateSlotRequest & WithBotId(const Aws::String &value)
UpdateSlotRequest & WithLocaleId(Aws::String &&value)
void SetSlotTypeId(const Aws::String &value)
UpdateSlotRequest & WithDescription(Aws::String &&value)
UpdateSlotRequest & WithSubSlotSetting(SubSlotSetting &&value)
void SetSlotName(const Aws::String &value)
void SetObfuscationSetting(ObfuscationSetting &&value)
UpdateSlotRequest & WithValueElicitationSetting(const SlotValueElicitationSetting &value)
void SetObfuscationSetting(const ObfuscationSetting &value)
void SetLocaleId(const Aws::String &value)
void SetValueElicitationSetting(SlotValueElicitationSetting &&value)
UpdateSlotRequest & WithMultipleValuesSetting(MultipleValuesSetting &&value)
UpdateSlotRequest & WithDescription(const Aws::String &value)
UpdateSlotRequest & WithSlotTypeId(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
UpdateSlotRequest & WithSlotName(Aws::String &&value)
void SetIntentId(const Aws::String &value)
UpdateSlotRequest & WithSlotId(const char *value)
UpdateSlotRequest & WithBotId(Aws::String &&value)
void SetDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const MultipleValuesSetting & GetMultipleValuesSetting() const
UpdateSlotRequest & WithObfuscationSetting(const ObfuscationSetting &value)
UpdateSlotRequest & WithSlotId(Aws::String &&value)
UpdateSlotRequest & WithIntentId(Aws::String &&value)
void SetBotId(const Aws::String &value)
UpdateSlotRequest & WithBotVersion(const Aws::String &value)
UpdateSlotRequest & WithMultipleValuesSetting(const MultipleValuesSetting &value)
void SetSlotId(const Aws::String &value)
UpdateSlotRequest & WithLocaleId(const char *value)
void SetBotVersion(const Aws::String &value)
const SubSlotSetting & GetSubSlotSetting() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String