AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateIntentResult.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/SlotPriority.h>
21#include <aws/lexv2-models/model/InputContext.h>
22#include <aws/lexv2-models/model/OutputContext.h>
23#include <utility>
24
25namespace Aws
26{
27template<typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils
31{
32namespace Json
33{
34 class JsonValue;
35} // namespace Json
36} // namespace Utils
37namespace LexModelsV2
38{
39namespace Model
40{
42 {
43 public:
44 AWS_LEXMODELSV2_API UpdateIntentResult() = default;
47
48
50
53 inline const Aws::String& GetIntentId() const { return m_intentId; }
54 template<typename IntentIdT = Aws::String>
55 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
56 template<typename IntentIdT = Aws::String>
57 UpdateIntentResult& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetIntentName() const { return m_intentName; }
65 template<typename IntentNameT = Aws::String>
66 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
67 template<typename IntentNameT = Aws::String>
68 UpdateIntentResult& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 UpdateIntentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
87 template<typename ParentIntentSignatureT = Aws::String>
88 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
89 template<typename ParentIntentSignatureT = Aws::String>
90 UpdateIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
92
94
97 inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
98 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
99 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
100 template<typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
101 UpdateIntentResult& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
102 template<typename SampleUtterancesT = SampleUtterance>
103 UpdateIntentResult& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
105
107
111 inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
112 template<typename DialogCodeHookT = DialogCodeHookSettings>
113 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
114 template<typename DialogCodeHookT = DialogCodeHookSettings>
115 UpdateIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
117
119
123 inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
124 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
125 void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) { m_fulfillmentCodeHookHasBeenSet = true; m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value); }
126 template<typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
127 UpdateIntentResult& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) { SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value)); return *this;}
129
131
135 inline const Aws::Vector<SlotPriority>& GetSlotPriorities() const { return m_slotPriorities; }
136 template<typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
137 void SetSlotPriorities(SlotPrioritiesT&& value) { m_slotPrioritiesHasBeenSet = true; m_slotPriorities = std::forward<SlotPrioritiesT>(value); }
138 template<typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
139 UpdateIntentResult& WithSlotPriorities(SlotPrioritiesT&& value) { SetSlotPriorities(std::forward<SlotPrioritiesT>(value)); return *this;}
140 template<typename SlotPrioritiesT = SlotPriority>
141 UpdateIntentResult& AddSlotPriorities(SlotPrioritiesT&& value) { m_slotPrioritiesHasBeenSet = true; m_slotPriorities.emplace_back(std::forward<SlotPrioritiesT>(value)); return *this; }
143
145
149 inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
150 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
151 void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) { m_intentConfirmationSettingHasBeenSet = true; m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value); }
152 template<typename IntentConfirmationSettingT = IntentConfirmationSetting>
153 UpdateIntentResult& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) { SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value)); return *this;}
155
157
161 inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
162 template<typename IntentClosingSettingT = IntentClosingSetting>
163 void SetIntentClosingSetting(IntentClosingSettingT&& value) { m_intentClosingSettingHasBeenSet = true; m_intentClosingSetting = std::forward<IntentClosingSettingT>(value); }
164 template<typename IntentClosingSettingT = IntentClosingSetting>
165 UpdateIntentResult& WithIntentClosingSetting(IntentClosingSettingT&& value) { SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value)); return *this;}
167
169
173 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
174 template<typename InputContextsT = Aws::Vector<InputContext>>
175 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
176 template<typename InputContextsT = Aws::Vector<InputContext>>
177 UpdateIntentResult& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
178 template<typename InputContextsT = InputContext>
179 UpdateIntentResult& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
181
183
187 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
188 template<typename OutputContextsT = Aws::Vector<OutputContext>>
189 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
190 template<typename OutputContextsT = Aws::Vector<OutputContext>>
191 UpdateIntentResult& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
192 template<typename OutputContextsT = OutputContext>
193 UpdateIntentResult& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
195
197
201 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
202 template<typename KendraConfigurationT = KendraConfiguration>
203 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
204 template<typename KendraConfigurationT = KendraConfiguration>
205 UpdateIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
207
209
212 inline const Aws::String& GetBotId() const { return m_botId; }
213 template<typename BotIdT = Aws::String>
214 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
215 template<typename BotIdT = Aws::String>
216 UpdateIntentResult& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
218
220
224 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
225 template<typename BotVersionT = Aws::String>
226 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
227 template<typename BotVersionT = Aws::String>
228 UpdateIntentResult& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
230
232
235 inline const Aws::String& GetLocaleId() const { return m_localeId; }
236 template<typename LocaleIdT = Aws::String>
237 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
238 template<typename LocaleIdT = Aws::String>
239 UpdateIntentResult& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
241
243
246 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
247 template<typename CreationDateTimeT = Aws::Utils::DateTime>
248 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
249 template<typename CreationDateTimeT = Aws::Utils::DateTime>
250 UpdateIntentResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
252
254
257 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
258 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
259 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
260 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
261 UpdateIntentResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
263
265
269 inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
270 template<typename InitialResponseSettingT = InitialResponseSetting>
271 void SetInitialResponseSetting(InitialResponseSettingT&& value) { m_initialResponseSettingHasBeenSet = true; m_initialResponseSetting = std::forward<InitialResponseSettingT>(value); }
272 template<typename InitialResponseSettingT = InitialResponseSetting>
273 UpdateIntentResult& WithInitialResponseSetting(InitialResponseSettingT&& value) { SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value)); return *this;}
275
277
281 inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
282 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
283 void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) { m_qnAIntentConfigurationHasBeenSet = true; m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value); }
284 template<typename QnAIntentConfigurationT = QnAIntentConfiguration>
285 UpdateIntentResult& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) { SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value)); return *this;}
287
289
292 inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
293 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
294 void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { m_qInConnectIntentConfigurationHasBeenSet = true; m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value); }
295 template<typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
296 UpdateIntentResult& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) { SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value)); return *this;}
298
300
301 inline const Aws::String& GetRequestId() const { return m_requestId; }
302 template<typename RequestIdT = Aws::String>
303 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
304 template<typename RequestIdT = Aws::String>
305 UpdateIntentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
307 private:
308
309 Aws::String m_intentId;
310 bool m_intentIdHasBeenSet = false;
311
312 Aws::String m_intentName;
313 bool m_intentNameHasBeenSet = false;
314
315 Aws::String m_description;
316 bool m_descriptionHasBeenSet = false;
317
318 Aws::String m_parentIntentSignature;
319 bool m_parentIntentSignatureHasBeenSet = false;
320
321 Aws::Vector<SampleUtterance> m_sampleUtterances;
322 bool m_sampleUtterancesHasBeenSet = false;
323
324 DialogCodeHookSettings m_dialogCodeHook;
325 bool m_dialogCodeHookHasBeenSet = false;
326
327 FulfillmentCodeHookSettings m_fulfillmentCodeHook;
328 bool m_fulfillmentCodeHookHasBeenSet = false;
329
330 Aws::Vector<SlotPriority> m_slotPriorities;
331 bool m_slotPrioritiesHasBeenSet = false;
332
333 IntentConfirmationSetting m_intentConfirmationSetting;
334 bool m_intentConfirmationSettingHasBeenSet = false;
335
336 IntentClosingSetting m_intentClosingSetting;
337 bool m_intentClosingSettingHasBeenSet = false;
338
339 Aws::Vector<InputContext> m_inputContexts;
340 bool m_inputContextsHasBeenSet = false;
341
342 Aws::Vector<OutputContext> m_outputContexts;
343 bool m_outputContextsHasBeenSet = false;
344
345 KendraConfiguration m_kendraConfiguration;
346 bool m_kendraConfigurationHasBeenSet = false;
347
348 Aws::String m_botId;
349 bool m_botIdHasBeenSet = false;
350
351 Aws::String m_botVersion;
352 bool m_botVersionHasBeenSet = false;
353
354 Aws::String m_localeId;
355 bool m_localeIdHasBeenSet = false;
356
357 Aws::Utils::DateTime m_creationDateTime{};
358 bool m_creationDateTimeHasBeenSet = false;
359
360 Aws::Utils::DateTime m_lastUpdatedDateTime{};
361 bool m_lastUpdatedDateTimeHasBeenSet = false;
362
363 InitialResponseSetting m_initialResponseSetting;
364 bool m_initialResponseSettingHasBeenSet = false;
365
366 QnAIntentConfiguration m_qnAIntentConfiguration;
367 bool m_qnAIntentConfigurationHasBeenSet = false;
368
369 QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
370 bool m_qInConnectIntentConfigurationHasBeenSet = false;
371
372 Aws::String m_requestId;
373 bool m_requestIdHasBeenSet = false;
374 };
375
376} // namespace Model
377} // namespace LexModelsV2
378} // namespace Aws
void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
void SetFulfillmentCodeHook(FulfillmentCodeHookT &&value)
void SetIntentConfirmationSetting(IntentConfirmationSettingT &&value)
void SetInitialResponseSetting(InitialResponseSettingT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::Vector< SampleUtterance > & GetSampleUtterances() const
UpdateIntentResult & AddInputContexts(InputContextsT &&value)
UpdateIntentResult & WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT &&value)
UpdateIntentResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::Vector< SlotPriority > & GetSlotPriorities() const
UpdateIntentResult & WithDialogCodeHook(DialogCodeHookT &&value)
UpdateIntentResult & WithKendraConfiguration(KendraConfigurationT &&value)
AWS_LEXMODELSV2_API UpdateIntentResult()=default
UpdateIntentResult & AddSlotPriorities(SlotPrioritiesT &&value)
const FulfillmentCodeHookSettings & GetFulfillmentCodeHook() const
UpdateIntentResult & WithIntentId(IntentIdT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
AWS_LEXMODELSV2_API UpdateIntentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const KendraConfiguration & GetKendraConfiguration() const
UpdateIntentResult & WithLocaleId(LocaleIdT &&value)
UpdateIntentResult & WithInitialResponseSetting(InitialResponseSettingT &&value)
UpdateIntentResult & WithBotVersion(BotVersionT &&value)
void SetSampleUtterances(SampleUtterancesT &&value)
UpdateIntentResult & AddOutputContexts(OutputContextsT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
void SetQnAIntentConfiguration(QnAIntentConfigurationT &&value)
const QInConnectIntentConfiguration & GetQInConnectIntentConfiguration() const
void SetKendraConfiguration(KendraConfigurationT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const QnAIntentConfiguration & GetQnAIntentConfiguration() const
UpdateIntentResult & WithIntentClosingSetting(IntentClosingSettingT &&value)
UpdateIntentResult & WithOutputContexts(OutputContextsT &&value)
const InitialResponseSetting & GetInitialResponseSetting() const
void SetDialogCodeHook(DialogCodeHookT &&value)
UpdateIntentResult & WithSampleUtterances(SampleUtterancesT &&value)
UpdateIntentResult & WithParentIntentSignature(ParentIntentSignatureT &&value)
const IntentClosingSetting & GetIntentClosingSetting() const
UpdateIntentResult & WithQnAIntentConfiguration(QnAIntentConfigurationT &&value)
UpdateIntentResult & WithSlotPriorities(SlotPrioritiesT &&value)
UpdateIntentResult & WithIntentName(IntentNameT &&value)
void SetSlotPriorities(SlotPrioritiesT &&value)
void SetOutputContexts(OutputContextsT &&value)
UpdateIntentResult & WithInputContexts(InputContextsT &&value)
UpdateIntentResult & WithRequestId(RequestIdT &&value)
AWS_LEXMODELSV2_API UpdateIntentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateIntentResult & WithCreationDateTime(CreationDateTimeT &&value)
const DialogCodeHookSettings & GetDialogCodeHook() const
const Aws::Utils::DateTime & GetCreationDateTime() const
const IntentConfirmationSetting & GetIntentConfirmationSetting() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
UpdateIntentResult & WithBotId(BotIdT &&value)
const Aws::Vector< InputContext > & GetInputContexts() const
UpdateIntentResult & WithIntentConfirmationSetting(IntentConfirmationSettingT &&value)
const Aws::String & GetParentIntentSignature() const
void SetIntentClosingSetting(IntentClosingSettingT &&value)
UpdateIntentResult & WithFulfillmentCodeHook(FulfillmentCodeHookT &&value)
UpdateIntentResult & AddSampleUtterances(SampleUtterancesT &&value)
UpdateIntentResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue