AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateIntentResult.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
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace LexModelsV2 {
35namespace Model {
37 public:
38 AWS_LEXMODELSV2_API CreateIntentResult() = default;
41
43
46 inline const Aws::String& GetIntentId() const { return m_intentId; }
47 template <typename IntentIdT = Aws::String>
48 void SetIntentId(IntentIdT&& value) {
49 m_intentIdHasBeenSet = true;
50 m_intentId = std::forward<IntentIdT>(value);
51 }
52 template <typename IntentIdT = Aws::String>
53 CreateIntentResult& WithIntentId(IntentIdT&& value) {
54 SetIntentId(std::forward<IntentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIntentName() const { return m_intentName; }
64 template <typename IntentNameT = Aws::String>
65 void SetIntentName(IntentNameT&& value) {
66 m_intentNameHasBeenSet = true;
67 m_intentName = std::forward<IntentNameT>(value);
68 }
69 template <typename IntentNameT = Aws::String>
70 CreateIntentResult& WithIntentName(IntentNameT&& value) {
71 SetIntentName(std::forward<IntentNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
81 template <typename IntentDisplayNameT = Aws::String>
82 void SetIntentDisplayName(IntentDisplayNameT&& value) {
83 m_intentDisplayNameHasBeenSet = true;
84 m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
85 }
86 template <typename IntentDisplayNameT = Aws::String>
87 CreateIntentResult& WithIntentDisplayName(IntentDisplayNameT&& value) {
88 SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 CreateIntentResult& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
115 template <typename ParentIntentSignatureT = Aws::String>
116 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
117 m_parentIntentSignatureHasBeenSet = true;
118 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
119 }
120 template <typename ParentIntentSignatureT = Aws::String>
121 CreateIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) {
122 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
132 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
133 void SetSampleUtterances(SampleUtterancesT&& value) {
134 m_sampleUtterancesHasBeenSet = true;
135 m_sampleUtterances = std::forward<SampleUtterancesT>(value);
136 }
137 template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
138 CreateIntentResult& WithSampleUtterances(SampleUtterancesT&& value) {
139 SetSampleUtterances(std::forward<SampleUtterancesT>(value));
140 return *this;
141 }
142 template <typename SampleUtterancesT = SampleUtterance>
143 CreateIntentResult& AddSampleUtterances(SampleUtterancesT&& value) {
144 m_sampleUtterancesHasBeenSet = true;
145 m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
146 return *this;
147 }
149
151
154 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
155 template <typename DialogCodeHookT = DialogCodeHookSettings>
156 void SetDialogCodeHook(DialogCodeHookT&& value) {
157 m_dialogCodeHookHasBeenSet = true;
158 m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
159 }
160 template <typename DialogCodeHookT = DialogCodeHookSettings>
161 CreateIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) {
162 SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
163 return *this;
164 }
166
168
171 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
172 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
173 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
174 m_fulfillmentCodeHookHasBeenSet = true;
175 m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
176 }
177 template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
178 CreateIntentResult& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
179 SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
180 return *this;
181 }
183
185
188 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
189 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
190 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
191 m_intentConfirmationSettingHasBeenSet = true;
192 m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
193 }
194 template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
195 CreateIntentResult& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
196 SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
197 return *this;
198 }
200
202
205 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
206 template <typename IntentClosingSettingT = IntentClosingSetting>
207 void SetIntentClosingSetting(IntentClosingSettingT&& value) {
208 m_intentClosingSettingHasBeenSet = true;
209 m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
210 }
211 template <typename IntentClosingSettingT = IntentClosingSetting>
212 CreateIntentResult& WithIntentClosingSetting(IntentClosingSettingT&& value) {
213 SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
223 template <typename InputContextsT = Aws::Vector<InputContext>>
224 void SetInputContexts(InputContextsT&& value) {
225 m_inputContextsHasBeenSet = true;
226 m_inputContexts = std::forward<InputContextsT>(value);
227 }
228 template <typename InputContextsT = Aws::Vector<InputContext>>
229 CreateIntentResult& WithInputContexts(InputContextsT&& value) {
230 SetInputContexts(std::forward<InputContextsT>(value));
231 return *this;
232 }
233 template <typename InputContextsT = InputContext>
234 CreateIntentResult& AddInputContexts(InputContextsT&& value) {
235 m_inputContextsHasBeenSet = true;
236 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
246 template <typename OutputContextsT = Aws::Vector<OutputContext>>
247 void SetOutputContexts(OutputContextsT&& value) {
248 m_outputContextsHasBeenSet = true;
249 m_outputContexts = std::forward<OutputContextsT>(value);
250 }
251 template <typename OutputContextsT = Aws::Vector<OutputContext>>
252 CreateIntentResult& WithOutputContexts(OutputContextsT&& value) {
253 SetOutputContexts(std::forward<OutputContextsT>(value));
254 return *this;
255 }
256 template <typename OutputContextsT = OutputContext>
257 CreateIntentResult& AddOutputContexts(OutputContextsT&& value) {
258 m_outputContextsHasBeenSet = true;
259 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
260 return *this;
261 }
263
265
269 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
270 template <typename KendraConfigurationT = KendraConfiguration>
271 void SetKendraConfiguration(KendraConfigurationT&& value) {
272 m_kendraConfigurationHasBeenSet = true;
273 m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
274 }
275 template <typename KendraConfigurationT = KendraConfiguration>
276 CreateIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) {
277 SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::String& GetBotId() const { return m_botId; }
287 template <typename BotIdT = Aws::String>
288 void SetBotId(BotIdT&& value) {
289 m_botIdHasBeenSet = true;
290 m_botId = std::forward<BotIdT>(value);
291 }
292 template <typename BotIdT = Aws::String>
293 CreateIntentResult& WithBotId(BotIdT&& value) {
294 SetBotId(std::forward<BotIdT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
304 template <typename BotVersionT = Aws::String>
305 void SetBotVersion(BotVersionT&& value) {
306 m_botVersionHasBeenSet = true;
307 m_botVersion = std::forward<BotVersionT>(value);
308 }
309 template <typename BotVersionT = Aws::String>
310 CreateIntentResult& WithBotVersion(BotVersionT&& value) {
311 SetBotVersion(std::forward<BotVersionT>(value));
312 return *this;
313 }
315
317
320 inline const Aws::String& GetLocaleId() const { return m_localeId; }
321 template <typename LocaleIdT = Aws::String>
322 void SetLocaleId(LocaleIdT&& value) {
323 m_localeIdHasBeenSet = true;
324 m_localeId = std::forward<LocaleIdT>(value);
325 }
326 template <typename LocaleIdT = Aws::String>
327 CreateIntentResult& WithLocaleId(LocaleIdT&& value) {
328 SetLocaleId(std::forward<LocaleIdT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
338 template <typename CreationDateTimeT = Aws::Utils::DateTime>
339 void SetCreationDateTime(CreationDateTimeT&& value) {
340 m_creationDateTimeHasBeenSet = true;
341 m_creationDateTime = std::forward<CreationDateTimeT>(value);
342 }
343 template <typename CreationDateTimeT = Aws::Utils::DateTime>
344 CreateIntentResult& WithCreationDateTime(CreationDateTimeT&& value) {
345 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
346 return *this;
347 }
349
351
355 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
356 template <typename InitialResponseSettingT = InitialResponseSetting>
357 void SetInitialResponseSetting(InitialResponseSettingT&& value) {
358 m_initialResponseSettingHasBeenSet = true;
359 m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
360 }
361 template <typename InitialResponseSettingT = InitialResponseSetting>
362 CreateIntentResult& WithInitialResponseSetting(InitialResponseSettingT&& value) {
363 SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
364 return *this;
365 }
367
369
373 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
374 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
375 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
376 m_qnAIntentConfigurationHasBeenSet = true;
377 m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
378 }
379 template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
380 CreateIntentResult& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
381 SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
382 return *this;
383 }
385
387
390 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
391 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
392 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
393 m_qInConnectIntentConfigurationHasBeenSet = true;
394 m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
395 }
396 template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
397 CreateIntentResult& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
398 SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
399 return *this;
400 }
402
404
405 inline const Aws::String& GetRequestId() const { return m_requestId; }
406 template <typename RequestIdT = Aws::String>
407 void SetRequestId(RequestIdT&& value) {
408 m_requestIdHasBeenSet = true;
409 m_requestId = std::forward<RequestIdT>(value);
410 }
411 template <typename RequestIdT = Aws::String>
412 CreateIntentResult& WithRequestId(RequestIdT&& value) {
413 SetRequestId(std::forward<RequestIdT>(value));
414 return *this;
415 }
417 private:
418 Aws::String m_intentId;
419
420 Aws::String m_intentName;
421
422 Aws::String m_intentDisplayName;
423
424 Aws::String m_description;
425
426 Aws::String m_parentIntentSignature;
427
428 Aws::Vector<SampleUtterance> m_sampleUtterances;
429
430 DialogCodeHookSettings m_dialogCodeHook;
431
432 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
433
434 IntentConfirmationSetting m_intentConfirmationSetting;
435
436 IntentClosingSetting m_intentClosingSetting;
437
438 Aws::Vector<InputContext> m_inputContexts;
439
440 Aws::Vector<OutputContext> m_outputContexts;
441
442 KendraConfiguration m_kendraConfiguration;
443
444 Aws::String m_botId;
445
446 Aws::String m_botVersion;
447
448 Aws::String m_localeId;
449
450 Aws::Utils::DateTime m_creationDateTime{};
451
452 InitialResponseSetting m_initialResponseSetting;
453
454 QnAIntentConfiguration m_qnAIntentConfiguration;
455
456 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
457
458 Aws::String m_requestId;
459 bool m_intentIdHasBeenSet = false;
460 bool m_intentNameHasBeenSet = false;
461 bool m_intentDisplayNameHasBeenSet = false;
462 bool m_descriptionHasBeenSet = false;
463 bool m_parentIntentSignatureHasBeenSet = false;
464 bool m_sampleUtterancesHasBeenSet = false;
465 bool m_dialogCodeHookHasBeenSet = false;
466 bool m_fulfillmentCodeHookHasBeenSet = false;
467 bool m_intentConfirmationSettingHasBeenSet = false;
468 bool m_intentClosingSettingHasBeenSet = false;
469 bool m_inputContextsHasBeenSet = false;
470 bool m_outputContextsHasBeenSet = false;
471 bool m_kendraConfigurationHasBeenSet = false;
472 bool m_botIdHasBeenSet = false;
473 bool m_botVersionHasBeenSet = false;
474 bool m_localeIdHasBeenSet = false;
475 bool m_creationDateTimeHasBeenSet = false;
476 bool m_initialResponseSettingHasBeenSet = false;
477 bool m_qnAIntentConfigurationHasBeenSet = false;
478 bool m_qInConnectIntentConfigurationHasBeenSet = false;
479 bool m_requestIdHasBeenSet = false;
480};
481
482} // namespace Model
483} // namespace LexModelsV2
484} // 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)
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