AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateIntentRequest.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
23#include <utility>
24
25namespace Aws {
26namespace LexModelsV2 {
27namespace Model {
28
32 public:
33 AWS_LEXMODELSV2_API CreateIntentRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateIntent"; }
40
41 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
42
44
48 inline const Aws::String& GetIntentName() const { return m_intentName; }
49 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
50 template <typename IntentNameT = Aws::String>
51 void SetIntentName(IntentNameT&& value) {
52 m_intentNameHasBeenSet = true;
53 m_intentName = std::forward<IntentNameT>(value);
54 }
55 template <typename IntentNameT = Aws::String>
56 CreateIntentRequest& WithIntentName(IntentNameT&& value) {
57 SetIntentName(std::forward<IntentNameT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
70 inline bool IntentDisplayNameHasBeenSet() const { return m_intentDisplayNameHasBeenSet; }
71 template <typename IntentDisplayNameT = Aws::String>
72 void SetIntentDisplayName(IntentDisplayNameT&& value) {
73 m_intentDisplayNameHasBeenSet = true;
74 m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
75 }
76 template <typename IntentDisplayNameT = Aws::String>
77 CreateIntentRequest& WithIntentDisplayName(IntentDisplayNameT&& value) {
78 SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 CreateIntentRequest& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
107 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
108 template <typename ParentIntentSignatureT = Aws::String>
109 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
110 m_parentIntentSignatureHasBeenSet = true;
111 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
112 }
113 template <typename ParentIntentSignatureT = Aws::String>
114 CreateIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) {
115 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
116 return *this;
117 }
119
121
127 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
128 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
129 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
130 void SetSampleUtterances(SampleUtterancesT&& value) {
131 m_sampleUtterancesHasBeenSet = true;
132 m_sampleUtterances = std::forward<SampleUtterancesT>(value);
133 }
134 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
135 CreateIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) {
136 SetSampleUtterances(std::forward<SampleUtterancesT>(value));
137 return *this;
138 }
139 template <typename SampleUtterancesT = SampleUtterance>
140 CreateIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) {
141 m_sampleUtterancesHasBeenSet = true;
142 m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
143 return *this;
144 }
146
148
158 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
159 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
160 template <typename DialogCodeHookT = DialogCodeHookSettings>
161 void SetDialogCodeHook(DialogCodeHookT&& value) {
162 m_dialogCodeHookHasBeenSet = true;
163 m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
164 }
165 template <typename DialogCodeHookT = DialogCodeHookSettings>
166 CreateIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) {
167 SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
168 return *this;
169 }
171
173
180 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
181 inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
182 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
183 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
184 m_fulfillmentCodeHookHasBeenSet = true;
185 m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
186 }
187 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
188 CreateIntentRequest& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
189 SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
190 return *this;
191 }
193
195
200 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
201 inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
202 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
203 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
204 m_intentConfirmationSettingHasBeenSet = true;
205 m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
206 }
207 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
208 CreateIntentRequest& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
209 SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
210 return *this;
211 }
213
215
219 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
220 inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
221 template <typename IntentClosingSettingT = IntentClosingSetting>
222 void SetIntentClosingSetting(IntentClosingSettingT&& value) {
223 m_intentClosingSettingHasBeenSet = true;
224 m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
225 }
226 template <typename IntentClosingSettingT = IntentClosingSetting>
227 CreateIntentRequest& WithIntentClosingSetting(IntentClosingSettingT&& value) {
228 SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
229 return *this;
230 }
232
234
247 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
248 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
249 template <typename InputContextsT = Aws::Vector<InputContext>>
250 void SetInputContexts(InputContextsT&& value) {
251 m_inputContextsHasBeenSet = true;
252 m_inputContexts = std::forward<InputContextsT>(value);
253 }
254 template <typename InputContextsT = Aws::Vector<InputContext>>
255 CreateIntentRequest& WithInputContexts(InputContextsT&& value) {
256 SetInputContexts(std::forward<InputContextsT>(value));
257 return *this;
258 }
259 template <typename InputContextsT = InputContext>
260 CreateIntentRequest& AddInputContexts(InputContextsT&& value) {
261 m_inputContextsHasBeenSet = true;
262 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
263 return *this;
264 }
266
268
278 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
279 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
280 template <typename OutputContextsT = Aws::Vector<OutputContext>>
281 void SetOutputContexts(OutputContextsT&& value) {
282 m_outputContextsHasBeenSet = true;
283 m_outputContexts = std::forward<OutputContextsT>(value);
284 }
285 template <typename OutputContextsT = Aws::Vector<OutputContext>>
286 CreateIntentRequest& WithOutputContexts(OutputContextsT&& value) {
287 SetOutputContexts(std::forward<OutputContextsT>(value));
288 return *this;
289 }
290 template <typename OutputContextsT = OutputContext>
291 CreateIntentRequest& AddOutputContexts(OutputContextsT&& value) {
292 m_outputContextsHasBeenSet = true;
293 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
294 return *this;
295 }
297
299
305 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
306 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
307 template <typename KendraConfigurationT = KendraConfiguration>
308 void SetKendraConfiguration(KendraConfigurationT&& value) {
309 m_kendraConfigurationHasBeenSet = true;
310 m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
311 }
312 template <typename KendraConfigurationT = KendraConfiguration>
313 CreateIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) {
314 SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::String& GetBotId() const { return m_botId; }
324 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
325 template <typename BotIdT = Aws::String>
326 void SetBotId(BotIdT&& value) {
327 m_botIdHasBeenSet = true;
328 m_botId = std::forward<BotIdT>(value);
329 }
330 template <typename BotIdT = Aws::String>
332 SetBotId(std::forward<BotIdT>(value));
333 return *this;
334 }
336
338
341 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
342 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
343 template <typename BotVersionT = Aws::String>
344 void SetBotVersion(BotVersionT&& value) {
345 m_botVersionHasBeenSet = true;
346 m_botVersion = std::forward<BotVersionT>(value);
347 }
348 template <typename BotVersionT = Aws::String>
349 CreateIntentRequest& WithBotVersion(BotVersionT&& value) {
350 SetBotVersion(std::forward<BotVersionT>(value));
351 return *this;
352 }
354
356
363 inline const Aws::String& GetLocaleId() const { return m_localeId; }
364 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
365 template <typename LocaleIdT = Aws::String>
366 void SetLocaleId(LocaleIdT&& value) {
367 m_localeIdHasBeenSet = true;
368 m_localeId = std::forward<LocaleIdT>(value);
369 }
370 template <typename LocaleIdT = Aws::String>
371 CreateIntentRequest& WithLocaleId(LocaleIdT&& value) {
372 SetLocaleId(std::forward<LocaleIdT>(value));
373 return *this;
374 }
376
378
382 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
383 inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
384 template <typename InitialResponseSettingT = InitialResponseSetting>
385 void SetInitialResponseSetting(InitialResponseSettingT&& value) {
386 m_initialResponseSettingHasBeenSet = true;
387 m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
388 }
389 template <typename InitialResponseSettingT = InitialResponseSetting>
390 CreateIntentRequest& WithInitialResponseSetting(InitialResponseSettingT&& value) {
391 SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
392 return *this;
393 }
395
397
403 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
404 inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
405 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
406 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
407 m_qnAIntentConfigurationHasBeenSet = true;
408 m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
409 }
410 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
411 CreateIntentRequest& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
412 SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
413 return *this;
414 }
416
418
421 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
422 inline bool QInConnectIntentConfigurationHasBeenSet() const { return m_qInConnectIntentConfigurationHasBeenSet; }
423 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
424 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
425 m_qInConnectIntentConfigurationHasBeenSet = true;
426 m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
427 }
428 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
429 CreateIntentRequest& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
430 SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
431 return *this;
432 }
434 private:
435 Aws::String m_intentName;
436
437 Aws::String m_intentDisplayName;
438
439 Aws::String m_description;
440
441 Aws::String m_parentIntentSignature;
442
443 Aws::Vector<SampleUtterance> m_sampleUtterances;
444
445 DialogCodeHookSettings m_dialogCodeHook;
446
447 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
448
449 IntentConfirmationSetting m_intentConfirmationSetting;
450
451 IntentClosingSetting m_intentClosingSetting;
452
453 Aws::Vector<InputContext> m_inputContexts;
454
455 Aws::Vector<OutputContext> m_outputContexts;
456
457 KendraConfiguration m_kendraConfiguration;
458
459 Aws::String m_botId;
460
461 Aws::String m_botVersion;
462
463 Aws::String m_localeId;
464
465 InitialResponseSetting m_initialResponseSetting;
466
467 QnAIntentConfiguration m_qnAIntentConfiguration;
468
469 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
470 bool m_intentNameHasBeenSet = false;
471 bool m_intentDisplayNameHasBeenSet = false;
472 bool m_descriptionHasBeenSet = false;
473 bool m_parentIntentSignatureHasBeenSet = false;
474 bool m_sampleUtterancesHasBeenSet = false;
475 bool m_dialogCodeHookHasBeenSet = false;
476 bool m_fulfillmentCodeHookHasBeenSet = false;
477 bool m_intentConfirmationSettingHasBeenSet = false;
478 bool m_intentClosingSettingHasBeenSet = false;
479 bool m_inputContextsHasBeenSet = false;
480 bool m_outputContextsHasBeenSet = false;
481 bool m_kendraConfigurationHasBeenSet = false;
482 bool m_botIdHasBeenSet = false;
483 bool m_botVersionHasBeenSet = false;
484 bool m_localeIdHasBeenSet = false;
485 bool m_initialResponseSettingHasBeenSet = false;
486 bool m_qnAIntentConfigurationHasBeenSet = false;
487 bool m_qInConnectIntentConfigurationHasBeenSet = false;
488};
489
490} // namespace Model
491} // namespace LexModelsV2
492} // namespace Aws
CreateIntentRequest & WithIntentConfirmationSetting(IntentConfirmationSettingT &&value)
CreateIntentRequest & AddOutputContexts(OutputContextsT &&value)
CreateIntentRequest & WithQnAIntentConfiguration(QnAIntentConfigurationT &&value)
CreateIntentRequest & AddSampleUtterances(SampleUtterancesT &&value)
AWS_LEXMODELSV2_API CreateIntentRequest()=default
CreateIntentRequest & WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
CreateIntentRequest & WithBotId(BotIdT &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
CreateIntentRequest & AddInputContexts(InputContextsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateIntentRequest & WithOutputContexts(OutputContextsT &&value)
CreateIntentRequest & WithLocaleId(LocaleIdT &&value)
void SetIntentDisplayName(IntentDisplayNameT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
CreateIntentRequest & WithIntentClosingSetting(IntentClosingSettingT &&value)
virtual const char * GetServiceRequestName() const override
CreateIntentRequest & WithParentIntentSignature(ParentIntentSignatureT &&value)
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
CreateIntentRequest & WithInitialResponseSetting(InitialResponseSettingT &&value)
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
void SetKendraConfiguration(KendraConfigurationT &&value)
void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
CreateIntentRequest & WithIntentName(IntentNameT &&value)
const QInConnectIntentConfiguration & GetQInConnectIntentConfiguration() const
void SetFulfillmentCodeHook(FulfillmentCodeHookT &&value)
void SetQnAIntentConfiguration(QnAIntentConfigurationT &&value)
const Aws::Vector< InputContext > & GetInputContexts() const
const IntentClosingSetting & GetIntentClosingSetting() const
CreateIntentRequest & WithSampleUtterances(SampleUtterancesT &&value)
const DialogCodeHookSettings & GetDialogCodeHook() const
CreateIntentRequest & WithInputContexts(InputContextsT &&value)
CreateIntentRequest & WithFulfillmentCodeHook(FulfillmentCodeHookT &&value)
void SetIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
void SetIntentClosingSetting(IntentClosingSettingT &&value)
void SetInitialResponseSetting(InitialResponseSettingT &&value)
CreateIntentRequest & WithBotVersion(BotVersionT &&value)
const InitialResponseSetting & GetInitialResponseSetting() const
void SetSampleUtterances(SampleUtterancesT &&value)
CreateIntentRequest & WithKendraConfiguration(KendraConfigurationT &&value)
CreateIntentRequest & WithDescription(DescriptionT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
CreateIntentRequest & WithDialogCodeHook(DialogCodeHookT &&value)
CreateIntentRequest & WithIntentDisplayName(IntentDisplayNameT &&value)
const KendraConfiguration & GetKendraConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector