AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateIntentRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
12#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
13#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
14#include <aws/lexv2-models/model/IntentClosingSetting.h>
15#include <aws/lexv2-models/model/KendraConfiguration.h>
16#include <aws/lexv2-models/model/InitialResponseSetting.h>
17#include <aws/lexv2-models/model/QnAIntentConfiguration.h>
18#include <aws/lexv2-models/model/QInConnectIntentConfiguration.h>
19#include <aws/lexv2-models/model/SampleUtterance.h>
20#include <aws/lexv2-models/model/SlotPriority.h>
21#include <aws/lexv2-models/model/InputContext.h>
22#include <aws/lexv2-models/model/OutputContext.h>
23#include <utility>
24
25namespace Aws
26{
27namespace LexModelsV2
28{
29namespace Model
30{
31
35 {
36 public:
37 AWS_LEXMODELSV2_API UpdateIntentRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "UpdateIntent"; }
44
45 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
46
47
49
52 inline const Aws::String& GetIntentId() const { return m_intentId; }
53 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
54 template<typename IntentIdT = Aws::String>
55 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
56 template<typename IntentIdT = Aws::String>
57 UpdateIntentRequest& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetIntentName() const { return m_intentName; }
65 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
66 template<typename IntentNameT = Aws::String>
67 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
68 template<typename IntentNameT = Aws::String>
69 UpdateIntentRequest& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 UpdateIntentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
89 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
90 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
91 template<typename ParentIntentSignatureT = Aws::String>
92 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
93 template<typename ParentIntentSignatureT = Aws::String>
94 UpdateIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
96
98
101 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
102 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
103 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
104 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
105 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
106 UpdateIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
107 template<typename SampleUtterancesT = SampleUtterance>
108 UpdateIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
110
112
116 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
117 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
118 template<typename DialogCodeHookT = DialogCodeHookSettings>
119 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
120 template<typename DialogCodeHookT = DialogCodeHookSettings>
121 UpdateIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
123
125
129 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
130 inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
131 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
132 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value); }
133 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
134 UpdateIntentRequest& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) { SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value)); return *this;}
136
138
142 inline const Aws::Vector<SlotPriority>& GetSlotPriorities() const { return m_slotPriorities; }
143 inline bool SlotPrioritiesHasBeenSet() const { return m_slotPrioritiesHasBeenSet; }
144 template<typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
145 void SetSlotPriorities(SlotPrioritiesT&& value) { m_slotPrioritiesHasBeenSet = true; m_slotPriorities = std::forward<SlotPrioritiesT>(value); }
146 template<typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
147 UpdateIntentRequest& WithSlotPriorities(SlotPrioritiesT&& value) { SetSlotPriorities(std::forward<SlotPrioritiesT>(value)); return *this;}
148 template<typename SlotPrioritiesT = SlotPriority>
149 UpdateIntentRequest& AddSlotPriorities(SlotPrioritiesT&& value) { m_slotPrioritiesHasBeenSet = true; m_slotPriorities.emplace_back(std::forward<SlotPrioritiesT>(value)); return *this; }
151
153
157 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
158 inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
159 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
160 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value); }
161 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
162 UpdateIntentRequest& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) { SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value)); return *this;}
164
166
170 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
171 inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
172 template<typename IntentClosingSettingT = IntentClosingSetting>
173 void SetIntentClosingSetting(IntentClosingSettingT&& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = std::forward<IntentClosingSettingT>(value); }
174 template<typename IntentClosingSettingT = IntentClosingSetting>
175 UpdateIntentRequest& WithIntentClosingSetting(IntentClosingSettingT&& value) { SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value)); return *this;}
177
179
183 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
184 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
185 template<typename InputContextsT = Aws::Vector<InputContext>>
186 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
187 template<typename InputContextsT = Aws::Vector<InputContext>>
188 UpdateIntentRequest& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
189 template<typename InputContextsT = InputContext>
190 UpdateIntentRequest& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
192
194
198 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
199 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
200 template<typename OutputContextsT = Aws::Vector<OutputContext>>
201 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
202 template<typename OutputContextsT = Aws::Vector<OutputContext>>
203 UpdateIntentRequest& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
204 template<typename OutputContextsT = OutputContext>
205 UpdateIntentRequest& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
207
209
212 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
213 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
214 template<typename KendraConfigurationT = KendraConfiguration>
215 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
216 template<typename KendraConfigurationT = KendraConfiguration>
217 UpdateIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
219
221
224 inline const Aws::String& GetBotId() const { return m_botId; }
225 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
226 template<typename BotIdT = Aws::String>
227 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
228 template<typename BotIdT = Aws::String>
229 UpdateIntentRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
231
233
237 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
238 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
239 template<typename BotVersionT = Aws::String>
240 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
241 template<typename BotVersionT = Aws::String>
242 UpdateIntentRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
244
246
252 inline const Aws::String& GetLocaleId() const { return m_localeId; }
253 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
254 template<typename LocaleIdT = Aws::String>
255 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
256 template<typename LocaleIdT = Aws::String>
257 UpdateIntentRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
259
261
265 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
266 inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
267 template<typename InitialResponseSettingT = InitialResponseSetting>
268 void SetInitialResponseSetting(InitialResponseSettingT&& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = std::forward<InitialResponseSettingT>(value); }
269 template<typename InitialResponseSettingT = InitialResponseSetting>
270 UpdateIntentRequest& WithInitialResponseSetting(InitialResponseSettingT&& value) { SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value)); return *this;}
272
274
280 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
281 inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
282 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
283 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value); }
284 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
285 UpdateIntentRequest& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) { SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value)); return *this;}
287
289
292 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
293 inline bool QInConnectIntentConfigurationHasBeenSet() const { return m_qInConnectIntentConfigurationHasBeenSet; }
294 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
295 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { m_qInConnectIntentConfigurationHasBeenSet = true; m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value); }
296 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
297 UpdateIntentRequest& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value)); return *this;}
299 private:
300
301 Aws::String m_intentId;
302 bool m_intentIdHasBeenSet = false;
303
304 Aws::String m_intentName;
305 bool m_intentNameHasBeenSet = false;
306
307 Aws::String m_description;
308 bool m_descriptionHasBeenSet = false;
309
310 Aws::String m_parentIntentSignature;
311 bool m_parentIntentSignatureHasBeenSet = false;
312
313 Aws::Vector<SampleUtterance> m_sampleUtterances;
314 bool m_sampleUtterancesHasBeenSet = false;
315
316 DialogCodeHookSettings m_dialogCodeHook;
317 bool m_dialogCodeHookHasBeenSet = false;
318
319 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
320 bool m_fulfillmentCodeHookHasBeenSet = false;
321
322 Aws::Vector<SlotPriority> m_slotPriorities;
323 bool m_slotPrioritiesHasBeenSet = false;
324
325 IntentConfirmationSetting m_intentConfirmationSetting;
326 bool m_intentConfirmationSettingHasBeenSet = false;
327
328 IntentClosingSetting m_intentClosingSetting;
329 bool m_intentClosingSettingHasBeenSet = false;
330
331 Aws::Vector<InputContext> m_inputContexts;
332 bool m_inputContextsHasBeenSet = false;
333
334 Aws::Vector<OutputContext> m_outputContexts;
335 bool m_outputContextsHasBeenSet = false;
336
337 KendraConfiguration m_kendraConfiguration;
338 bool m_kendraConfigurationHasBeenSet = false;
339
340 Aws::String m_botId;
341 bool m_botIdHasBeenSet = false;
342
343 Aws::String m_botVersion;
344 bool m_botVersionHasBeenSet = false;
345
346 Aws::String m_localeId;
347 bool m_localeIdHasBeenSet = false;
348
349 InitialResponseSetting m_initialResponseSetting;
350 bool m_initialResponseSettingHasBeenSet = false;
351
352 QnAIntentConfiguration m_qnAIntentConfiguration;
353 bool m_qnAIntentConfigurationHasBeenSet = false;
354
355 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
356 bool m_qInConnectIntentConfigurationHasBeenSet = false;
357 };
358
359} // namespace Model
360} // namespace LexModelsV2
361} // namespace Aws
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
void SetParentIntentSignature(ParentIntentSignatureT &&value)
void SetSampleUtterances(SampleUtterancesT &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
UpdateIntentRequest & WithBotId(BotIdT &&value)
void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
UpdateIntentRequest & AddSlotPriorities(SlotPrioritiesT &&value)
const InitialResponseSetting & GetInitialResponseSetting() const
UpdateIntentRequest & WithSampleUtterances(SampleUtterancesT &&value)
void SetIntentConfirmationSetting(IntentConfirmationSettingT &&value)
UpdateIntentRequest & WithKendraConfiguration(KendraConfigurationT &&value)
UpdateIntentRequest & WithOutputContexts(OutputContextsT &&value)
const IntentClosingSetting & GetIntentClosingSetting() const
UpdateIntentRequest & WithInputContexts(InputContextsT &&value)
void SetInitialResponseSetting(InitialResponseSettingT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateIntentRequest & WithIntentId(IntentIdT &&value)
const KendraConfiguration & GetKendraConfiguration() const
UpdateIntentRequest & WithDialogCodeHook(DialogCodeHookT &&value)
UpdateIntentRequest & WithFulfillmentCodeHook(FulfillmentCodeHookT &&value)
UpdateIntentRequest & WithLocaleId(LocaleIdT &&value)
void SetKendraConfiguration(KendraConfigurationT &&value)
AWS_LEXMODELSV2_API UpdateIntentRequest()=default
UpdateIntentRequest & WithIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
const QInConnectIntentConfiguration & GetQInConnectIntentConfiguration() const
UpdateIntentRequest & WithParentIntentSignature(ParentIntentSignatureT &&value)
UpdateIntentRequest & AddSampleUtterances(SampleUtterancesT &&value)
UpdateIntentRequest & AddInputContexts(InputContextsT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
UpdateIntentRequest & WithInitialResponseSetting(InitialResponseSettingT &&value)
UpdateIntentRequest & AddOutputContexts(OutputContextsT &&value)
UpdateIntentRequest & WithDescription(DescriptionT &&value)
void SetIntentClosingSetting(IntentClosingSettingT &&value)
UpdateIntentRequest & WithIntentName(IntentNameT &&value)
UpdateIntentRequest & WithQnAIntentConfiguration(QnAIntentConfigurationT &&value)
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
const Aws::Vector< InputContext > & GetInputContexts() const
UpdateIntentRequest & WithIntentClosingSetting(IntentClosingSettingT &&value)
void SetFulfillmentCodeHook(FulfillmentCodeHookT &&value)
const Aws::String & GetParentIntentSignature() const
void SetQnAIntentConfiguration(QnAIntentConfigurationT &&value)
const Aws::Vector< SlotPriority > & GetSlotPriorities() const
const DialogCodeHookSettings & GetDialogCodeHook() const
UpdateIntentRequest & WithBotVersion(BotVersionT &&value)
UpdateIntentRequest & WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
UpdateIntentRequest & WithSlotPriorities(SlotPrioritiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector