AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateIntentRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
12#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
13#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
14#include <aws/lexv2-models/model/IntentClosingSetting.h>
15#include <aws/lexv2-models/model/KendraConfiguration.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{
26namespace LexModelsV2
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_LEXMODELSV2_API CreateIntentRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateIntent"; }
43
44 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
45
46
48
52 inline const Aws::String& GetIntentName() const { return m_intentName; }
53 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
54 template<typename IntentNameT = Aws::String>
55 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
56 template<typename IntentNameT = Aws::String>
57 CreateIntentRequest& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
59
61
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 CreateIntentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
78 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
79 template<typename ParentIntentSignatureT = Aws::String>
80 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
81 template<typename ParentIntentSignatureT = Aws::String>
82 CreateIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
84
86
92 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
93 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
94 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
95 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
96 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
97 CreateIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
98 template<typename SampleUtterancesT = SampleUtterance>
99 CreateIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
101
103
113 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
114 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
115 template<typename DialogCodeHookT = DialogCodeHookSettings>
116 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
117 template<typename DialogCodeHookT = DialogCodeHookSettings>
118 CreateIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
120
122
129 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
130 inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
131 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
132 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value); }
133 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
134 CreateIntentRequest& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) { SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value)); return *this;}
136
138
143 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
144 inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
145 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
146 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value); }
147 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
148 CreateIntentRequest& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) { SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value)); return *this;}
150
152
156 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
157 inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
158 template<typename IntentClosingSettingT = IntentClosingSetting>
159 void SetIntentClosingSetting(IntentClosingSettingT&& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = std::forward<IntentClosingSettingT>(value); }
160 template<typename IntentClosingSettingT = IntentClosingSetting>
161 CreateIntentRequest& WithIntentClosingSetting(IntentClosingSettingT&& value) { SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value)); return *this;}
163
165
178 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
179 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
180 template<typename InputContextsT = Aws::Vector<InputContext>>
181 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
182 template<typename InputContextsT = Aws::Vector<InputContext>>
183 CreateIntentRequest& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
184 template<typename InputContextsT = InputContext>
185 CreateIntentRequest& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
187
189
199 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
200 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
201 template<typename OutputContextsT = Aws::Vector<OutputContext>>
202 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
203 template<typename OutputContextsT = Aws::Vector<OutputContext>>
204 CreateIntentRequest& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
205 template<typename OutputContextsT = OutputContext>
206 CreateIntentRequest& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
208
210
216 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
217 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
218 template<typename KendraConfigurationT = KendraConfiguration>
219 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
220 template<typename KendraConfigurationT = KendraConfiguration>
221 CreateIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
223
225
228 inline const Aws::String& GetBotId() const { return m_botId; }
229 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
230 template<typename BotIdT = Aws::String>
231 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
232 template<typename BotIdT = Aws::String>
233 CreateIntentRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
235
237
240 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
241 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
242 template<typename BotVersionT = Aws::String>
243 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
244 template<typename BotVersionT = Aws::String>
245 CreateIntentRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
247
249
256 inline const Aws::String& GetLocaleId() const { return m_localeId; }
257 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
258 template<typename LocaleIdT = Aws::String>
259 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
260 template<typename LocaleIdT = Aws::String>
261 CreateIntentRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
263
265
269 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
270 inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
271 template<typename InitialResponseSettingT = InitialResponseSetting>
272 void SetInitialResponseSetting(InitialResponseSettingT&& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = std::forward<InitialResponseSettingT>(value); }
273 template<typename InitialResponseSettingT = InitialResponseSetting>
274 CreateIntentRequest& WithInitialResponseSetting(InitialResponseSettingT&& value) { SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value)); return *this;}
276
278
284 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
285 inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
286 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
287 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value); }
288 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
289 CreateIntentRequest& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) { SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value)); return *this;}
291
293
296 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
297 inline bool QInConnectIntentConfigurationHasBeenSet() const { return m_qInConnectIntentConfigurationHasBeenSet; }
298 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
299 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { m_qInConnectIntentConfigurationHasBeenSet = true; m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value); }
300 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
301 CreateIntentRequest& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value)); return *this;}
303 private:
304
305 Aws::String m_intentName;
306 bool m_intentNameHasBeenSet = false;
307
308 Aws::String m_description;
309 bool m_descriptionHasBeenSet = false;
310
311 Aws::String m_parentIntentSignature;
312 bool m_parentIntentSignatureHasBeenSet = false;
313
314 Aws::Vector<SampleUtterance> m_sampleUtterances;
315 bool m_sampleUtterancesHasBeenSet = false;
316
317 DialogCodeHookSettings m_dialogCodeHook;
318 bool m_dialogCodeHookHasBeenSet = false;
319
320 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
321 bool m_fulfillmentCodeHookHasBeenSet = false;
322
323 IntentConfirmationSetting m_intentConfirmationSetting;
324 bool m_intentConfirmationSettingHasBeenSet = false;
325
326 IntentClosingSetting m_intentClosingSetting;
327 bool m_intentClosingSettingHasBeenSet = false;
328
329 Aws::Vector<InputContext> m_inputContexts;
330 bool m_inputContextsHasBeenSet = false;
331
332 Aws::Vector<OutputContext> m_outputContexts;
333 bool m_outputContextsHasBeenSet = false;
334
335 KendraConfiguration m_kendraConfiguration;
336 bool m_kendraConfigurationHasBeenSet = false;
337
338 Aws::String m_botId;
339 bool m_botIdHasBeenSet = false;
340
341 Aws::String m_botVersion;
342 bool m_botVersionHasBeenSet = false;
343
344 Aws::String m_localeId;
345 bool m_localeIdHasBeenSet = false;
346
347 InitialResponseSetting m_initialResponseSetting;
348 bool m_initialResponseSettingHasBeenSet = false;
349
350 QnAIntentConfiguration m_qnAIntentConfiguration;
351 bool m_qnAIntentConfigurationHasBeenSet = false;
352
353 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
354 bool m_qInConnectIntentConfigurationHasBeenSet = false;
355 };
356
357} // namespace Model
358} // namespace LexModelsV2
359} // 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)
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)
const KendraConfiguration & GetKendraConfiguration() const
const Aws::String & GetParentIntentSignature() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector