AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateIntentResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
11#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
12#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
13#include <aws/lexv2-models/model/IntentClosingSetting.h>
14#include <aws/lexv2-models/model/KendraConfiguration.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/lexv2-models/model/InitialResponseSetting.h>
17#include <aws/lexv2-models/model/QnAIntentConfiguration.h>
18#include <aws/lexv2-models/model/QInConnectIntentConfiguration.h>
19#include <aws/lexv2-models/model/SampleUtterance.h>
20#include <aws/lexv2-models/model/InputContext.h>
21#include <aws/lexv2-models/model/OutputContext.h>
22#include <utility>
23
24namespace Aws
25{
26template<typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34} // namespace Json
35} // namespace Utils
36namespace LexModelsV2
37{
38namespace Model
39{
41 {
42 public:
43 AWS_LEXMODELSV2_API CreateIntentResult() = default;
46
47
49
52 inline const Aws::String& GetIntentId() const { return m_intentId; }
53 template<typename IntentIdT = Aws::String>
54 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
55 template<typename IntentIdT = Aws::String>
56 CreateIntentResult& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetIntentName() const { return m_intentName; }
64 template<typename IntentNameT = Aws::String>
65 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
66 template<typename IntentNameT = Aws::String>
67 CreateIntentResult& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 CreateIntentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
86 template<typename ParentIntentSignatureT = Aws::String>
87 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
88 template<typename ParentIntentSignatureT = Aws::String>
89 CreateIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
91
93
96 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
97 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
98 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
99 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
100 CreateIntentResult& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
101 template<typename SampleUtterancesT = SampleUtterance>
102 CreateIntentResult& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
104
106
109 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
110 template<typename DialogCodeHookT = DialogCodeHookSettings>
111 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
112 template<typename DialogCodeHookT = DialogCodeHookSettings>
113 CreateIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
115
117
120 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
121 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
122 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value); }
123 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
124 CreateIntentResult& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) { SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value)); return *this;}
126
128
131 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
132 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
133 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value); }
134 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
135 CreateIntentResult& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) { SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value)); return *this;}
137
139
142 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
143 template<typename IntentClosingSettingT = IntentClosingSetting>
144 void SetIntentClosingSetting(IntentClosingSettingT&& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = std::forward<IntentClosingSettingT>(value); }
145 template<typename IntentClosingSettingT = IntentClosingSetting>
146 CreateIntentResult& WithIntentClosingSetting(IntentClosingSettingT&& value) { SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value)); return *this;}
148
150
153 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
154 template<typename InputContextsT = Aws::Vector<InputContext>>
155 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
156 template<typename InputContextsT = Aws::Vector<InputContext>>
157 CreateIntentResult& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
158 template<typename InputContextsT = InputContext>
159 CreateIntentResult& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
161
163
166 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
167 template<typename OutputContextsT = Aws::Vector<OutputContext>>
168 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
169 template<typename OutputContextsT = Aws::Vector<OutputContext>>
170 CreateIntentResult& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
171 template<typename OutputContextsT = OutputContext>
172 CreateIntentResult& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
174
176
180 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
181 template<typename KendraConfigurationT = KendraConfiguration>
182 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
183 template<typename KendraConfigurationT = KendraConfiguration>
184 CreateIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
186
188
191 inline const Aws::String& GetBotId() const { return m_botId; }
192 template<typename BotIdT = Aws::String>
193 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
194 template<typename BotIdT = Aws::String>
195 CreateIntentResult& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
197
199
202 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
203 template<typename BotVersionT = Aws::String>
204 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
205 template<typename BotVersionT = Aws::String>
206 CreateIntentResult& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
208
210
213 inline const Aws::String& GetLocaleId() const { return m_localeId; }
214 template<typename LocaleIdT = Aws::String>
215 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
216 template<typename LocaleIdT = Aws::String>
217 CreateIntentResult& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
219
221
224 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
225 template<typename CreationDateTimeT = Aws::Utils::DateTime>
226 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
227 template<typename CreationDateTimeT = Aws::Utils::DateTime>
228 CreateIntentResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
230
232
236 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
237 template<typename InitialResponseSettingT = InitialResponseSetting>
238 void SetInitialResponseSetting(InitialResponseSettingT&& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = std::forward<InitialResponseSettingT>(value); }
239 template<typename InitialResponseSettingT = InitialResponseSetting>
240 CreateIntentResult& WithInitialResponseSetting(InitialResponseSettingT&& value) { SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value)); return *this;}
242
244
248 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
249 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
250 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value); }
251 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
252 CreateIntentResult& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) { SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value)); return *this;}
254
256
259 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
260 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
261 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { m_qInConnectIntentConfigurationHasBeenSet = true; m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value); }
262 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
263 CreateIntentResult& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value)); return *this;}
265
267
268 inline const Aws::String& GetRequestId() const { return m_requestId; }
269 template<typename RequestIdT = Aws::String>
270 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
271 template<typename RequestIdT = Aws::String>
272 CreateIntentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
274 private:
275
276 Aws::String m_intentId;
277 bool m_intentIdHasBeenSet = false;
278
279 Aws::String m_intentName;
280 bool m_intentNameHasBeenSet = false;
281
282 Aws::String m_description;
283 bool m_descriptionHasBeenSet = false;
284
285 Aws::String m_parentIntentSignature;
286 bool m_parentIntentSignatureHasBeenSet = false;
287
288 Aws::Vector<SampleUtterance> m_sampleUtterances;
289 bool m_sampleUtterancesHasBeenSet = false;
290
291 DialogCodeHookSettings m_dialogCodeHook;
292 bool m_dialogCodeHookHasBeenSet = false;
293
294 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
295 bool m_fulfillmentCodeHookHasBeenSet = false;
296
297 IntentConfirmationSetting m_intentConfirmationSetting;
298 bool m_intentConfirmationSettingHasBeenSet = false;
299
300 IntentClosingSetting m_intentClosingSetting;
301 bool m_intentClosingSettingHasBeenSet = false;
302
303 Aws::Vector<InputContext> m_inputContexts;
304 bool m_inputContextsHasBeenSet = false;
305
306 Aws::Vector<OutputContext> m_outputContexts;
307 bool m_outputContextsHasBeenSet = false;
308
309 KendraConfiguration m_kendraConfiguration;
310 bool m_kendraConfigurationHasBeenSet = false;
311
312 Aws::String m_botId;
313 bool m_botIdHasBeenSet = false;
314
315 Aws::String m_botVersion;
316 bool m_botVersionHasBeenSet = false;
317
318 Aws::String m_localeId;
319 bool m_localeIdHasBeenSet = false;
320
321 Aws::Utils::DateTime m_creationDateTime{};
322 bool m_creationDateTimeHasBeenSet = false;
323
324 InitialResponseSetting m_initialResponseSetting;
325 bool m_initialResponseSettingHasBeenSet = false;
326
327 QnAIntentConfiguration m_qnAIntentConfiguration;
328 bool m_qnAIntentConfigurationHasBeenSet = false;
329
330 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
331 bool m_qInConnectIntentConfigurationHasBeenSet = false;
332
333 Aws::String m_requestId;
334 bool m_requestIdHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace LexModelsV2
339} // 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)
AWS_LEXMODELSV2_API CreateIntentResult()=default
void SetCreationDateTime(CreationDateTimeT &&value)
CreateIntentResult & WithIntentClosingSetting(IntentClosingSettingT &&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)
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