AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetIntentResult.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lex-models/model/Prompt.h>
11#include <aws/lex-models/model/Statement.h>
12#include <aws/lex-models/model/FollowUpPrompt.h>
13#include <aws/lex-models/model/CodeHook.h>
14#include <aws/lex-models/model/FulfillmentActivity.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/lex-models/model/KendraConfiguration.h>
17#include <aws/lex-models/model/Slot.h>
18#include <aws/lex-models/model/InputContext.h>
19#include <aws/lex-models/model/OutputContext.h>
20#include <utility>
21
22namespace Aws
23{
24template<typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace LexModelBuildingService
35{
36namespace Model
37{
39 {
40 public:
41 AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult() = default;
42 AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 GetIntentResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 GetIntentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Slot>& GetSlots() const { return m_slots; }
73 template<typename SlotsT = Aws::Vector<Slot>>
74 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
75 template<typename SlotsT = Aws::Vector<Slot>>
76 GetIntentResult& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
77 template<typename SlotsT = Slot>
78 GetIntentResult& AddSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots.emplace_back(std::forward<SlotsT>(value)); return *this; }
80
82
85 inline const Aws::Vector<Aws::String>& GetSampleUtterances() const { return m_sampleUtterances; }
86 template<typename SampleUtterancesT = Aws::Vector<Aws::String>>
87 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
88 template<typename SampleUtterancesT = Aws::Vector<Aws::String>>
89 GetIntentResult& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
90 template<typename SampleUtterancesT = Aws::String>
91 GetIntentResult& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
93
95
99 inline const Prompt& GetConfirmationPrompt() const { return m_confirmationPrompt; }
100 template<typename ConfirmationPromptT = Prompt>
101 void SetConfirmationPrompt(ConfirmationPromptT&& value) { m_confirmationPromptHasBeenSet = true; m_confirmationPrompt = std::forward<ConfirmationPromptT>(value); }
102 template<typename ConfirmationPromptT = Prompt>
103 GetIntentResult& WithConfirmationPrompt(ConfirmationPromptT&& value) { SetConfirmationPrompt(std::forward<ConfirmationPromptT>(value)); return *this;}
105
107
112 inline const Statement& GetRejectionStatement() const { return m_rejectionStatement; }
113 template<typename RejectionStatementT = Statement>
114 void SetRejectionStatement(RejectionStatementT&& value) { m_rejectionStatementHasBeenSet = true; m_rejectionStatement = std::forward<RejectionStatementT>(value); }
115 template<typename RejectionStatementT = Statement>
116 GetIntentResult& WithRejectionStatement(RejectionStatementT&& value) { SetRejectionStatement(std::forward<RejectionStatementT>(value)); return *this;}
118
120
125 inline const FollowUpPrompt& GetFollowUpPrompt() const { return m_followUpPrompt; }
126 template<typename FollowUpPromptT = FollowUpPrompt>
127 void SetFollowUpPrompt(FollowUpPromptT&& value) { m_followUpPromptHasBeenSet = true; m_followUpPrompt = std::forward<FollowUpPromptT>(value); }
128 template<typename FollowUpPromptT = FollowUpPrompt>
129 GetIntentResult& WithFollowUpPrompt(FollowUpPromptT&& value) { SetFollowUpPrompt(std::forward<FollowUpPromptT>(value)); return *this;}
131
133
137 inline const Statement& GetConclusionStatement() const { return m_conclusionStatement; }
138 template<typename ConclusionStatementT = Statement>
139 void SetConclusionStatement(ConclusionStatementT&& value) { m_conclusionStatementHasBeenSet = true; m_conclusionStatement = std::forward<ConclusionStatementT>(value); }
140 template<typename ConclusionStatementT = Statement>
141 GetIntentResult& WithConclusionStatement(ConclusionStatementT&& value) { SetConclusionStatement(std::forward<ConclusionStatementT>(value)); return *this;}
143
145
149 inline const CodeHook& GetDialogCodeHook() const { return m_dialogCodeHook; }
150 template<typename DialogCodeHookT = CodeHook>
151 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
152 template<typename DialogCodeHookT = CodeHook>
153 GetIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
155
157
161 inline const FulfillmentActivity& GetFulfillmentActivity() const { return m_fulfillmentActivity; }
162 template<typename FulfillmentActivityT = FulfillmentActivity>
163 void SetFulfillmentActivity(FulfillmentActivityT&& value) { m_fulfillmentActivityHasBeenSet = true; m_fulfillmentActivity = std::forward<FulfillmentActivityT>(value); }
164 template<typename FulfillmentActivityT = FulfillmentActivity>
165 GetIntentResult& WithFulfillmentActivity(FulfillmentActivityT&& value) { SetFulfillmentActivity(std::forward<FulfillmentActivityT>(value)); return *this;}
167
169
172 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
173 template<typename ParentIntentSignatureT = Aws::String>
174 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
175 template<typename ParentIntentSignatureT = Aws::String>
176 GetIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
178
180
184 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
185 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
186 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
187 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
188 GetIntentResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
190
192
195 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
196 template<typename CreatedDateT = Aws::Utils::DateTime>
197 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
198 template<typename CreatedDateT = Aws::Utils::DateTime>
199 GetIntentResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
201
203
206 inline const Aws::String& GetVersion() const { return m_version; }
207 template<typename VersionT = Aws::String>
208 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
209 template<typename VersionT = Aws::String>
210 GetIntentResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
212
214
217 inline const Aws::String& GetChecksum() const { return m_checksum; }
218 template<typename ChecksumT = Aws::String>
219 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
220 template<typename ChecksumT = Aws::String>
221 GetIntentResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
223
225
229 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
230 template<typename KendraConfigurationT = KendraConfiguration>
231 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
232 template<typename KendraConfigurationT = KendraConfiguration>
233 GetIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
235
237
242 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
243 template<typename InputContextsT = Aws::Vector<InputContext>>
244 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
245 template<typename InputContextsT = Aws::Vector<InputContext>>
246 GetIntentResult& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
247 template<typename InputContextsT = InputContext>
248 GetIntentResult& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
250
252
256 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
257 template<typename OutputContextsT = Aws::Vector<OutputContext>>
258 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
259 template<typename OutputContextsT = Aws::Vector<OutputContext>>
260 GetIntentResult& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
261 template<typename OutputContextsT = OutputContext>
262 GetIntentResult& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
264
266
267 inline const Aws::String& GetRequestId() const { return m_requestId; }
268 template<typename RequestIdT = Aws::String>
269 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
270 template<typename RequestIdT = Aws::String>
271 GetIntentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
273 private:
274
275 Aws::String m_name;
276 bool m_nameHasBeenSet = false;
277
278 Aws::String m_description;
279 bool m_descriptionHasBeenSet = false;
280
281 Aws::Vector<Slot> m_slots;
282 bool m_slotsHasBeenSet = false;
283
284 Aws::Vector<Aws::String> m_sampleUtterances;
285 bool m_sampleUtterancesHasBeenSet = false;
286
287 Prompt m_confirmationPrompt;
288 bool m_confirmationPromptHasBeenSet = false;
289
290 Statement m_rejectionStatement;
291 bool m_rejectionStatementHasBeenSet = false;
292
293 FollowUpPrompt m_followUpPrompt;
294 bool m_followUpPromptHasBeenSet = false;
295
296 Statement m_conclusionStatement;
297 bool m_conclusionStatementHasBeenSet = false;
298
299 CodeHook m_dialogCodeHook;
300 bool m_dialogCodeHookHasBeenSet = false;
301
302 FulfillmentActivity m_fulfillmentActivity;
303 bool m_fulfillmentActivityHasBeenSet = false;
304
305 Aws::String m_parentIntentSignature;
306 bool m_parentIntentSignatureHasBeenSet = false;
307
308 Aws::Utils::DateTime m_lastUpdatedDate{};
309 bool m_lastUpdatedDateHasBeenSet = false;
310
311 Aws::Utils::DateTime m_createdDate{};
312 bool m_createdDateHasBeenSet = false;
313
314 Aws::String m_version;
315 bool m_versionHasBeenSet = false;
316
317 Aws::String m_checksum;
318 bool m_checksumHasBeenSet = false;
319
320 KendraConfiguration m_kendraConfiguration;
321 bool m_kendraConfigurationHasBeenSet = false;
322
323 Aws::Vector<InputContext> m_inputContexts;
324 bool m_inputContextsHasBeenSet = false;
325
326 Aws::Vector<OutputContext> m_outputContexts;
327 bool m_outputContextsHasBeenSet = false;
328
329 Aws::String m_requestId;
330 bool m_requestIdHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace LexModelBuildingService
335} // namespace Aws
GetIntentResult & WithFulfillmentActivity(FulfillmentActivityT &&value)
const KendraConfiguration & GetKendraConfiguration() const
GetIntentResult & WithDescription(DescriptionT &&value)
void SetConclusionStatement(ConclusionStatementT &&value)
GetIntentResult & AddOutputContexts(OutputContextsT &&value)
GetIntentResult & WithParentIntentSignature(ParentIntentSignatureT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Vector< InputContext > & GetInputContexts() const
const Aws::Vector< OutputContext > & GetOutputContexts() const
void SetConfirmationPrompt(ConfirmationPromptT &&value)
GetIntentResult & WithOutputContexts(OutputContextsT &&value)
GetIntentResult & WithRejectionStatement(RejectionStatementT &&value)
GetIntentResult & WithVersion(VersionT &&value)
GetIntentResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
GetIntentResult & WithConclusionStatement(ConclusionStatementT &&value)
void SetFulfillmentActivity(FulfillmentActivityT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIntentResult & WithFollowUpPrompt(FollowUpPromptT &&value)
void SetRejectionStatement(RejectionStatementT &&value)
const Aws::Vector< Slot > & GetSlots() const
const Aws::Vector< Aws::String > & GetSampleUtterances() const
void SetKendraConfiguration(KendraConfigurationT &&value)
GetIntentResult & WithCreatedDate(CreatedDateT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult()=default
AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIntentResult & AddSampleUtterances(SampleUtterancesT &&value)
GetIntentResult & WithKendraConfiguration(KendraConfigurationT &&value)
GetIntentResult & WithConfirmationPrompt(ConfirmationPromptT &&value)
void SetSampleUtterances(SampleUtterancesT &&value)
const FulfillmentActivity & GetFulfillmentActivity() const
GetIntentResult & WithSampleUtterances(SampleUtterancesT &&value)
GetIntentResult & WithChecksum(ChecksumT &&value)
GetIntentResult & WithRequestId(RequestIdT &&value)
GetIntentResult & WithInputContexts(InputContextsT &&value)
GetIntentResult & AddInputContexts(InputContextsT &&value)
GetIntentResult & WithDialogCodeHook(DialogCodeHookT &&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