AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
CreateIntentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
13#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
14#include <aws/lexv2-models/model/InitialResponseSetting.h>
15#include <aws/lexv2-models/model/InputContext.h>
16#include <aws/lexv2-models/model/IntentClosingSetting.h>
17#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
18#include <aws/lexv2-models/model/KendraConfiguration.h>
19#include <aws/lexv2-models/model/OutputContext.h>
20#include <aws/lexv2-models/model/QInConnectIntentConfiguration.h>
21#include <aws/lexv2-models/model/QnAIntentConfiguration.h>
22#include <aws/lexv2-models/model/SampleUtterance.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 CreateIntentResult() = 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 CreateIntentResult& 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 CreateIntentResult& 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 CreateIntentResult& 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 CreateIntentResult& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
116 template <typename ParentIntentSignatureT = Aws::String>
117 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
118 m_parentIntentSignatureHasBeenSet = true;
119 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
120 }
121 template <typename ParentIntentSignatureT = Aws::String>
122 CreateIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) {
123 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
133 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
134 void SetSampleUtterances(SampleUtterancesT&& value) {
135 m_sampleUtterancesHasBeenSet = true;
136 m_sampleUtterances = std::forward<SampleUtterancesT>(value);
137 }
138 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
139 CreateIntentResult& WithSampleUtterances(SampleUtterancesT&& value) {
140 SetSampleUtterances(std::forward<SampleUtterancesT>(value));
141 return *this;
142 }
143 template <typename SampleUtterancesT = SampleUtterance>
144 CreateIntentResult& AddSampleUtterances(SampleUtterancesT&& value) {
145 m_sampleUtterancesHasBeenSet = true;
146 m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
147 return *this;
148 }
150
152
155 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
156 template <typename DialogCodeHookT = DialogCodeHookSettings>
157 void SetDialogCodeHook(DialogCodeHookT&& value) {
158 m_dialogCodeHookHasBeenSet = true;
159 m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
160 }
161 template <typename DialogCodeHookT = DialogCodeHookSettings>
162 CreateIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) {
163 SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
164 return *this;
165 }
167
169
172 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
173 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
174 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
175 m_fulfillmentCodeHookHasBeenSet = true;
176 m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
177 }
178 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
179 CreateIntentResult& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
180 SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
181 return *this;
182 }
184
186
189 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
190 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
191 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
192 m_intentConfirmationSettingHasBeenSet = true;
193 m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
194 }
195 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
196 CreateIntentResult& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
197 SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
198 return *this;
199 }
201
203
206 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
207 template <typename IntentClosingSettingT = IntentClosingSetting>
208 void SetIntentClosingSetting(IntentClosingSettingT&& value) {
209 m_intentClosingSettingHasBeenSet = true;
210 m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
211 }
212 template <typename IntentClosingSettingT = IntentClosingSetting>
213 CreateIntentResult& WithIntentClosingSetting(IntentClosingSettingT&& value) {
214 SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
224 template <typename InputContextsT = Aws::Vector<InputContext>>
225 void SetInputContexts(InputContextsT&& value) {
226 m_inputContextsHasBeenSet = true;
227 m_inputContexts = std::forward<InputContextsT>(value);
228 }
229 template <typename InputContextsT = Aws::Vector<InputContext>>
230 CreateIntentResult& WithInputContexts(InputContextsT&& value) {
231 SetInputContexts(std::forward<InputContextsT>(value));
232 return *this;
233 }
234 template <typename InputContextsT = InputContext>
235 CreateIntentResult& AddInputContexts(InputContextsT&& value) {
236 m_inputContextsHasBeenSet = true;
237 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
247 template <typename OutputContextsT = Aws::Vector<OutputContext>>
248 void SetOutputContexts(OutputContextsT&& value) {
249 m_outputContextsHasBeenSet = true;
250 m_outputContexts = std::forward<OutputContextsT>(value);
251 }
252 template <typename OutputContextsT = Aws::Vector<OutputContext>>
253 CreateIntentResult& WithOutputContexts(OutputContextsT&& value) {
254 SetOutputContexts(std::forward<OutputContextsT>(value));
255 return *this;
256 }
257 template <typename OutputContextsT = OutputContext>
258 CreateIntentResult& AddOutputContexts(OutputContextsT&& value) {
259 m_outputContextsHasBeenSet = true;
260 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
261 return *this;
262 }
264
266
270 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
271 template <typename KendraConfigurationT = KendraConfiguration>
272 void SetKendraConfiguration(KendraConfigurationT&& value) {
273 m_kendraConfigurationHasBeenSet = true;
274 m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
275 }
276 template <typename KendraConfigurationT = KendraConfiguration>
277 CreateIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) {
278 SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetBotId() const { return m_botId; }
288 template <typename BotIdT = Aws::String>
289 void SetBotId(BotIdT&& value) {
290 m_botIdHasBeenSet = true;
291 m_botId = std::forward<BotIdT>(value);
292 }
293 template <typename BotIdT = Aws::String>
294 CreateIntentResult& WithBotId(BotIdT&& value) {
295 SetBotId(std::forward<BotIdT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
305 template <typename BotVersionT = Aws::String>
306 void SetBotVersion(BotVersionT&& value) {
307 m_botVersionHasBeenSet = true;
308 m_botVersion = std::forward<BotVersionT>(value);
309 }
310 template <typename BotVersionT = Aws::String>
311 CreateIntentResult& WithBotVersion(BotVersionT&& value) {
312 SetBotVersion(std::forward<BotVersionT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::String& GetLocaleId() const { return m_localeId; }
322 template <typename LocaleIdT = Aws::String>
323 void SetLocaleId(LocaleIdT&& value) {
324 m_localeIdHasBeenSet = true;
325 m_localeId = std::forward<LocaleIdT>(value);
326 }
327 template <typename LocaleIdT = Aws::String>
328 CreateIntentResult& WithLocaleId(LocaleIdT&& value) {
329 SetLocaleId(std::forward<LocaleIdT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
339 template <typename CreationDateTimeT = Aws::Utils::DateTime>
340 void SetCreationDateTime(CreationDateTimeT&& value) {
341 m_creationDateTimeHasBeenSet = true;
342 m_creationDateTime = std::forward<CreationDateTimeT>(value);
343 }
344 template <typename CreationDateTimeT = Aws::Utils::DateTime>
345 CreateIntentResult& WithCreationDateTime(CreationDateTimeT&& value) {
346 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
347 return *this;
348 }
350
352
356 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
357 template <typename InitialResponseSettingT = InitialResponseSetting>
358 void SetInitialResponseSetting(InitialResponseSettingT&& value) {
359 m_initialResponseSettingHasBeenSet = true;
360 m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
361 }
362 template <typename InitialResponseSettingT = InitialResponseSetting>
363 CreateIntentResult& WithInitialResponseSetting(InitialResponseSettingT&& value) {
364 SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
365 return *this;
366 }
368
370
374 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
375 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
376 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
377 m_qnAIntentConfigurationHasBeenSet = true;
378 m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
379 }
380 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
381 CreateIntentResult& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
382 SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
383 return *this;
384 }
386
388
391 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
392 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
393 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
394 m_qInConnectIntentConfigurationHasBeenSet = true;
395 m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
396 }
397 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
398 CreateIntentResult& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
399 SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
400 return *this;
401 }
403
405
406 inline const Aws::String& GetRequestId() const { return m_requestId; }
407 template <typename RequestIdT = Aws::String>
408 void SetRequestId(RequestIdT&& value) {
409 m_requestIdHasBeenSet = true;
410 m_requestId = std::forward<RequestIdT>(value);
411 }
412 template <typename RequestIdT = Aws::String>
413 CreateIntentResult& WithRequestId(RequestIdT&& value) {
414 SetRequestId(std::forward<RequestIdT>(value));
415 return *this;
416 }
418 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
419
420 private:
421 Aws::String m_intentId;
422
423 Aws::String m_intentName;
424
425 Aws::String m_intentDisplayName;
426
427 Aws::String m_description;
428
429 Aws::String m_parentIntentSignature;
430
431 Aws::Vector<SampleUtterance> m_sampleUtterances;
432
433 DialogCodeHookSettings m_dialogCodeHook;
434
435 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
436
437 IntentConfirmationSetting m_intentConfirmationSetting;
438
439 IntentClosingSetting m_intentClosingSetting;
440
441 Aws::Vector<InputContext> m_inputContexts;
442
443 Aws::Vector<OutputContext> m_outputContexts;
444
445 KendraConfiguration m_kendraConfiguration;
446
447 Aws::String m_botId;
448
449 Aws::String m_botVersion;
450
451 Aws::String m_localeId;
452
453 Aws::Utils::DateTime m_creationDateTime{};
454
455 InitialResponseSetting m_initialResponseSetting;
456
457 QnAIntentConfiguration m_qnAIntentConfiguration;
458
459 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
460
461 Aws::String m_requestId;
462 Aws::Http::HttpResponseCode m_HttpResponseCode;
463 bool m_intentIdHasBeenSet = false;
464 bool m_intentNameHasBeenSet = false;
465 bool m_intentDisplayNameHasBeenSet = false;
466 bool m_descriptionHasBeenSet = false;
467 bool m_parentIntentSignatureHasBeenSet = false;
468 bool m_sampleUtterancesHasBeenSet = false;
469 bool m_dialogCodeHookHasBeenSet = false;
470 bool m_fulfillmentCodeHookHasBeenSet = false;
471 bool m_intentConfirmationSettingHasBeenSet = false;
472 bool m_intentClosingSettingHasBeenSet = false;
473 bool m_inputContextsHasBeenSet = false;
474 bool m_outputContextsHasBeenSet = false;
475 bool m_kendraConfigurationHasBeenSet = false;
476 bool m_botIdHasBeenSet = false;
477 bool m_botVersionHasBeenSet = false;
478 bool m_localeIdHasBeenSet = false;
479 bool m_creationDateTimeHasBeenSet = false;
480 bool m_initialResponseSettingHasBeenSet = false;
481 bool m_qnAIntentConfigurationHasBeenSet = false;
482 bool m_qInConnectIntentConfigurationHasBeenSet = false;
483 bool m_requestIdHasBeenSet = false;
484};
485
486} // namespace Model
487} // namespace LexModelsV2
488} // namespace Aws
CreateIntentResult & WithParentIntentSignature(ParentIntentSignatureT &&value)
void SetInitialResponseSetting(InitialResponseSettingT &&value)
CreateIntentResult & WithBotVersion(BotVersionT &&value)
const KendraConfiguration & GetKendraConfiguration() const
CreateIntentResult & WithSampleUtterances(SampleUtterancesT &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
const DialogCodeHookSettings & GetDialogCodeHook() const
const InitialResponseSetting & GetInitialResponseSetting() const
CreateIntentResult & AddOutputContexts(OutputContextsT &&value)
CreateIntentResult & WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
CreateIntentResult & WithBotId(BotIdT &&value)
CreateIntentResult & WithLocaleId(LocaleIdT &&value)
const Aws::String & GetParentIntentSignature() const
const QInConnectIntentConfiguration & GetQInConnectIntentConfiguration() const
void SetIntentConfirmationSetting(IntentConfirmationSettingT &&value)
void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
CreateIntentResult & WithDialogCodeHook(DialogCodeHookT &&value)
void SetQnAIntentConfiguration(QnAIntentConfigurationT &&value)
CreateIntentResult & WithIntentName(IntentNameT &&value)
void SetIntentDisplayName(IntentDisplayNameT &&value)
AWS_LEXMODELSV2_API CreateIntentResult()=default
void SetCreationDateTime(CreationDateTimeT &&value)
CreateIntentResult & WithIntentClosingSetting(IntentClosingSettingT &&value)
CreateIntentResult & WithIntentDisplayName(IntentDisplayNameT &&value)
AWS_LEXMODELSV2_API CreateIntentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFulfillmentCodeHook(FulfillmentCodeHookT &&value)
const IntentClosingSetting & GetIntentClosingSetting() const
const Aws::Vector< OutputContext > & GetOutputContexts() const
const Aws::Vector< InputContext > & GetInputContexts() const
CreateIntentResult & WithInputContexts(InputContextsT &&value)
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
CreateIntentResult & WithCreationDateTime(CreationDateTimeT &&value)
CreateIntentResult & WithIntentId(IntentIdT &&value)
void SetDialogCodeHook(DialogCodeHookT &&value)
CreateIntentResult & AddInputContexts(InputContextsT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetOutputContexts(OutputContextsT &&value)
CreateIntentResult & WithQnAIntentConfiguration(QnAIntentConfigurationT &&value)
CreateIntentResult & WithIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const Aws::String & GetIntentDisplayName() const
void SetSampleUtterances(SampleUtterancesT &&value)
CreateIntentResult & WithFulfillmentCodeHook(FulfillmentCodeHookT &&value)
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
CreateIntentResult & WithInitialResponseSetting(InitialResponseSettingT &&value)
void SetKendraConfiguration(KendraConfigurationT &&value)
CreateIntentResult & WithKendraConfiguration(KendraConfigurationT &&value)
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
CreateIntentResult & AddSampleUtterances(SampleUtterancesT &&value)
void SetIntentClosingSetting(IntentClosingSettingT &&value)
AWS_LEXMODELSV2_API CreateIntentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateIntentResult & WithDescription(DescriptionT &&value)
CreateIntentResult & WithRequestId(RequestIdT &&value)
CreateIntentResult & WithOutputContexts(OutputContextsT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue