AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SlotIdT = Aws::String>
46 void SetSlotId(SlotIdT&& value) { m_slotIdHasBeenSet = true; m_slotId = std::forward<SlotIdT>(value); }
47 template<typename SlotIdT = Aws::String>
48 UpdateSlotRequest& WithSlotId(SlotIdT&& value) { SetSlotId(std::forward<SlotIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetSlotName() const { return m_slotName; }
56 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
57 template<typename SlotNameT = Aws::String>
58 void SetSlotName(SlotNameT&& value) { m_slotNameHasBeenSet = true; m_slotName = std::forward<SlotNameT>(value); }
59 template<typename SlotNameT = Aws::String>
60 UpdateSlotRequest& WithSlotName(SlotNameT&& value) { SetSlotName(std::forward<SlotNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 UpdateSlotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
80 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
81 template<typename SlotTypeIdT = Aws::String>
82 void SetSlotTypeId(SlotTypeIdT&& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = std::forward<SlotTypeIdT>(value); }
83 template<typename SlotTypeIdT = Aws::String>
84 UpdateSlotRequest& WithSlotTypeId(SlotTypeIdT&& value) { SetSlotTypeId(std::forward<SlotTypeIdT>(value)); return *this;}
86
88
92 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
93 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
94 template<typename ValueElicitationSettingT = SlotValueElicitationSetting>
95 void SetValueElicitationSetting(ValueElicitationSettingT&& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value); }
96 template<typename ValueElicitationSettingT = SlotValueElicitationSetting>
97 UpdateSlotRequest& WithValueElicitationSetting(ValueElicitationSettingT&& value) { SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value)); return *this;}
99
101
105 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
106 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
107 template<typename ObfuscationSettingT = ObfuscationSetting>
108 void SetObfuscationSetting(ObfuscationSettingT&& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = std::forward<ObfuscationSettingT>(value); }
109 template<typename ObfuscationSettingT = ObfuscationSetting>
110 UpdateSlotRequest& WithObfuscationSetting(ObfuscationSettingT&& value) { SetObfuscationSetting(std::forward<ObfuscationSettingT>(value)); return *this;}
112
114
117 inline const Aws::String& GetBotId() const { return m_botId; }
118 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
119 template<typename BotIdT = Aws::String>
120 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
121 template<typename BotIdT = Aws::String>
122 UpdateSlotRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
124
126
130 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
131 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
132 template<typename BotVersionT = Aws::String>
133 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
134 template<typename BotVersionT = Aws::String>
135 UpdateSlotRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
137
139
145 inline const Aws::String& GetLocaleId() const { return m_localeId; }
146 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
147 template<typename LocaleIdT = Aws::String>
148 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
149 template<typename LocaleIdT = Aws::String>
150 UpdateSlotRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
152
154
157 inline const Aws::String& GetIntentId() const { return m_intentId; }
158 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
159 template<typename IntentIdT = Aws::String>
160 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
161 template<typename IntentIdT = Aws::String>
162 UpdateSlotRequest& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
164
166
174 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
175 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
176 template<typename MultipleValuesSettingT = MultipleValuesSetting>
177 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value); }
178 template<typename MultipleValuesSettingT = MultipleValuesSetting>
179 UpdateSlotRequest& WithMultipleValuesSetting(MultipleValuesSettingT&& value) { SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value)); return *this;}
181
183
187 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
188 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
189 template<typename SubSlotSettingT = SubSlotSetting>
190 void SetSubSlotSetting(SubSlotSettingT&& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = std::forward<SubSlotSettingT>(value); }
191 template<typename SubSlotSettingT = SubSlotSetting>
192 UpdateSlotRequest& WithSubSlotSetting(SubSlotSettingT&& value) { SetSubSlotSetting(std::forward<SubSlotSettingT>(value)); return *this;}
194 private:
195
196 Aws::String m_slotId;
197 bool m_slotIdHasBeenSet = false;
198
199 Aws::String m_slotName;
200 bool m_slotNameHasBeenSet = false;
201
202 Aws::String m_description;
203 bool m_descriptionHasBeenSet = false;
204
205 Aws::String m_slotTypeId;
206 bool m_slotTypeIdHasBeenSet = false;
207
208 SlotValueElicitationSetting m_valueElicitationSetting;
209 bool m_valueElicitationSettingHasBeenSet = false;
210
211 ObfuscationSetting m_obfuscationSetting;
212 bool m_obfuscationSettingHasBeenSet = false;
213
214 Aws::String m_botId;
215 bool m_botIdHasBeenSet = false;
216
217 Aws::String m_botVersion;
218 bool m_botVersionHasBeenSet = false;
219
220 Aws::String m_localeId;
221 bool m_localeIdHasBeenSet = false;
222
223 Aws::String m_intentId;
224 bool m_intentIdHasBeenSet = false;
225
226 MultipleValuesSetting m_multipleValuesSetting;
227 bool m_multipleValuesSettingHasBeenSet = false;
228
229 SubSlotSetting m_subSlotSetting;
230 bool m_subSlotSettingHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace LexModelsV2
235} // 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