1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <utility>
11 
12 namespace Aws
13 {
14 namespace LexModelsV2
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_LEXMODELSV2_API DeleteSlotRequest : public LexModelsV2Request
22   {
23   public:
24     DeleteSlotRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DeleteSlot"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The identifier of the slot to delete. </p>
37      */
GetSlotId()38     inline const Aws::String& GetSlotId() const{ return m_slotId; }
39 
40     /**
41      * <p>The identifier of the slot to delete. </p>
42      */
SlotIdHasBeenSet()43     inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
44 
45     /**
46      * <p>The identifier of the slot to delete. </p>
47      */
SetSlotId(const Aws::String & value)48     inline void SetSlotId(const Aws::String& value) { m_slotIdHasBeenSet = true; m_slotId = value; }
49 
50     /**
51      * <p>The identifier of the slot to delete. </p>
52      */
SetSlotId(Aws::String && value)53     inline void SetSlotId(Aws::String&& value) { m_slotIdHasBeenSet = true; m_slotId = std::move(value); }
54 
55     /**
56      * <p>The identifier of the slot to delete. </p>
57      */
SetSlotId(const char * value)58     inline void SetSlotId(const char* value) { m_slotIdHasBeenSet = true; m_slotId.assign(value); }
59 
60     /**
61      * <p>The identifier of the slot to delete. </p>
62      */
WithSlotId(const Aws::String & value)63     inline DeleteSlotRequest& WithSlotId(const Aws::String& value) { SetSlotId(value); return *this;}
64 
65     /**
66      * <p>The identifier of the slot to delete. </p>
67      */
WithSlotId(Aws::String && value)68     inline DeleteSlotRequest& WithSlotId(Aws::String&& value) { SetSlotId(std::move(value)); return *this;}
69 
70     /**
71      * <p>The identifier of the slot to delete. </p>
72      */
WithSlotId(const char * value)73     inline DeleteSlotRequest& WithSlotId(const char* value) { SetSlotId(value); return *this;}
74 
75 
76     /**
77      * <p>The identifier of the bot associated with the slot to delete.</p>
78      */
GetBotId()79     inline const Aws::String& GetBotId() const{ return m_botId; }
80 
81     /**
82      * <p>The identifier of the bot associated with the slot to delete.</p>
83      */
BotIdHasBeenSet()84     inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
85 
86     /**
87      * <p>The identifier of the bot associated with the slot to delete.</p>
88      */
SetBotId(const Aws::String & value)89     inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
90 
91     /**
92      * <p>The identifier of the bot associated with the slot to delete.</p>
93      */
SetBotId(Aws::String && value)94     inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
95 
96     /**
97      * <p>The identifier of the bot associated with the slot to delete.</p>
98      */
SetBotId(const char * value)99     inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
100 
101     /**
102      * <p>The identifier of the bot associated with the slot to delete.</p>
103      */
WithBotId(const Aws::String & value)104     inline DeleteSlotRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
105 
106     /**
107      * <p>The identifier of the bot associated with the slot to delete.</p>
108      */
WithBotId(Aws::String && value)109     inline DeleteSlotRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
110 
111     /**
112      * <p>The identifier of the bot associated with the slot to delete.</p>
113      */
WithBotId(const char * value)114     inline DeleteSlotRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
115 
116 
117     /**
118      * <p>The version of the bot associated with the slot to delete.</p>
119      */
GetBotVersion()120     inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
121 
122     /**
123      * <p>The version of the bot associated with the slot to delete.</p>
124      */
BotVersionHasBeenSet()125     inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
126 
127     /**
128      * <p>The version of the bot associated with the slot to delete.</p>
129      */
SetBotVersion(const Aws::String & value)130     inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
131 
132     /**
133      * <p>The version of the bot associated with the slot to delete.</p>
134      */
SetBotVersion(Aws::String && value)135     inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
136 
137     /**
138      * <p>The version of the bot associated with the slot to delete.</p>
139      */
SetBotVersion(const char * value)140     inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
141 
142     /**
143      * <p>The version of the bot associated with the slot to delete.</p>
144      */
WithBotVersion(const Aws::String & value)145     inline DeleteSlotRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
146 
147     /**
148      * <p>The version of the bot associated with the slot to delete.</p>
149      */
WithBotVersion(Aws::String && value)150     inline DeleteSlotRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
151 
152     /**
153      * <p>The version of the bot associated with the slot to delete.</p>
154      */
WithBotVersion(const char * value)155     inline DeleteSlotRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
156 
157 
158     /**
159      * <p>The identifier of the language and locale that the slot will be deleted from.
160      * The string must match one of the supported locales. For more information, see <a
161      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
162      * languages</a>.</p>
163      */
GetLocaleId()164     inline const Aws::String& GetLocaleId() const{ return m_localeId; }
165 
166     /**
167      * <p>The identifier of the language and locale that the slot will be deleted from.
168      * The string must match one of the supported locales. For more information, see <a
169      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
170      * languages</a>.</p>
171      */
LocaleIdHasBeenSet()172     inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
173 
174     /**
175      * <p>The identifier of the language and locale that the slot will be deleted from.
176      * The string must match one of the supported locales. For more information, see <a
177      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
178      * languages</a>.</p>
179      */
SetLocaleId(const Aws::String & value)180     inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
181 
182     /**
183      * <p>The identifier of the language and locale that the slot will be deleted from.
184      * The string must match one of the supported locales. For more information, see <a
185      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
186      * languages</a>.</p>
187      */
SetLocaleId(Aws::String && value)188     inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
189 
190     /**
191      * <p>The identifier of the language and locale that the slot will be deleted from.
192      * The string must match one of the supported locales. For more information, see <a
193      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
194      * languages</a>.</p>
195      */
SetLocaleId(const char * value)196     inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
197 
198     /**
199      * <p>The identifier of the language and locale that the slot will be deleted from.
200      * The string must match one of the supported locales. For more information, see <a
201      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
202      * languages</a>.</p>
203      */
WithLocaleId(const Aws::String & value)204     inline DeleteSlotRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
205 
206     /**
207      * <p>The identifier of the language and locale that the slot will be deleted from.
208      * The string must match one of the supported locales. For more information, see <a
209      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
210      * languages</a>.</p>
211      */
WithLocaleId(Aws::String && value)212     inline DeleteSlotRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
213 
214     /**
215      * <p>The identifier of the language and locale that the slot will be deleted from.
216      * The string must match one of the supported locales. For more information, see <a
217      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
218      * languages</a>.</p>
219      */
WithLocaleId(const char * value)220     inline DeleteSlotRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
221 
222 
223     /**
224      * <p>The identifier of the intent associated with the slot.</p>
225      */
GetIntentId()226     inline const Aws::String& GetIntentId() const{ return m_intentId; }
227 
228     /**
229      * <p>The identifier of the intent associated with the slot.</p>
230      */
IntentIdHasBeenSet()231     inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
232 
233     /**
234      * <p>The identifier of the intent associated with the slot.</p>
235      */
SetIntentId(const Aws::String & value)236     inline void SetIntentId(const Aws::String& value) { m_intentIdHasBeenSet = true; m_intentId = value; }
237 
238     /**
239      * <p>The identifier of the intent associated with the slot.</p>
240      */
SetIntentId(Aws::String && value)241     inline void SetIntentId(Aws::String&& value) { m_intentIdHasBeenSet = true; m_intentId = std::move(value); }
242 
243     /**
244      * <p>The identifier of the intent associated with the slot.</p>
245      */
SetIntentId(const char * value)246     inline void SetIntentId(const char* value) { m_intentIdHasBeenSet = true; m_intentId.assign(value); }
247 
248     /**
249      * <p>The identifier of the intent associated with the slot.</p>
250      */
WithIntentId(const Aws::String & value)251     inline DeleteSlotRequest& WithIntentId(const Aws::String& value) { SetIntentId(value); return *this;}
252 
253     /**
254      * <p>The identifier of the intent associated with the slot.</p>
255      */
WithIntentId(Aws::String && value)256     inline DeleteSlotRequest& WithIntentId(Aws::String&& value) { SetIntentId(std::move(value)); return *this;}
257 
258     /**
259      * <p>The identifier of the intent associated with the slot.</p>
260      */
WithIntentId(const char * value)261     inline DeleteSlotRequest& WithIntentId(const char* value) { SetIntentId(value); return *this;}
262 
263   private:
264 
265     Aws::String m_slotId;
266     bool m_slotIdHasBeenSet;
267 
268     Aws::String m_botId;
269     bool m_botIdHasBeenSet;
270 
271     Aws::String m_botVersion;
272     bool m_botVersionHasBeenSet;
273 
274     Aws::String m_localeId;
275     bool m_localeIdHasBeenSet;
276 
277     Aws::String m_intentId;
278     bool m_intentIdHasBeenSet;
279   };
280 
281 } // namespace Model
282 } // namespace LexModelsV2
283 } // namespace Aws
284