AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSlotName(const Aws::String& value) { m_slotNameHasBeenSet = true; m_slotName = value; }
47 inline void SetSlotName(Aws::String&& value) { m_slotNameHasBeenSet = true; m_slotName = std::move(value); }
48 inline void SetSlotName(const char* value) { m_slotNameHasBeenSet = true; m_slotName.assign(value); }
49 inline CreateSlotRequest& WithSlotName(const Aws::String& value) { SetSlotName(value); return *this;}
50 inline CreateSlotRequest& WithSlotName(Aws::String&& value) { SetSlotName(std::move(value)); return *this;}
51 inline CreateSlotRequest& WithSlotName(const char* value) { SetSlotName(value); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateSlotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateSlotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateSlotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
73 inline const Aws::String& GetSlotTypeId() const{ return m_slotTypeId; }
74 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
75 inline void SetSlotTypeId(const Aws::String& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = value; }
76 inline void SetSlotTypeId(Aws::String&& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = std::move(value); }
77 inline void SetSlotTypeId(const char* value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId.assign(value); }
78 inline CreateSlotRequest& WithSlotTypeId(const Aws::String& value) { SetSlotTypeId(value); return *this;}
79 inline CreateSlotRequest& WithSlotTypeId(Aws::String&& value) { SetSlotTypeId(std::move(value)); return *this;}
80 inline CreateSlotRequest& WithSlotTypeId(const char* value) { SetSlotTypeId(value); return *this;}
82
84
88 inline const SlotValueElicitationSetting& GetValueElicitationSetting() const{ return m_valueElicitationSetting; }
89 inline bool ValueElicitationSettingHasBeenSet() const { return m_valueElicitationSettingHasBeenSet; }
90 inline void SetValueElicitationSetting(const SlotValueElicitationSetting& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = value; }
91 inline void SetValueElicitationSetting(SlotValueElicitationSetting&& value) { m_valueElicitationSettingHasBeenSet = true; m_valueElicitationSetting = std::move(value); }
95
97
104 inline const ObfuscationSetting& GetObfuscationSetting() const{ return m_obfuscationSetting; }
105 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
106 inline void SetObfuscationSetting(const ObfuscationSetting& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = value; }
107 inline void SetObfuscationSetting(ObfuscationSetting&& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = std::move(value); }
109 inline CreateSlotRequest& WithObfuscationSetting(ObfuscationSetting&& value) { SetObfuscationSetting(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetBotId() const{ return m_botId; }
117 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
118 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
119 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
120 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
121 inline CreateSlotRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
122 inline CreateSlotRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
123 inline CreateSlotRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
125
127
130 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
131 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
132 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
133 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
134 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
135 inline CreateSlotRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
136 inline CreateSlotRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
137 inline CreateSlotRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
139
141
148 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
149 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
150 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
151 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
152 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
153 inline CreateSlotRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
154 inline CreateSlotRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
155 inline CreateSlotRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
157
159
162 inline const Aws::String& GetIntentId() const{ return m_intentId; }
163 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
164 inline void SetIntentId(const Aws::String& value) { m_intentIdHasBeenSet = true; m_intentId = value; }
165 inline void SetIntentId(Aws::String&& value) { m_intentIdHasBeenSet = true; m_intentId = std::move(value); }
166 inline void SetIntentId(const char* value) { m_intentIdHasBeenSet = true; m_intentId.assign(value); }
167 inline CreateSlotRequest& WithIntentId(const Aws::String& value) { SetIntentId(value); return *this;}
168 inline CreateSlotRequest& WithIntentId(Aws::String&& value) { SetIntentId(std::move(value)); return *this;}
169 inline CreateSlotRequest& WithIntentId(const char* value) { SetIntentId(value); return *this;}
171
173
181 inline const MultipleValuesSetting& GetMultipleValuesSetting() const{ return m_multipleValuesSetting; }
182 inline bool MultipleValuesSettingHasBeenSet() const { return m_multipleValuesSettingHasBeenSet; }
183 inline void SetMultipleValuesSetting(const MultipleValuesSetting& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = value; }
184 inline void SetMultipleValuesSetting(MultipleValuesSetting&& value) { m_multipleValuesSettingHasBeenSet = true; m_multipleValuesSetting = std::move(value); }
188
190
194 inline const SubSlotSetting& GetSubSlotSetting() const{ return m_subSlotSetting; }
195 inline bool SubSlotSettingHasBeenSet() const { return m_subSlotSettingHasBeenSet; }
196 inline void SetSubSlotSetting(const SubSlotSetting& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = value; }
197 inline void SetSubSlotSetting(SubSlotSetting&& value) { m_subSlotSettingHasBeenSet = true; m_subSlotSetting = std::move(value); }
198 inline CreateSlotRequest& WithSubSlotSetting(const SubSlotSetting& value) { SetSubSlotSetting(value); return *this;}
199 inline CreateSlotRequest& WithSubSlotSetting(SubSlotSetting&& value) { SetSubSlotSetting(std::move(value)); return *this;}
201 private:
202
203 Aws::String m_slotName;
204 bool m_slotNameHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 Aws::String m_slotTypeId;
210 bool m_slotTypeIdHasBeenSet = false;
211
212 SlotValueElicitationSetting m_valueElicitationSetting;
213 bool m_valueElicitationSettingHasBeenSet = false;
214
215 ObfuscationSetting m_obfuscationSetting;
216 bool m_obfuscationSettingHasBeenSet = false;
217
218 Aws::String m_botId;
219 bool m_botIdHasBeenSet = false;
220
221 Aws::String m_botVersion;
222 bool m_botVersionHasBeenSet = false;
223
224 Aws::String m_localeId;
225 bool m_localeIdHasBeenSet = false;
226
227 Aws::String m_intentId;
228 bool m_intentIdHasBeenSet = false;
229
230 MultipleValuesSetting m_multipleValuesSetting;
231 bool m_multipleValuesSettingHasBeenSet = false;
232
233 SubSlotSetting m_subSlotSetting;
234 bool m_subSlotSettingHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace LexModelsV2
239} // namespace Aws
CreateSlotRequest & WithBotVersion(Aws::String &&value)
CreateSlotRequest & WithValueElicitationSetting(SlotValueElicitationSetting &&value)
CreateSlotRequest & WithSubSlotSetting(SubSlotSetting &&value)
CreateSlotRequest & WithBotId(const char *value)
CreateSlotRequest & WithIntentId(Aws::String &&value)
CreateSlotRequest & WithBotVersion(const char *value)
const SubSlotSetting & GetSubSlotSetting() const
void SetMultipleValuesSetting(const MultipleValuesSetting &value)
void SetSubSlotSetting(SubSlotSetting &&value)
const SlotValueElicitationSetting & GetValueElicitationSetting() const
const MultipleValuesSetting & GetMultipleValuesSetting() const
void SetSubSlotSetting(const SubSlotSetting &value)
CreateSlotRequest & WithLocaleId(Aws::String &&value)
void SetIntentId(const Aws::String &value)
CreateSlotRequest & WithMultipleValuesSetting(MultipleValuesSetting &&value)
CreateSlotRequest & WithSlotTypeId(Aws::String &&value)
CreateSlotRequest & WithDescription(const char *value)
CreateSlotRequest & WithDescription(Aws::String &&value)
CreateSlotRequest & WithBotVersion(const Aws::String &value)
void SetLocaleId(const Aws::String &value)
CreateSlotRequest & WithValueElicitationSetting(const SlotValueElicitationSetting &value)
CreateSlotRequest & WithIntentId(const Aws::String &value)
CreateSlotRequest & WithSlotName(const Aws::String &value)
CreateSlotRequest & WithBotId(Aws::String &&value)
CreateSlotRequest & WithLocaleId(const Aws::String &value)
void SetObfuscationSetting(const ObfuscationSetting &value)
CreateSlotRequest & WithSlotName(const char *value)
CreateSlotRequest & WithIntentId(const char *value)
CreateSlotRequest & WithObfuscationSetting(const ObfuscationSetting &value)
CreateSlotRequest & WithMultipleValuesSetting(const MultipleValuesSetting &value)
void SetMultipleValuesSetting(MultipleValuesSetting &&value)
const ObfuscationSetting & GetObfuscationSetting() const
CreateSlotRequest & WithDescription(const Aws::String &value)
CreateSlotRequest & WithSlotTypeId(const Aws::String &value)
void SetValueElicitationSetting(const SlotValueElicitationSetting &value)
CreateSlotRequest & WithLocaleId(const char *value)
void SetObfuscationSetting(ObfuscationSetting &&value)
CreateSlotRequest & WithSlotTypeId(const char *value)
CreateSlotRequest & WithSubSlotSetting(const SubSlotSetting &value)
void SetBotId(const Aws::String &value)
CreateSlotRequest & WithSlotName(Aws::String &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetSlotName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetDescription(const Aws::String &value)
void SetSlotTypeId(const Aws::String &value)
void SetBotVersion(const Aws::String &value)
CreateSlotRequest & WithObfuscationSetting(ObfuscationSetting &&value)
CreateSlotRequest & WithBotId(const Aws::String &value)
void SetValueElicitationSetting(SlotValueElicitationSetting &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String