AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateSlotRequest.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 CreateSlotRequest() = 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 "CreateSlot"; }
32
33 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetSlotName() const { return m_slotName; }
41 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
42 template <typename SlotNameT = Aws::String>
43 void SetSlotName(SlotNameT&& value) {
44 m_slotNameHasBeenSet = true;
45 m_slotName = std::forward<SlotNameT>(value);
46 }
47 template <typename SlotNameT = Aws::String>
48 CreateSlotRequest& WithSlotName(SlotNameT&& value) {
49 SetSlotName(std::forward<SlotNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateSlotRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
78 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
79 template <typename SlotTypeIdT = Aws::String>
80 void SetSlotTypeId(SlotTypeIdT&& value) {
81 m_slotTypeIdHasBeenSet = true;
82 m_slotTypeId = std::forward<SlotTypeIdT>(value);
83 }
84 template <typename SlotTypeIdT = Aws::String>
85 CreateSlotRequest& WithSlotTypeId(SlotTypeIdT&& value) {
86 SetSlotTypeId(std::forward<SlotTypeIdT>(value));
87 return *this;
88 }
90
92
96 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
97 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
98 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
99 void SetValueElicitationSetting(ValueElicitationSettingT&& value) {
100 m_valueElicitationSettingHasBeenSet = true;
101 m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value);
102 }
103 template <typename ValueElicitationSettingT = SlotValueElicitationSetting>
104 CreateSlotRequest& WithValueElicitationSetting(ValueElicitationSettingT&& value) {
105 SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value));
106 return *this;
107 }
109
111
118 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
119 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
120 template <typename ObfuscationSettingT = ObfuscationSetting>
121 void SetObfuscationSetting(ObfuscationSettingT&& value) {
122 m_obfuscationSettingHasBeenSet = true;
123 m_obfuscationSetting = std::forward<ObfuscationSettingT>(value);
124 }
125 template <typename ObfuscationSettingT = ObfuscationSetting>
126 CreateSlotRequest& WithObfuscationSetting(ObfuscationSettingT&& value) {
127 SetObfuscationSetting(std::forward<ObfuscationSettingT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetBotId() const { return m_botId; }
137 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
138 template <typename BotIdT = Aws::String>
139 void SetBotId(BotIdT&& value) {
140 m_botIdHasBeenSet = true;
141 m_botId = std::forward<BotIdT>(value);
142 }
143 template <typename BotIdT = Aws::String>
144 CreateSlotRequest& WithBotId(BotIdT&& value) {
145 SetBotId(std::forward<BotIdT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
155 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
156 template <typename BotVersionT = Aws::String>
157 void SetBotVersion(BotVersionT&& value) {
158 m_botVersionHasBeenSet = true;
159 m_botVersion = std::forward<BotVersionT>(value);
160 }
161 template <typename BotVersionT = Aws::String>
162 CreateSlotRequest& WithBotVersion(BotVersionT&& value) {
163 SetBotVersion(std::forward<BotVersionT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::String& GetLocaleId() const { return m_localeId; }
177 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
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 CreateSlotRequest& 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 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
196 template <typename IntentIdT = Aws::String>
197 void SetIntentId(IntentIdT&& value) {
198 m_intentIdHasBeenSet = true;
199 m_intentId = std::forward<IntentIdT>(value);
200 }
201 template <typename IntentIdT = Aws::String>
202 CreateSlotRequest& WithIntentId(IntentIdT&& value) {
203 SetIntentId(std::forward<IntentIdT>(value));
204 return *this;
205 }
207
209
217 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
218 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
219 template <typename MultipleValuesSettingT = MultipleValuesSetting>
220 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) {
221 m_multipleValuesSettingHasBeenSet = true;
222 m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value);
223 }
224 template <typename MultipleValuesSettingT = MultipleValuesSetting>
225 CreateSlotRequest& WithMultipleValuesSetting(MultipleValuesSettingT&& value) {
226 SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value));
227 return *this;
228 }
230
232
236 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
237 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
238 template <typename SubSlotSettingT = SubSlotSetting>
239 void SetSubSlotSetting(SubSlotSettingT&& value) {
240 m_subSlotSettingHasBeenSet = true;
241 m_subSlotSetting = std::forward<SubSlotSettingT>(value);
242 }
243 template <typename SubSlotSettingT = SubSlotSetting>
244 CreateSlotRequest& WithSubSlotSetting(SubSlotSettingT&& value) {
245 SetSubSlotSetting(std::forward<SubSlotSettingT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_slotName;
251
252 Aws::String m_description;
253
254 Aws::String m_slotTypeId;
255
256 SlotValueElicitationSetting m_valueElicitationSetting;
257
258 ObfuscationSetting m_obfuscationSetting;
259
260 Aws::String m_botId;
261
262 Aws::String m_botVersion;
263
264 Aws::String m_localeId;
265
266 Aws::String m_intentId;
267
268 MultipleValuesSetting m_multipleValuesSetting;
269
270 SubSlotSetting m_subSlotSetting;
271 bool m_slotNameHasBeenSet = false;
272 bool m_descriptionHasBeenSet = false;
273 bool m_slotTypeIdHasBeenSet = false;
274 bool m_valueElicitationSettingHasBeenSet = false;
275 bool m_obfuscationSettingHasBeenSet = false;
276 bool m_botIdHasBeenSet = false;
277 bool m_botVersionHasBeenSet = false;
278 bool m_localeIdHasBeenSet = false;
279 bool m_intentIdHasBeenSet = false;
280 bool m_multipleValuesSettingHasBeenSet = false;
281 bool m_subSlotSettingHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace LexModelsV2
286} // namespace Aws
CreateSlotRequest & WithSlotTypeId(SlotTypeIdT &&value)
const SubSlotSetting & GetSubSlotSetting() const
const SlotValueElicitationSetting & GetValueElicitationSetting() const
const MultipleValuesSetting & GetMultipleValuesSetting() const
CreateSlotRequest & WithSubSlotSetting(SubSlotSettingT &&value)
void SetObfuscationSetting(ObfuscationSettingT &&value)
void SetValueElicitationSetting(ValueElicitationSettingT &&value)
CreateSlotRequest & WithObfuscationSetting(ObfuscationSettingT &&value)
CreateSlotRequest & WithBotVersion(BotVersionT &&value)
CreateSlotRequest & WithDescription(DescriptionT &&value)
void SetSubSlotSetting(SubSlotSettingT &&value)
AWS_LEXMODELSV2_API CreateSlotRequest()=default
const ObfuscationSetting & GetObfuscationSetting() const
CreateSlotRequest & WithValueElicitationSetting(ValueElicitationSettingT &&value)
void SetMultipleValuesSetting(MultipleValuesSettingT &&value)
CreateSlotRequest & WithIntentId(IntentIdT &&value)
CreateSlotRequest & WithBotId(BotIdT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSlotRequest & WithMultipleValuesSetting(MultipleValuesSettingT &&value)
CreateSlotRequest & WithSlotName(SlotNameT &&value)
CreateSlotRequest & WithLocaleId(LocaleIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String