AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateIntentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
12#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
13#include <aws/lexv2-models/model/InitialResponseSetting.h>
14#include <aws/lexv2-models/model/InputContext.h>
15#include <aws/lexv2-models/model/IntentClosingSetting.h>
16#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
17#include <aws/lexv2-models/model/KendraConfiguration.h>
18#include <aws/lexv2-models/model/OutputContext.h>
19#include <aws/lexv2-models/model/QInConnectIntentConfiguration.h>
20#include <aws/lexv2-models/model/QnAIntentConfiguration.h>
21#include <aws/lexv2-models/model/SampleUtterance.h>
22#include <aws/lexv2-models/model/SlotPriority.h>
23
24#include <utility>
25
26namespace Aws {
27namespace LexModelsV2 {
28namespace Model {
29
33 public:
34 AWS_LEXMODELSV2_API UpdateIntentRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateIntent"; }
41
42 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
43
45
48 inline const Aws::String& GetIntentId() const { return m_intentId; }
49 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
50 template <typename IntentIdT = Aws::String>
51 void SetIntentId(IntentIdT&& value) {
52 m_intentIdHasBeenSet = true;
53 m_intentId = std::forward<IntentIdT>(value);
54 }
55 template <typename IntentIdT = Aws::String>
56 UpdateIntentRequest& WithIntentId(IntentIdT&& value) {
57 SetIntentId(std::forward<IntentIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetIntentName() const { return m_intentName; }
67 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
68 template <typename IntentNameT = Aws::String>
69 void SetIntentName(IntentNameT&& value) {
70 m_intentNameHasBeenSet = true;
71 m_intentName = std::forward<IntentNameT>(value);
72 }
73 template <typename IntentNameT = Aws::String>
74 UpdateIntentRequest& WithIntentName(IntentNameT&& value) {
75 SetIntentName(std::forward<IntentNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
85 inline bool IntentDisplayNameHasBeenSet() const { return m_intentDisplayNameHasBeenSet; }
86 template <typename IntentDisplayNameT = Aws::String>
87 void SetIntentDisplayName(IntentDisplayNameT&& value) {
88 m_intentDisplayNameHasBeenSet = true;
89 m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
90 }
91 template <typename IntentDisplayNameT = Aws::String>
92 UpdateIntentRequest& WithIntentDisplayName(IntentDisplayNameT&& value) {
93 SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
110 UpdateIntentRequest& WithDescription(DescriptionT&& value) {
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
122 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
123 template <typename ParentIntentSignatureT = Aws::String>
124 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
125 m_parentIntentSignatureHasBeenSet = true;
126 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
127 }
128 template <typename ParentIntentSignatureT = Aws::String>
129 UpdateIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) {
130 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
140 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
141 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
142 void SetSampleUtterances(SampleUtterancesT&& value) {
143 m_sampleUtterancesHasBeenSet = true;
144 m_sampleUtterances = std::forward<SampleUtterancesT>(value);
145 }
146 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
147 UpdateIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) {
148 SetSampleUtterances(std::forward<SampleUtterancesT>(value));
149 return *this;
150 }
151 template <typename SampleUtterancesT = SampleUtterance>
152 UpdateIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) {
153 m_sampleUtterancesHasBeenSet = true;
154 m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
155 return *this;
156 }
158
160
164 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
165 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
166 template <typename DialogCodeHookT = DialogCodeHookSettings>
167 void SetDialogCodeHook(DialogCodeHookT&& value) {
168 m_dialogCodeHookHasBeenSet = true;
169 m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
170 }
171 template <typename DialogCodeHookT = DialogCodeHookSettings>
172 UpdateIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) {
173 SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
174 return *this;
175 }
177
179
183 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
184 inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
185 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
186 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
187 m_fulfillmentCodeHookHasBeenSet = true;
188 m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
189 }
190 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
191 UpdateIntentRequest& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
192 SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::Vector<SlotPriority>& GetSlotPriorities() const { return m_slotPriorities; }
203 inline bool SlotPrioritiesHasBeenSet() const { return m_slotPrioritiesHasBeenSet; }
204 template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
205 void SetSlotPriorities(SlotPrioritiesT&& value) {
206 m_slotPrioritiesHasBeenSet = true;
207 m_slotPriorities = std::forward<SlotPrioritiesT>(value);
208 }
209 template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
210 UpdateIntentRequest& WithSlotPriorities(SlotPrioritiesT&& value) {
211 SetSlotPriorities(std::forward<SlotPrioritiesT>(value));
212 return *this;
213 }
214 template <typename SlotPrioritiesT = SlotPriority>
215 UpdateIntentRequest& AddSlotPriorities(SlotPrioritiesT&& value) {
216 m_slotPrioritiesHasBeenSet = true;
217 m_slotPriorities.emplace_back(std::forward<SlotPrioritiesT>(value));
218 return *this;
219 }
221
223
227 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
228 inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
229 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
230 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
231 m_intentConfirmationSettingHasBeenSet = true;
232 m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
233 }
234 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
235 UpdateIntentRequest& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
236 SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
237 return *this;
238 }
240
242
246 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
247 inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
248 template <typename IntentClosingSettingT = IntentClosingSetting>
249 void SetIntentClosingSetting(IntentClosingSettingT&& value) {
250 m_intentClosingSettingHasBeenSet = true;
251 m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
252 }
253 template <typename IntentClosingSettingT = IntentClosingSetting>
254 UpdateIntentRequest& WithIntentClosingSetting(IntentClosingSettingT&& value) {
255 SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
256 return *this;
257 }
259
261
265 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
266 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
267 template <typename InputContextsT = Aws::Vector<InputContext>>
268 void SetInputContexts(InputContextsT&& value) {
269 m_inputContextsHasBeenSet = true;
270 m_inputContexts = std::forward<InputContextsT>(value);
271 }
272 template <typename InputContextsT = Aws::Vector<InputContext>>
273 UpdateIntentRequest& WithInputContexts(InputContextsT&& value) {
274 SetInputContexts(std::forward<InputContextsT>(value));
275 return *this;
276 }
277 template <typename InputContextsT = InputContext>
278 UpdateIntentRequest& AddInputContexts(InputContextsT&& value) {
279 m_inputContextsHasBeenSet = true;
280 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
291 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
292 template <typename OutputContextsT = Aws::Vector<OutputContext>>
293 void SetOutputContexts(OutputContextsT&& value) {
294 m_outputContextsHasBeenSet = true;
295 m_outputContexts = std::forward<OutputContextsT>(value);
296 }
297 template <typename OutputContextsT = Aws::Vector<OutputContext>>
298 UpdateIntentRequest& WithOutputContexts(OutputContextsT&& value) {
299 SetOutputContexts(std::forward<OutputContextsT>(value));
300 return *this;
301 }
302 template <typename OutputContextsT = OutputContext>
303 UpdateIntentRequest& AddOutputContexts(OutputContextsT&& value) {
304 m_outputContextsHasBeenSet = true;
305 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
306 return *this;
307 }
309
311
314 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
315 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
316 template <typename KendraConfigurationT = KendraConfiguration>
317 void SetKendraConfiguration(KendraConfigurationT&& value) {
318 m_kendraConfigurationHasBeenSet = true;
319 m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
320 }
321 template <typename KendraConfigurationT = KendraConfiguration>
322 UpdateIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) {
323 SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::String& GetBotId() const { return m_botId; }
333 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
334 template <typename BotIdT = Aws::String>
335 void SetBotId(BotIdT&& value) {
336 m_botIdHasBeenSet = true;
337 m_botId = std::forward<BotIdT>(value);
338 }
339 template <typename BotIdT = Aws::String>
341 SetBotId(std::forward<BotIdT>(value));
342 return *this;
343 }
345
347
351 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
352 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
353 template <typename BotVersionT = Aws::String>
354 void SetBotVersion(BotVersionT&& value) {
355 m_botVersionHasBeenSet = true;
356 m_botVersion = std::forward<BotVersionT>(value);
357 }
358 template <typename BotVersionT = Aws::String>
359 UpdateIntentRequest& WithBotVersion(BotVersionT&& value) {
360 SetBotVersion(std::forward<BotVersionT>(value));
361 return *this;
362 }
364
366
372 inline const Aws::String& GetLocaleId() const { return m_localeId; }
373 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
374 template <typename LocaleIdT = Aws::String>
375 void SetLocaleId(LocaleIdT&& value) {
376 m_localeIdHasBeenSet = true;
377 m_localeId = std::forward<LocaleIdT>(value);
378 }
379 template <typename LocaleIdT = Aws::String>
380 UpdateIntentRequest& WithLocaleId(LocaleIdT&& value) {
381 SetLocaleId(std::forward<LocaleIdT>(value));
382 return *this;
383 }
385
387
391 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
392 inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
393 template <typename InitialResponseSettingT = InitialResponseSetting>
394 void SetInitialResponseSetting(InitialResponseSettingT&& value) {
395 m_initialResponseSettingHasBeenSet = true;
396 m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
397 }
398 template <typename InitialResponseSettingT = InitialResponseSetting>
399 UpdateIntentRequest& WithInitialResponseSetting(InitialResponseSettingT&& value) {
400 SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
401 return *this;
402 }
404
406
412 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
413 inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
414 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
415 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
416 m_qnAIntentConfigurationHasBeenSet = true;
417 m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
418 }
419 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
420 UpdateIntentRequest& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
421 SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
422 return *this;
423 }
425
427
430 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
431 inline bool QInConnectIntentConfigurationHasBeenSet() const { return m_qInConnectIntentConfigurationHasBeenSet; }
432 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
433 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
434 m_qInConnectIntentConfigurationHasBeenSet = true;
435 m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
436 }
437 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
438 UpdateIntentRequest& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
439 SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
440 return *this;
441 }
443 private:
444 Aws::String m_intentId;
445
446 Aws::String m_intentName;
447
448 Aws::String m_intentDisplayName;
449
450 Aws::String m_description;
451
452 Aws::String m_parentIntentSignature;
453
454 Aws::Vector<SampleUtterance> m_sampleUtterances;
455
456 DialogCodeHookSettings m_dialogCodeHook;
457
458 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
459
460 Aws::Vector<SlotPriority> m_slotPriorities;
461
462 IntentConfirmationSetting m_intentConfirmationSetting;
463
464 IntentClosingSetting m_intentClosingSetting;
465
466 Aws::Vector<InputContext> m_inputContexts;
467
468 Aws::Vector<OutputContext> m_outputContexts;
469
470 KendraConfiguration m_kendraConfiguration;
471
472 Aws::String m_botId;
473
474 Aws::String m_botVersion;
475
476 Aws::String m_localeId;
477
478 InitialResponseSetting m_initialResponseSetting;
479
480 QnAIntentConfiguration m_qnAIntentConfiguration;
481
482 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
483 bool m_intentIdHasBeenSet = false;
484 bool m_intentNameHasBeenSet = false;
485 bool m_intentDisplayNameHasBeenSet = false;
486 bool m_descriptionHasBeenSet = false;
487 bool m_parentIntentSignatureHasBeenSet = false;
488 bool m_sampleUtterancesHasBeenSet = false;
489 bool m_dialogCodeHookHasBeenSet = false;
490 bool m_fulfillmentCodeHookHasBeenSet = false;
491 bool m_slotPrioritiesHasBeenSet = false;
492 bool m_intentConfirmationSettingHasBeenSet = false;
493 bool m_intentClosingSettingHasBeenSet = false;
494 bool m_inputContextsHasBeenSet = false;
495 bool m_outputContextsHasBeenSet = false;
496 bool m_kendraConfigurationHasBeenSet = false;
497 bool m_botIdHasBeenSet = false;
498 bool m_botVersionHasBeenSet = false;
499 bool m_localeIdHasBeenSet = false;
500 bool m_initialResponseSettingHasBeenSet = false;
501 bool m_qnAIntentConfigurationHasBeenSet = false;
502 bool m_qInConnectIntentConfigurationHasBeenSet = false;
503};
504
505} // namespace Model
506} // namespace LexModelsV2
507} // namespace Aws
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
void SetParentIntentSignature(ParentIntentSignatureT &&value)
void SetSampleUtterances(SampleUtterancesT &&value)
void SetIntentDisplayName(IntentDisplayNameT &&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)
UpdateIntentRequest & WithIntentDisplayName(IntentDisplayNameT &&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)
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