AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/SampleUtterance.h>
19#include <aws/lexv2-models/model/InputContext.h>
20#include <aws/lexv2-models/model/OutputContext.h>
21#include <utility>
22
23namespace Aws
24{
25namespace LexModelsV2
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_LEXMODELSV2_API CreateIntentRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateIntent"; }
42
43 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
44
45
47
51 inline const Aws::String& GetIntentName() const{ return m_intentName; }
52 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
53 inline void SetIntentName(const Aws::String& value) { m_intentNameHasBeenSet = true; m_intentName = value; }
54 inline void SetIntentName(Aws::String&& value) { m_intentNameHasBeenSet = true; m_intentName = std::move(value); }
55 inline void SetIntentName(const char* value) { m_intentNameHasBeenSet = true; m_intentName.assign(value); }
56 inline CreateIntentRequest& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
57 inline CreateIntentRequest& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
58 inline CreateIntentRequest& WithIntentName(const char* value) { SetIntentName(value); return *this;}
60
62
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline CreateIntentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline CreateIntentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline CreateIntentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
80 inline const Aws::String& GetParentIntentSignature() const{ return m_parentIntentSignature; }
81 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
82 inline void SetParentIntentSignature(const Aws::String& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = value; }
83 inline void SetParentIntentSignature(Aws::String&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::move(value); }
84 inline void SetParentIntentSignature(const char* value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature.assign(value); }
86 inline CreateIntentRequest& WithParentIntentSignature(Aws::String&& value) { SetParentIntentSignature(std::move(value)); return *this;}
87 inline CreateIntentRequest& WithParentIntentSignature(const char* value) { SetParentIntentSignature(value); return *this;}
89
91
97 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const{ return m_sampleUtterances; }
98 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
99 inline void SetSampleUtterances(const Aws::Vector<SampleUtterance>& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = value; }
100 inline void SetSampleUtterances(Aws::Vector<SampleUtterance>&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::move(value); }
103 inline CreateIntentRequest& AddSampleUtterances(const SampleUtterance& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(value); return *this; }
104 inline CreateIntentRequest& AddSampleUtterances(SampleUtterance&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(std::move(value)); return *this; }
106
108
118 inline const DialogCodeHookSettings& GetDialogCodeHook() const{ return m_dialogCodeHook; }
119 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
120 inline void SetDialogCodeHook(const DialogCodeHookSettings& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = value; }
121 inline void SetDialogCodeHook(DialogCodeHookSettings&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::move(value); }
123 inline CreateIntentRequest& WithDialogCodeHook(DialogCodeHookSettings&& value) { SetDialogCodeHook(std::move(value)); return *this;}
125
127
134 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const{ return m_fulfillmentCodeHook; }
135 inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
136 inline void SetFulfillmentCodeHook(const FulfillmentCodeHookSettings& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = value; }
137 inline void SetFulfillmentCodeHook(FulfillmentCodeHookSettings&& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = std::move(value); }
141
143
148 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const{ return m_intentConfirmationSetting; }
149 inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
150 inline void SetIntentConfirmationSetting(const IntentConfirmationSetting& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = value; }
151 inline void SetIntentConfirmationSetting(IntentConfirmationSetting&& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = std::move(value); }
155
157
161 inline const IntentClosingSetting& GetIntentClosingSetting() const{ return m_intentClosingSetting; }
162 inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
163 inline void SetIntentClosingSetting(const IntentClosingSetting& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = value; }
164 inline void SetIntentClosingSetting(IntentClosingSetting&& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = std::move(value); }
168
170
183 inline const Aws::Vector<InputContext>& GetInputContexts() const{ return m_inputContexts; }
184 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
185 inline void SetInputContexts(const Aws::Vector<InputContext>& value) { m_inputContextsHasBeenSet = true; m_inputContexts = value; }
186 inline void SetInputContexts(Aws::Vector<InputContext>&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::move(value); }
188 inline CreateIntentRequest& WithInputContexts(Aws::Vector<InputContext>&& value) { SetInputContexts(std::move(value)); return *this;}
189 inline CreateIntentRequest& AddInputContexts(const InputContext& value) { m_inputContextsHasBeenSet = true; m_inputContexts.push_back(value); return *this; }
190 inline CreateIntentRequest& AddInputContexts(InputContext&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.push_back(std::move(value)); return *this; }
192
194
204 inline const Aws::Vector<OutputContext>& GetOutputContexts() const{ return m_outputContexts; }
205 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
206 inline void SetOutputContexts(const Aws::Vector<OutputContext>& value) { m_outputContextsHasBeenSet = true; m_outputContexts = value; }
207 inline void SetOutputContexts(Aws::Vector<OutputContext>&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::move(value); }
209 inline CreateIntentRequest& WithOutputContexts(Aws::Vector<OutputContext>&& value) { SetOutputContexts(std::move(value)); return *this;}
210 inline CreateIntentRequest& AddOutputContexts(const OutputContext& value) { m_outputContextsHasBeenSet = true; m_outputContexts.push_back(value); return *this; }
211 inline CreateIntentRequest& AddOutputContexts(OutputContext&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.push_back(std::move(value)); return *this; }
213
215
221 inline const KendraConfiguration& GetKendraConfiguration() const{ return m_kendraConfiguration; }
222 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
223 inline void SetKendraConfiguration(const KendraConfiguration& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = value; }
224 inline void SetKendraConfiguration(KendraConfiguration&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::move(value); }
228
230
233 inline const Aws::String& GetBotId() const{ return m_botId; }
234 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
235 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
236 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
237 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
238 inline CreateIntentRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
239 inline CreateIntentRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
240 inline CreateIntentRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
242
244
247 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
248 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
249 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
250 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
251 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
252 inline CreateIntentRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
253 inline CreateIntentRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
254 inline CreateIntentRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
256
258
265 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
266 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
267 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
268 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
269 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
270 inline CreateIntentRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
271 inline CreateIntentRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
272 inline CreateIntentRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
274
276
280 inline const InitialResponseSetting& GetInitialResponseSetting() const{ return m_initialResponseSetting; }
281 inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
282 inline void SetInitialResponseSetting(const InitialResponseSetting& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = value; }
283 inline void SetInitialResponseSetting(InitialResponseSetting&& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = std::move(value); }
287
289
295 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const{ return m_qnAIntentConfiguration; }
296 inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
297 inline void SetQnAIntentConfiguration(const QnAIntentConfiguration& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = value; }
298 inline void SetQnAIntentConfiguration(QnAIntentConfiguration&& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = std::move(value); }
302 private:
303
304 Aws::String m_intentName;
305 bool m_intentNameHasBeenSet = false;
306
307 Aws::String m_description;
308 bool m_descriptionHasBeenSet = false;
309
310 Aws::String m_parentIntentSignature;
311 bool m_parentIntentSignatureHasBeenSet = false;
312
313 Aws::Vector<SampleUtterance> m_sampleUtterances;
314 bool m_sampleUtterancesHasBeenSet = false;
315
316 DialogCodeHookSettings m_dialogCodeHook;
317 bool m_dialogCodeHookHasBeenSet = false;
318
319 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
320 bool m_fulfillmentCodeHookHasBeenSet = false;
321
322 IntentConfirmationSetting m_intentConfirmationSetting;
323 bool m_intentConfirmationSettingHasBeenSet = false;
324
325 IntentClosingSetting m_intentClosingSetting;
326 bool m_intentClosingSettingHasBeenSet = false;
327
328 Aws::Vector<InputContext> m_inputContexts;
329 bool m_inputContextsHasBeenSet = false;
330
331 Aws::Vector<OutputContext> m_outputContexts;
332 bool m_outputContextsHasBeenSet = false;
333
334 KendraConfiguration m_kendraConfiguration;
335 bool m_kendraConfigurationHasBeenSet = false;
336
337 Aws::String m_botId;
338 bool m_botIdHasBeenSet = false;
339
340 Aws::String m_botVersion;
341 bool m_botVersionHasBeenSet = false;
342
343 Aws::String m_localeId;
344 bool m_localeIdHasBeenSet = false;
345
346 InitialResponseSetting m_initialResponseSetting;
347 bool m_initialResponseSettingHasBeenSet = false;
348
349 QnAIntentConfiguration m_qnAIntentConfiguration;
350 bool m_qnAIntentConfigurationHasBeenSet = false;
351 };
352
353} // namespace Model
354} // namespace LexModelsV2
355} // namespace Aws
CreateIntentRequest & WithDialogCodeHook(DialogCodeHookSettings &&value)
CreateIntentRequest & WithDialogCodeHook(const DialogCodeHookSettings &value)
void SetInitialResponseSetting(const InitialResponseSetting &value)
CreateIntentRequest & WithInitialResponseSetting(InitialResponseSetting &&value)
CreateIntentRequest & WithIntentName(Aws::String &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
CreateIntentRequest & WithDescription(const char *value)
CreateIntentRequest & WithParentIntentSignature(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateIntentRequest & WithBotVersion(const Aws::String &value)
void SetOutputContexts(const Aws::Vector< OutputContext > &value)
CreateIntentRequest & WithOutputContexts(Aws::Vector< OutputContext > &&value)
CreateIntentRequest & WithInputContexts(const Aws::Vector< InputContext > &value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
void SetIntentConfirmationSetting(const IntentConfirmationSetting &value)
virtual const char * GetServiceRequestName() const override
CreateIntentRequest & WithBotVersion(const char *value)
void SetDialogCodeHook(const DialogCodeHookSettings &value)
void SetIntentConfirmationSetting(IntentConfirmationSetting &&value)
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
CreateIntentRequest & WithOutputContexts(const Aws::Vector< OutputContext > &value)
CreateIntentRequest & WithBotId(const Aws::String &value)
CreateIntentRequest & WithDescription(const Aws::String &value)
void SetQnAIntentConfiguration(const QnAIntentConfiguration &value)
void SetQnAIntentConfiguration(QnAIntentConfiguration &&value)
CreateIntentRequest & WithParentIntentSignature(Aws::String &&value)
CreateIntentRequest & AddOutputContexts(OutputContext &&value)
void SetIntentClosingSetting(IntentClosingSetting &&value)
CreateIntentRequest & WithKendraConfiguration(KendraConfiguration &&value)
void SetKendraConfiguration(KendraConfiguration &&value)
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
CreateIntentRequest & AddOutputContexts(const OutputContext &value)
CreateIntentRequest & WithIntentConfirmationSetting(IntentConfirmationSetting &&value)
CreateIntentRequest & WithIntentName(const char *value)
void SetFulfillmentCodeHook(const FulfillmentCodeHookSettings &value)
CreateIntentRequest & WithIntentConfirmationSetting(const IntentConfirmationSetting &value)
CreateIntentRequest & WithLocaleId(Aws::String &&value)
CreateIntentRequest & WithQnAIntentConfiguration(QnAIntentConfiguration &&value)
CreateIntentRequest & WithLocaleId(const Aws::String &value)
void SetInputContexts(Aws::Vector< InputContext > &&value)
void SetIntentClosingSetting(const IntentClosingSetting &value)
CreateIntentRequest & WithParentIntentSignature(const Aws::String &value)
CreateIntentRequest & AddInputContexts(InputContext &&value)
CreateIntentRequest & WithBotVersion(Aws::String &&value)
void SetSampleUtterances(Aws::Vector< SampleUtterance > &&value)
CreateIntentRequest & WithInputContexts(Aws::Vector< InputContext > &&value)
CreateIntentRequest & WithSampleUtterances(Aws::Vector< SampleUtterance > &&value)
void SetParentIntentSignature(const Aws::String &value)
const Aws::Vector< InputContext > & GetInputContexts() const
const IntentClosingSetting & GetIntentClosingSetting() const
CreateIntentRequest & WithIntentName(const Aws::String &value)
const DialogCodeHookSettings & GetDialogCodeHook() const
CreateIntentRequest & WithKendraConfiguration(const KendraConfiguration &value)
CreateIntentRequest & AddInputContexts(const InputContext &value)
void SetOutputContexts(Aws::Vector< OutputContext > &&value)
CreateIntentRequest & AddSampleUtterances(SampleUtterance &&value)
CreateIntentRequest & AddSampleUtterances(const SampleUtterance &value)
CreateIntentRequest & WithLocaleId(const char *value)
CreateIntentRequest & WithFulfillmentCodeHook(FulfillmentCodeHookSettings &&value)
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
void SetSampleUtterances(const Aws::Vector< SampleUtterance > &value)
CreateIntentRequest & WithQnAIntentConfiguration(const QnAIntentConfiguration &value)
CreateIntentRequest & WithIntentClosingSetting(IntentClosingSetting &&value)
void SetKendraConfiguration(const KendraConfiguration &value)
CreateIntentRequest & WithBotId(const char *value)
const InitialResponseSetting & GetInitialResponseSetting() const
CreateIntentRequest & WithBotId(Aws::String &&value)
void SetInputContexts(const Aws::Vector< InputContext > &value)
void SetInitialResponseSetting(InitialResponseSetting &&value)
CreateIntentRequest & WithIntentClosingSetting(const IntentClosingSetting &value)
CreateIntentRequest & WithSampleUtterances(const Aws::Vector< SampleUtterance > &value)
void SetDialogCodeHook(DialogCodeHookSettings &&value)
CreateIntentRequest & WithInitialResponseSetting(const InitialResponseSetting &value)
void SetFulfillmentCodeHook(FulfillmentCodeHookSettings &&value)
const KendraConfiguration & GetKendraConfiguration() const
void SetDescription(const Aws::String &value)
CreateIntentRequest & WithFulfillmentCodeHook(const FulfillmentCodeHookSettings &value)
CreateIntentRequest & WithDescription(Aws::String &&value)
const Aws::String & GetParentIntentSignature() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector