AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeIntentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace LexModelsV2 {
36namespace Model {
38 public:
39 AWS_LEXMODELSV2_API DescribeIntentResult() = default;
42
44
47 inline const Aws::String& GetIntentId() const { return m_intentId; }
48 template <typename IntentIdT = Aws::String>
49 void SetIntentId(IntentIdT&& value) {
50 m_intentIdHasBeenSet = true;
51 m_intentId = std::forward<IntentIdT>(value);
52 }
53 template <typename IntentIdT = Aws::String>
54 DescribeIntentResult& WithIntentId(IntentIdT&& value) {
55 SetIntentId(std::forward<IntentIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetIntentName() const { return m_intentName; }
65 template <typename IntentNameT = Aws::String>
66 void SetIntentName(IntentNameT&& value) {
67 m_intentNameHasBeenSet = true;
68 m_intentName = std::forward<IntentNameT>(value);
69 }
70 template <typename IntentNameT = Aws::String>
71 DescribeIntentResult& WithIntentName(IntentNameT&& value) {
72 SetIntentName(std::forward<IntentNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
82 template <typename IntentDisplayNameT = Aws::String>
83 void SetIntentDisplayName(IntentDisplayNameT&& value) {
84 m_intentDisplayNameHasBeenSet = true;
85 m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
86 }
87 template <typename IntentDisplayNameT = Aws::String>
88 DescribeIntentResult& WithIntentDisplayName(IntentDisplayNameT&& value) {
89 SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 DescribeIntentResult& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
117 template <typename ParentIntentSignatureT = Aws::String>
118 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
119 m_parentIntentSignatureHasBeenSet = true;
120 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
121 }
122 template <typename ParentIntentSignatureT = Aws::String>
123 DescribeIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) {
124 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
134 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
135 void SetSampleUtterances(SampleUtterancesT&& value) {
136 m_sampleUtterancesHasBeenSet = true;
137 m_sampleUtterances = std::forward<SampleUtterancesT>(value);
138 }
139 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
140 DescribeIntentResult& WithSampleUtterances(SampleUtterancesT&& value) {
141 SetSampleUtterances(std::forward<SampleUtterancesT>(value));
142 return *this;
143 }
144 template <typename SampleUtterancesT = SampleUtterance>
145 DescribeIntentResult& AddSampleUtterances(SampleUtterancesT&& value) {
146 m_sampleUtterancesHasBeenSet = true;
147 m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
148 return *this;
149 }
151
153
157 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
158 template <typename DialogCodeHookT = DialogCodeHookSettings>
159 void SetDialogCodeHook(DialogCodeHookT&& value) {
160 m_dialogCodeHookHasBeenSet = true;
161 m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
162 }
163 template <typename DialogCodeHookT = DialogCodeHookSettings>
164 DescribeIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) {
165 SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
166 return *this;
167 }
169
171
175 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
176 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
177 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
178 m_fulfillmentCodeHookHasBeenSet = true;
179 m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
180 }
181 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
182 DescribeIntentResult& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
183 SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Vector<SlotPriority>& GetSlotPriorities() const { return m_slotPriorities; }
194 template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
195 void SetSlotPriorities(SlotPrioritiesT&& value) {
196 m_slotPrioritiesHasBeenSet = true;
197 m_slotPriorities = std::forward<SlotPrioritiesT>(value);
198 }
199 template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
200 DescribeIntentResult& WithSlotPriorities(SlotPrioritiesT&& value) {
201 SetSlotPriorities(std::forward<SlotPrioritiesT>(value));
202 return *this;
203 }
204 template <typename SlotPrioritiesT = SlotPriority>
205 DescribeIntentResult& AddSlotPriorities(SlotPrioritiesT&& value) {
206 m_slotPrioritiesHasBeenSet = true;
207 m_slotPriorities.emplace_back(std::forward<SlotPrioritiesT>(value));
208 return *this;
209 }
211
213
217 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
218 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
219 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
220 m_intentConfirmationSettingHasBeenSet = true;
221 m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
222 }
223 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
224 DescribeIntentResult& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
225 SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
226 return *this;
227 }
229
231
234 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
235 template <typename IntentClosingSettingT = IntentClosingSetting>
236 void SetIntentClosingSetting(IntentClosingSettingT&& value) {
237 m_intentClosingSettingHasBeenSet = true;
238 m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
239 }
240 template <typename IntentClosingSettingT = IntentClosingSetting>
241 DescribeIntentResult& WithIntentClosingSetting(IntentClosingSettingT&& value) {
242 SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
253 template <typename InputContextsT = Aws::Vector<InputContext>>
254 void SetInputContexts(InputContextsT&& value) {
255 m_inputContextsHasBeenSet = true;
256 m_inputContexts = std::forward<InputContextsT>(value);
257 }
258 template <typename InputContextsT = Aws::Vector<InputContext>>
259 DescribeIntentResult& WithInputContexts(InputContextsT&& value) {
260 SetInputContexts(std::forward<InputContextsT>(value));
261 return *this;
262 }
263 template <typename InputContextsT = InputContext>
264 DescribeIntentResult& AddInputContexts(InputContextsT&& value) {
265 m_inputContextsHasBeenSet = true;
266 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
276 template <typename OutputContextsT = Aws::Vector<OutputContext>>
277 void SetOutputContexts(OutputContextsT&& value) {
278 m_outputContextsHasBeenSet = true;
279 m_outputContexts = std::forward<OutputContextsT>(value);
280 }
281 template <typename OutputContextsT = Aws::Vector<OutputContext>>
282 DescribeIntentResult& WithOutputContexts(OutputContextsT&& value) {
283 SetOutputContexts(std::forward<OutputContextsT>(value));
284 return *this;
285 }
286 template <typename OutputContextsT = OutputContext>
287 DescribeIntentResult& AddOutputContexts(OutputContextsT&& value) {
288 m_outputContextsHasBeenSet = true;
289 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
290 return *this;
291 }
293
295
299 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
300 template <typename KendraConfigurationT = KendraConfiguration>
301 void SetKendraConfiguration(KendraConfigurationT&& value) {
302 m_kendraConfigurationHasBeenSet = true;
303 m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
304 }
305 template <typename KendraConfigurationT = KendraConfiguration>
306 DescribeIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) {
307 SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
308 return *this;
309 }
311
313
316 inline const Aws::String& GetBotId() const { return m_botId; }
317 template <typename BotIdT = Aws::String>
318 void SetBotId(BotIdT&& value) {
319 m_botIdHasBeenSet = true;
320 m_botId = std::forward<BotIdT>(value);
321 }
322 template <typename BotIdT = Aws::String>
324 SetBotId(std::forward<BotIdT>(value));
325 return *this;
326 }
328
330
333 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
334 template <typename BotVersionT = Aws::String>
335 void SetBotVersion(BotVersionT&& value) {
336 m_botVersionHasBeenSet = true;
337 m_botVersion = std::forward<BotVersionT>(value);
338 }
339 template <typename BotVersionT = Aws::String>
340 DescribeIntentResult& WithBotVersion(BotVersionT&& value) {
341 SetBotVersion(std::forward<BotVersionT>(value));
342 return *this;
343 }
345
347
350 inline const Aws::String& GetLocaleId() const { return m_localeId; }
351 template <typename LocaleIdT = Aws::String>
352 void SetLocaleId(LocaleIdT&& value) {
353 m_localeIdHasBeenSet = true;
354 m_localeId = std::forward<LocaleIdT>(value);
355 }
356 template <typename LocaleIdT = Aws::String>
357 DescribeIntentResult& WithLocaleId(LocaleIdT&& value) {
358 SetLocaleId(std::forward<LocaleIdT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
368 template <typename CreationDateTimeT = Aws::Utils::DateTime>
369 void SetCreationDateTime(CreationDateTimeT&& value) {
370 m_creationDateTimeHasBeenSet = true;
371 m_creationDateTime = std::forward<CreationDateTimeT>(value);
372 }
373 template <typename CreationDateTimeT = Aws::Utils::DateTime>
374 DescribeIntentResult& WithCreationDateTime(CreationDateTimeT&& value) {
375 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
376 return *this;
377 }
379
381
384 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
385 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
386 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
387 m_lastUpdatedDateTimeHasBeenSet = true;
388 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
389 }
390 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
391 DescribeIntentResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
392 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
393 return *this;
394 }
396
398
402 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
403 template <typename InitialResponseSettingT = InitialResponseSetting>
404 void SetInitialResponseSetting(InitialResponseSettingT&& value) {
405 m_initialResponseSettingHasBeenSet = true;
406 m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
407 }
408 template <typename InitialResponseSettingT = InitialResponseSetting>
409 DescribeIntentResult& WithInitialResponseSetting(InitialResponseSettingT&& value) {
410 SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
411 return *this;
412 }
414
416
420 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
421 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
422 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
423 m_qnAIntentConfigurationHasBeenSet = true;
424 m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
425 }
426 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
427 DescribeIntentResult& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
428 SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
429 return *this;
430 }
432
434
437 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
438 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
439 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
440 m_qInConnectIntentConfigurationHasBeenSet = true;
441 m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
442 }
443 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
444 DescribeIntentResult& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
445 SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
446 return *this;
447 }
449
451
452 inline const Aws::String& GetRequestId() const { return m_requestId; }
453 template <typename RequestIdT = Aws::String>
454 void SetRequestId(RequestIdT&& value) {
455 m_requestIdHasBeenSet = true;
456 m_requestId = std::forward<RequestIdT>(value);
457 }
458 template <typename RequestIdT = Aws::String>
459 DescribeIntentResult& WithRequestId(RequestIdT&& value) {
460 SetRequestId(std::forward<RequestIdT>(value));
461 return *this;
462 }
464 private:
465 Aws::String m_intentId;
466
467 Aws::String m_intentName;
468
469 Aws::String m_intentDisplayName;
470
471 Aws::String m_description;
472
473 Aws::String m_parentIntentSignature;
474
475 Aws::Vector<SampleUtterance> m_sampleUtterances;
476
477 DialogCodeHookSettings m_dialogCodeHook;
478
479 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
480
481 Aws::Vector<SlotPriority> m_slotPriorities;
482
483 IntentConfirmationSetting m_intentConfirmationSetting;
484
485 IntentClosingSetting m_intentClosingSetting;
486
487 Aws::Vector<InputContext> m_inputContexts;
488
489 Aws::Vector<OutputContext> m_outputContexts;
490
491 KendraConfiguration m_kendraConfiguration;
492
493 Aws::String m_botId;
494
495 Aws::String m_botVersion;
496
497 Aws::String m_localeId;
498
499 Aws::Utils::DateTime m_creationDateTime{};
500
501 Aws::Utils::DateTime m_lastUpdatedDateTime{};
502
503 InitialResponseSetting m_initialResponseSetting;
504
505 QnAIntentConfiguration m_qnAIntentConfiguration;
506
507 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
508
509 Aws::String m_requestId;
510 bool m_intentIdHasBeenSet = false;
511 bool m_intentNameHasBeenSet = false;
512 bool m_intentDisplayNameHasBeenSet = false;
513 bool m_descriptionHasBeenSet = false;
514 bool m_parentIntentSignatureHasBeenSet = false;
515 bool m_sampleUtterancesHasBeenSet = false;
516 bool m_dialogCodeHookHasBeenSet = false;
517 bool m_fulfillmentCodeHookHasBeenSet = false;
518 bool m_slotPrioritiesHasBeenSet = false;
519 bool m_intentConfirmationSettingHasBeenSet = false;
520 bool m_intentClosingSettingHasBeenSet = false;
521 bool m_inputContextsHasBeenSet = false;
522 bool m_outputContextsHasBeenSet = false;
523 bool m_kendraConfigurationHasBeenSet = false;
524 bool m_botIdHasBeenSet = false;
525 bool m_botVersionHasBeenSet = false;
526 bool m_localeIdHasBeenSet = false;
527 bool m_creationDateTimeHasBeenSet = false;
528 bool m_lastUpdatedDateTimeHasBeenSet = false;
529 bool m_initialResponseSettingHasBeenSet = false;
530 bool m_qnAIntentConfigurationHasBeenSet = false;
531 bool m_qInConnectIntentConfigurationHasBeenSet = false;
532 bool m_requestIdHasBeenSet = false;
533};
534
535} // namespace Model
536} // namespace LexModelsV2
537} // namespace Aws
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
const Aws::Vector< OutputContext > & GetOutputContexts() const
DescribeIntentResult & WithBotId(BotIdT &&value)
DescribeIntentResult & WithRequestId(RequestIdT &&value)
AWS_LEXMODELSV2_API DescribeIntentResult()=default
void SetSampleUtterances(SampleUtterancesT &&value)
DescribeIntentResult & WithLocaleId(LocaleIdT &&value)
const Aws::Vector< InputContext > & GetInputContexts() const
DescribeIntentResult & WithFulfillmentCodeHook(FulfillmentCodeHookT &&value)
void SetQnAIntentConfiguration(QnAIntentConfigurationT &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
DescribeIntentResult & WithIntentDisplayName(IntentDisplayNameT &&value)
DescribeIntentResult & WithIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
DescribeIntentResult & WithIntentClosingSetting(IntentClosingSettingT &&value)
DescribeIntentResult & WithQnAIntentConfiguration(QnAIntentConfigurationT &&value)
DescribeIntentResult & WithIntentId(IntentIdT &&value)
DescribeIntentResult & WithBotVersion(BotVersionT &&value)
DescribeIntentResult & WithSlotPriorities(SlotPrioritiesT &&value)
DescribeIntentResult & WithDialogCodeHook(DialogCodeHookT &&value)
void SetKendraConfiguration(KendraConfigurationT &&value)
DescribeIntentResult & WithSampleUtterances(SampleUtterancesT &&value)
DescribeIntentResult & WithInitialResponseSetting(InitialResponseSettingT &&value)
DescribeIntentResult & WithKendraConfiguration(KendraConfigurationT &&value)
DescribeIntentResult & AddSlotPriorities(SlotPrioritiesT &&value)
void SetIntentClosingSetting(IntentClosingSettingT &&value)
const DialogCodeHookSettings & GetDialogCodeHook() const
DescribeIntentResult & WithOutputContexts(OutputContextsT &&value)
void SetIntentDisplayName(IntentDisplayNameT &&value)
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
const QInConnectIntentConfiguration & GetQInConnectIntentConfiguration() const
DescribeIntentResult & WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
DescribeIntentResult & AddSampleUtterances(SampleUtterancesT &&value)
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
DescribeIntentResult & WithInputContexts(InputContextsT &&value)
const Aws::Vector< SlotPriority > & GetSlotPriorities() const
AWS_LEXMODELSV2_API DescribeIntentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeIntentResult & WithDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API DescribeIntentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const InitialResponseSetting & GetInitialResponseSetting() const
DescribeIntentResult & AddOutputContexts(OutputContextsT &&value)
DescribeIntentResult & WithCreationDateTime(CreationDateTimeT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
DescribeIntentResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeIntentResult & WithIntentName(IntentNameT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
void SetFulfillmentCodeHook(FulfillmentCodeHookT &&value)
const KendraConfiguration & GetKendraConfiguration() const
DescribeIntentResult & AddInputContexts(InputContextsT &&value)
void SetIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const IntentClosingSetting & GetIntentClosingSetting() const
void SetInitialResponseSetting(InitialResponseSettingT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeIntentResult & WithParentIntentSignature(ParentIntentSignatureT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue