AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateSlotRequest.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/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 {
18namespace LexModelsV2 {
19namespace Model {
20
24 public:
25 AWS_LEXMODELSV2_API UpdateSlotRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSlot"; }
32
33 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetSlotId() const { return m_slotId; }
40 inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
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 UpdateSlotRequest& 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 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
59 template <typename SlotNameT = Aws::String>
60 void SetSlotName(SlotNameT&& value) {
61 m_slotNameHasBeenSet = true;
62 m_slotName = std::forward<SlotNameT>(value);
63 }
64 template <typename SlotNameT = Aws::String>
65 UpdateSlotRequest& WithSlotName(SlotNameT&& value) {
66 SetSlotName(std::forward<SlotNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 UpdateSlotRequest& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
94 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
95 template <typename SlotTypeIdT = Aws::String>
96 void SetSlotTypeId(SlotTypeIdT&& value) {
97 m_slotTypeIdHasBeenSet = true;
98 m_slotTypeId = std::forward<SlotTypeIdT>(value);
99 }
100 template <typename SlotTypeIdT = Aws::String>
101 UpdateSlotRequest& WithSlotTypeId(SlotTypeIdT&& value) {
102 SetSlotTypeId(std::forward<SlotTypeIdT>(value));
103 return *this;
104 }
106
108
112 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
113 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
114 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
115 void SetValueElicitationSetting(ValueElicitationSettingT&& value) {
116 m_valueElicitationSettingHasBeenSet = true;
117 m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value);
118 }
119 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
120 UpdateSlotRequest& WithValueElicitationSetting(ValueElicitationSettingT&& value) {
121 SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value));
122 return *this;
123 }
125
127
131 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
132 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
133 template <typename ObfuscationSettingT = ObfuscationSetting>
134 void SetObfuscationSetting(ObfuscationSettingT&& value) {
135 m_obfuscationSettingHasBeenSet = true;
136 m_obfuscationSetting = std::forward<ObfuscationSettingT>(value);
137 }
138 template <typename ObfuscationSettingT = ObfuscationSetting>
139 UpdateSlotRequest& WithObfuscationSetting(ObfuscationSettingT&& value) {
140 SetObfuscationSetting(std::forward<ObfuscationSettingT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetBotId() const { return m_botId; }
150 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
151 template <typename BotIdT = Aws::String>
152 void SetBotId(BotIdT&& value) {
153 m_botIdHasBeenSet = true;
154 m_botId = std::forward<BotIdT>(value);
155 }
156 template <typename BotIdT = Aws::String>
157 UpdateSlotRequest& WithBotId(BotIdT&& value) {
158 SetBotId(std::forward<BotIdT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
169 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
170 template <typename BotVersionT = Aws::String>
171 void SetBotVersion(BotVersionT&& value) {
172 m_botVersionHasBeenSet = true;
173 m_botVersion = std::forward<BotVersionT>(value);
174 }
175 template <typename BotVersionT = Aws::String>
176 UpdateSlotRequest& WithBotVersion(BotVersionT&& value) {
177 SetBotVersion(std::forward<BotVersionT>(value));
178 return *this;
179 }
181
183
189 inline const Aws::String& GetLocaleId() const { return m_localeId; }
190 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
191 template <typename LocaleIdT = Aws::String>
192 void SetLocaleId(LocaleIdT&& value) {
193 m_localeIdHasBeenSet = true;
194 m_localeId = std::forward<LocaleIdT>(value);
195 }
196 template <typename LocaleIdT = Aws::String>
197 UpdateSlotRequest& WithLocaleId(LocaleIdT&& value) {
198 SetLocaleId(std::forward<LocaleIdT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetIntentId() const { return m_intentId; }
208 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
209 template <typename IntentIdT = Aws::String>
210 void SetIntentId(IntentIdT&& value) {
211 m_intentIdHasBeenSet = true;
212 m_intentId = std::forward<IntentIdT>(value);
213 }
214 template <typename IntentIdT = Aws::String>
215 UpdateSlotRequest& WithIntentId(IntentIdT&& value) {
216 SetIntentId(std::forward<IntentIdT>(value));
217 return *this;
218 }
220
222
230 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
231 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
232 template <typename MultipleValuesSettingT = MultipleValuesSetting>
233 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) {
234 m_multipleValuesSettingHasBeenSet = true;
235 m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value);
236 }
237 template <typename MultipleValuesSettingT = MultipleValuesSetting>
238 UpdateSlotRequest& WithMultipleValuesSetting(MultipleValuesSettingT&& value) {
239 SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value));
240 return *this;
241 }
243
245
249 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
250 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
251 template <typename SubSlotSettingT = SubSlotSetting>
252 void SetSubSlotSetting(SubSlotSettingT&& value) {
253 m_subSlotSettingHasBeenSet = true;
254 m_subSlotSetting = std::forward<SubSlotSettingT>(value);
255 }
256 template <typename SubSlotSettingT = SubSlotSetting>
257 UpdateSlotRequest& WithSubSlotSetting(SubSlotSettingT&& value) {
258 SetSubSlotSetting(std::forward<SubSlotSettingT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_slotId;
264
265 Aws::String m_slotName;
266
267 Aws::String m_description;
268
269 Aws::String m_slotTypeId;
270
271 SlotValueElicitationSetting m_valueElicitationSetting;
272
273 ObfuscationSetting m_obfuscationSetting;
274
275 Aws::String m_botId;
276
277 Aws::String m_botVersion;
278
279 Aws::String m_localeId;
280
281 Aws::String m_intentId;
282
283 MultipleValuesSetting m_multipleValuesSetting;
284
285 SubSlotSetting m_subSlotSetting;
286 bool m_slotIdHasBeenSet = false;
287 bool m_slotNameHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_slotTypeIdHasBeenSet = false;
290 bool m_valueElicitationSettingHasBeenSet = false;
291 bool m_obfuscationSettingHasBeenSet = false;
292 bool m_botIdHasBeenSet = false;
293 bool m_botVersionHasBeenSet = false;
294 bool m_localeIdHasBeenSet = false;
295 bool m_intentIdHasBeenSet = false;
296 bool m_multipleValuesSettingHasBeenSet = false;
297 bool m_subSlotSettingHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace LexModelsV2
302} // namespace Aws
void SetObfuscationSetting(ObfuscationSettingT &&value)
UpdateSlotRequest & WithObfuscationSetting(ObfuscationSettingT &&value)
const ObfuscationSetting & GetObfuscationSetting() const
UpdateSlotRequest & WithSlotId(SlotIdT &&value)
UpdateSlotRequest & WithDescription(DescriptionT &&value)
const SlotValueElicitationSetting & GetValueElicitationSetting() const
UpdateSlotRequest & WithValueElicitationSetting(ValueElicitationSettingT &&value)
void SetMultipleValuesSetting(MultipleValuesSettingT &&value)
void SetSubSlotSetting(SubSlotSettingT &&value)
UpdateSlotRequest & WithBotId(BotIdT &&value)
AWS_LEXMODELSV2_API UpdateSlotRequest()=default
UpdateSlotRequest & WithMultipleValuesSetting(MultipleValuesSettingT &&value)
UpdateSlotRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
UpdateSlotRequest & WithLocaleId(LocaleIdT &&value)
UpdateSlotRequest & WithSlotName(SlotNameT &&value)
UpdateSlotRequest & WithSubSlotSetting(SubSlotSettingT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSlotRequest & WithSlotTypeId(SlotTypeIdT &&value)
const MultipleValuesSetting & GetMultipleValuesSetting() const
void SetValueElicitationSetting(ValueElicitationSettingT &&value)
UpdateSlotRequest & WithIntentId(IntentIdT &&value)
const SubSlotSetting & GetSubSlotSetting() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String