AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutIntentResult.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 PutIntentResult() = default;
42 AWS_LEXMODELBUILDINGSERVICE_API PutIntentResult(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 PutIntentResult& 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 PutIntentResult& 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 PutIntentResult& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
77 template<typename SlotsT = Slot>
78 PutIntentResult& 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 PutIntentResult& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
90 template<typename SampleUtterancesT = Aws::String>
91 PutIntentResult& 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 PutIntentResult& 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 PutIntentResult& WithRejectionStatement(RejectionStatementT&& value) { SetRejectionStatement(std::forward<RejectionStatementT>(value)); return *this;}
118
120
124 inline const FollowUpPrompt& GetFollowUpPrompt() const { return m_followUpPrompt; }
125 template<typename FollowUpPromptT = FollowUpPrompt>
126 void SetFollowUpPrompt(FollowUpPromptT&& value) { m_followUpPromptHasBeenSet = true; m_followUpPrompt = std::forward<FollowUpPromptT>(value); }
127 template<typename FollowUpPromptT = FollowUpPrompt>
128 PutIntentResult& WithFollowUpPrompt(FollowUpPromptT&& value) { SetFollowUpPrompt(std::forward<FollowUpPromptT>(value)); return *this;}
130
132
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 PutIntentResult& 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 PutIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
155
157
162 inline const FulfillmentActivity& GetFulfillmentActivity() const { return m_fulfillmentActivity; }
163 template<typename FulfillmentActivityT = FulfillmentActivity>
164 void SetFulfillmentActivity(FulfillmentActivityT&& value) { m_fulfillmentActivityHasBeenSet = true; m_fulfillmentActivity = std::forward<FulfillmentActivityT>(value); }
165 template<typename FulfillmentActivityT = FulfillmentActivity>
166 PutIntentResult& WithFulfillmentActivity(FulfillmentActivityT&& value) { SetFulfillmentActivity(std::forward<FulfillmentActivityT>(value)); return *this;}
168
170
173 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
174 template<typename ParentIntentSignatureT = Aws::String>
175 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
176 template<typename ParentIntentSignatureT = Aws::String>
177 PutIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
179
181
185 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
186 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
187 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
188 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
189 PutIntentResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
191
193
196 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
197 template<typename CreatedDateT = Aws::Utils::DateTime>
198 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
199 template<typename CreatedDateT = Aws::Utils::DateTime>
200 PutIntentResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
202
204
208 inline const Aws::String& GetVersion() const { return m_version; }
209 template<typename VersionT = Aws::String>
210 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
211 template<typename VersionT = Aws::String>
212 PutIntentResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
214
216
220 inline const Aws::String& GetChecksum() const { return m_checksum; }
221 template<typename ChecksumT = Aws::String>
222 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
223 template<typename ChecksumT = Aws::String>
224 PutIntentResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
226
228
233 inline bool GetCreateVersion() const { return m_createVersion; }
234 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
235 inline PutIntentResult& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
237
239
243 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
244 template<typename KendraConfigurationT = KendraConfiguration>
245 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
246 template<typename KendraConfigurationT = KendraConfiguration>
247 PutIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
249
251
256 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
257 template<typename InputContextsT = Aws::Vector<InputContext>>
258 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
259 template<typename InputContextsT = Aws::Vector<InputContext>>
260 PutIntentResult& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
261 template<typename InputContextsT = InputContext>
262 PutIntentResult& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
264
266
270 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
271 template<typename OutputContextsT = Aws::Vector<OutputContext>>
272 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
273 template<typename OutputContextsT = Aws::Vector<OutputContext>>
274 PutIntentResult& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
275 template<typename OutputContextsT = OutputContext>
276 PutIntentResult& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
278
280
281 inline const Aws::String& GetRequestId() const { return m_requestId; }
282 template<typename RequestIdT = Aws::String>
283 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
284 template<typename RequestIdT = Aws::String>
285 PutIntentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
287 private:
288
289 Aws::String m_name;
290 bool m_nameHasBeenSet = false;
291
292 Aws::String m_description;
293 bool m_descriptionHasBeenSet = false;
294
295 Aws::Vector<Slot> m_slots;
296 bool m_slotsHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_sampleUtterances;
299 bool m_sampleUtterancesHasBeenSet = false;
300
301 Prompt m_confirmationPrompt;
302 bool m_confirmationPromptHasBeenSet = false;
303
304 Statement m_rejectionStatement;
305 bool m_rejectionStatementHasBeenSet = false;
306
307 FollowUpPrompt m_followUpPrompt;
308 bool m_followUpPromptHasBeenSet = false;
309
310 Statement m_conclusionStatement;
311 bool m_conclusionStatementHasBeenSet = false;
312
313 CodeHook m_dialogCodeHook;
314 bool m_dialogCodeHookHasBeenSet = false;
315
316 FulfillmentActivity m_fulfillmentActivity;
317 bool m_fulfillmentActivityHasBeenSet = false;
318
319 Aws::String m_parentIntentSignature;
320 bool m_parentIntentSignatureHasBeenSet = false;
321
322 Aws::Utils::DateTime m_lastUpdatedDate{};
323 bool m_lastUpdatedDateHasBeenSet = false;
324
325 Aws::Utils::DateTime m_createdDate{};
326 bool m_createdDateHasBeenSet = false;
327
328 Aws::String m_version;
329 bool m_versionHasBeenSet = false;
330
331 Aws::String m_checksum;
332 bool m_checksumHasBeenSet = false;
333
334 bool m_createVersion{false};
335 bool m_createVersionHasBeenSet = false;
336
337 KendraConfiguration m_kendraConfiguration;
338 bool m_kendraConfigurationHasBeenSet = false;
339
340 Aws::Vector<InputContext> m_inputContexts;
341 bool m_inputContextsHasBeenSet = false;
342
343 Aws::Vector<OutputContext> m_outputContexts;
344 bool m_outputContextsHasBeenSet = false;
345
346 Aws::String m_requestId;
347 bool m_requestIdHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace LexModelBuildingService
352} // namespace Aws
PutIntentResult & WithSampleUtterances(SampleUtterancesT &&value)
void SetFulfillmentActivity(FulfillmentActivityT &&value)
PutIntentResult & WithConclusionStatement(ConclusionStatementT &&value)
void SetRejectionStatement(RejectionStatementT &&value)
PutIntentResult & WithFollowUpPrompt(FollowUpPromptT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
PutIntentResult & WithChecksum(ChecksumT &&value)
PutIntentResult & WithOutputContexts(OutputContextsT &&value)
PutIntentResult & WithFulfillmentActivity(FulfillmentActivityT &&value)
void SetKendraConfiguration(KendraConfigurationT &&value)
PutIntentResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetSampleUtterances(SampleUtterancesT &&value)
const FulfillmentActivity & GetFulfillmentActivity() const
void SetConfirmationPrompt(ConfirmationPromptT &&value)
PutIntentResult & AddOutputContexts(OutputContextsT &&value)
PutIntentResult & WithConfirmationPrompt(ConfirmationPromptT &&value)
const Aws::Vector< InputContext > & GetInputContexts() const
AWS_LEXMODELBUILDINGSERVICE_API PutIntentResult()=default
PutIntentResult & WithInputContexts(InputContextsT &&value)
PutIntentResult & WithDialogCodeHook(DialogCodeHookT &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutIntentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutIntentResult & WithCreatedDate(CreatedDateT &&value)
PutIntentResult & WithRejectionStatement(RejectionStatementT &&value)
const Aws::Vector< Aws::String > & GetSampleUtterances() const
PutIntentResult & WithKendraConfiguration(KendraConfigurationT &&value)
const KendraConfiguration & GetKendraConfiguration() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
PutIntentResult & AddInputContexts(InputContextsT &&value)
const Aws::Vector< Slot > & GetSlots() const
PutIntentResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetConclusionStatement(ConclusionStatementT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
PutIntentResult & WithParentIntentSignature(ParentIntentSignatureT &&value)
PutIntentResult & WithVersion(VersionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutIntentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutIntentResult & AddSampleUtterances(SampleUtterancesT &&value)
PutIntentResult & 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