AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateSlotRequest.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 CreateSlotRequest() = 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 "CreateSlot"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetSlotName() const { return m_slotName; }
45 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
46 template<typename SlotNameT = Aws::String>
47 void SetSlotName(SlotNameT&& value) { m_slotNameHasBeenSet = true; m_slotName = std::forward<SlotNameT>(value); }
48 template<typename SlotNameT = Aws::String>
49 CreateSlotRequest& WithSlotName(SlotNameT&& value) { SetSlotName(std::forward<SlotNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateSlotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
70 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
71 template<typename SlotTypeIdT = Aws::String>
72 void SetSlotTypeId(SlotTypeIdT&& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = std::forward<SlotTypeIdT>(value); }
73 template<typename SlotTypeIdT = Aws::String>
74 CreateSlotRequest& WithSlotTypeId(SlotTypeIdT&& value) { SetSlotTypeId(std::forward<SlotTypeIdT>(value)); return *this;}
76
78
82 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const { return m_valueElicitationSetting; }
83 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
84 template<typename ValueElicitationSettingT = SlotValueElicitationSetting>
85 void SetValueElicitationSetting(ValueElicitationSettingT&& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = std::forward<ValueElicitationSettingT>(value); }
86 template<typename ValueElicitationSettingT = SlotValueElicitationSetting>
87 CreateSlotRequest& WithValueElicitationSetting(ValueElicitationSettingT&& value) { SetValueElicitationSetting(std::forward<ValueElicitationSettingT>(value)); return *this;}
89
91
98 inline const ObfuscationSetting& GetObfuscationSetting() const { return m_obfuscationSetting; }
99 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
100 template<typename ObfuscationSettingT = ObfuscationSetting>
101 void SetObfuscationSetting(ObfuscationSettingT&& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = std::forward<ObfuscationSettingT>(value); }
102 template<typename ObfuscationSettingT = ObfuscationSetting>
103 CreateSlotRequest& WithObfuscationSetting(ObfuscationSettingT&& value) { SetObfuscationSetting(std::forward<ObfuscationSettingT>(value)); return *this;}
105
107
110 inline const Aws::String& GetBotId() const { return m_botId; }
111 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
112 template<typename BotIdT = Aws::String>
113 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
114 template<typename BotIdT = Aws::String>
115 CreateSlotRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
117
119
122 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
123 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
124 template<typename BotVersionT = Aws::String>
125 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
126 template<typename BotVersionT = Aws::String>
127 CreateSlotRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
129
131
138 inline const Aws::String& GetLocaleId() const { return m_localeId; }
139 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
140 template<typename LocaleIdT = Aws::String>
141 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
142 template<typename LocaleIdT = Aws::String>
143 CreateSlotRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
145
147
150 inline const Aws::String& GetIntentId() const { return m_intentId; }
151 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
152 template<typename IntentIdT = Aws::String>
153 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
154 template<typename IntentIdT = Aws::String>
155 CreateSlotRequest& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
157
159
167 inline const MultipleValuesSetting& GetMultipleValuesSetting() const { return m_multipleValuesSetting; }
168 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
169 template<typename MultipleValuesSettingT = MultipleValuesSetting>
170 void SetMultipleValuesSetting(MultipleValuesSettingT&& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = std::forward<MultipleValuesSettingT>(value); }
171 template<typename MultipleValuesSettingT = MultipleValuesSetting>
172 CreateSlotRequest& WithMultipleValuesSetting(MultipleValuesSettingT&& value) { SetMultipleValuesSetting(std::forward<MultipleValuesSettingT>(value)); return *this;}
174
176
180 inline const SubSlotSetting& GetSubSlotSetting() const { return m_subSlotSetting; }
181 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
182 template<typename SubSlotSettingT = SubSlotSetting>
183 void SetSubSlotSetting(SubSlotSettingT&& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = std::forward<SubSlotSettingT>(value); }
184 template<typename SubSlotSettingT = SubSlotSetting>
185 CreateSlotRequest& WithSubSlotSetting(SubSlotSettingT&& value) { SetSubSlotSetting(std::forward<SubSlotSettingT>(value)); return *this;}
187 private:
188
189 Aws::String m_slotName;
190 bool m_slotNameHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 Aws::String m_slotTypeId;
196 bool m_slotTypeIdHasBeenSet = false;
197
198 SlotValueElicitationSetting m_valueElicitationSetting;
199 bool m_valueElicitationSettingHasBeenSet = false;
200
201 ObfuscationSetting m_obfuscationSetting;
202 bool m_obfuscationSettingHasBeenSet = false;
203
204 Aws::String m_botId;
205 bool m_botIdHasBeenSet = false;
206
207 Aws::String m_botVersion;
208 bool m_botVersionHasBeenSet = false;
209
210 Aws::String m_localeId;
211 bool m_localeIdHasBeenSet = false;
212
213 Aws::String m_intentId;
214 bool m_intentIdHasBeenSet = false;
215
216 MultipleValuesSetting m_multipleValuesSetting;
217 bool m_multipleValuesSettingHasBeenSet = false;
218
219 SubSlotSetting m_subSlotSetting;
220 bool m_subSlotSettingHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace LexModelsV2
225} // 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