AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutIntentRequest.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/LexModelBuildingServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lex-models/model/Prompt.h>
12#include <aws/lex-models/model/Statement.h>
13#include <aws/lex-models/model/FollowUpPrompt.h>
14#include <aws/lex-models/model/CodeHook.h>
15#include <aws/lex-models/model/FulfillmentActivity.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{
24namespace LexModelBuildingService
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_LEXMODELBUILDINGSERVICE_API PutIntentRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "PutIntent"; }
41
42 AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override;
43
44
46
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 PutIntentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 PutIntentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
81 inline const Aws::Vector<Slot>& GetSlots() const { return m_slots; }
82 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
83 template<typename SlotsT = Aws::Vector<Slot>>
84 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
85 template<typename SlotsT = Aws::Vector<Slot>>
86 PutIntentRequest& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
87 template<typename SlotsT = Slot>
88 PutIntentRequest& AddSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots.emplace_back(std::forward<SlotsT>(value)); return *this; }
90
92
97 inline const Aws::Vector<Aws::String>& GetSampleUtterances() const { return m_sampleUtterances; }
98 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
99 template<typename SampleUtterancesT = Aws::Vector<Aws::String>>
100 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
101 template<typename SampleUtterancesT = Aws::Vector<Aws::String>>
102 PutIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) { SetSampleUtterances(std::forward<SampleUtterancesT>(value)); return *this;}
103 template<typename SampleUtterancesT = Aws::String>
104 PutIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value)); return *this; }
106
108
119 inline const Prompt& GetConfirmationPrompt() const { return m_confirmationPrompt; }
120 inline bool ConfirmationPromptHasBeenSet() const { return m_confirmationPromptHasBeenSet; }
121 template<typename ConfirmationPromptT = Prompt>
122 void SetConfirmationPrompt(ConfirmationPromptT&& value) { m_confirmationPromptHasBeenSet = true; m_confirmationPrompt = std::forward<ConfirmationPromptT>(value); }
123 template<typename ConfirmationPromptT = Prompt>
124 PutIntentRequest& WithConfirmationPrompt(ConfirmationPromptT&& value) { SetConfirmationPrompt(std::forward<ConfirmationPromptT>(value)); return *this;}
126
128
135 inline const Statement& GetRejectionStatement() const { return m_rejectionStatement; }
136 inline bool RejectionStatementHasBeenSet() const { return m_rejectionStatementHasBeenSet; }
137 template<typename RejectionStatementT = Statement>
138 void SetRejectionStatement(RejectionStatementT&& value) { m_rejectionStatementHasBeenSet = true; m_rejectionStatement = std::forward<RejectionStatementT>(value); }
139 template<typename RejectionStatementT = Statement>
140 PutIntentRequest& WithRejectionStatement(RejectionStatementT&& value) { SetRejectionStatement(std::forward<RejectionStatementT>(value)); return *this;}
142
144
158 inline const FollowUpPrompt& GetFollowUpPrompt() const { return m_followUpPrompt; }
159 inline bool FollowUpPromptHasBeenSet() const { return m_followUpPromptHasBeenSet; }
160 template<typename FollowUpPromptT = FollowUpPrompt>
161 void SetFollowUpPrompt(FollowUpPromptT&& value) { m_followUpPromptHasBeenSet = true; m_followUpPrompt = std::forward<FollowUpPromptT>(value); }
162 template<typename FollowUpPromptT = FollowUpPrompt>
163 PutIntentRequest& WithFollowUpPrompt(FollowUpPromptT&& value) { SetFollowUpPrompt(std::forward<FollowUpPromptT>(value)); return *this;}
165
167
176 inline const Statement& GetConclusionStatement() const { return m_conclusionStatement; }
177 inline bool ConclusionStatementHasBeenSet() const { return m_conclusionStatementHasBeenSet; }
178 template<typename ConclusionStatementT = Statement>
179 void SetConclusionStatement(ConclusionStatementT&& value) { m_conclusionStatementHasBeenSet = true; m_conclusionStatement = std::forward<ConclusionStatementT>(value); }
180 template<typename ConclusionStatementT = Statement>
181 PutIntentRequest& WithConclusionStatement(ConclusionStatementT&& value) { SetConclusionStatement(std::forward<ConclusionStatementT>(value)); return *this;}
183
185
194 inline const CodeHook& GetDialogCodeHook() const { return m_dialogCodeHook; }
195 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
196 template<typename DialogCodeHookT = CodeHook>
197 void SetDialogCodeHook(DialogCodeHookT&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::forward<DialogCodeHookT>(value); }
198 template<typename DialogCodeHookT = CodeHook>
199 PutIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) { SetDialogCodeHook(std::forward<DialogCodeHookT>(value)); return *this;}
201
203
212 inline const FulfillmentActivity& GetFulfillmentActivity() const { return m_fulfillmentActivity; }
213 inline bool FulfillmentActivityHasBeenSet() const { return m_fulfillmentActivityHasBeenSet; }
214 template<typename FulfillmentActivityT = FulfillmentActivity>
215 void SetFulfillmentActivity(FulfillmentActivityT&& value) { m_fulfillmentActivityHasBeenSet = true; m_fulfillmentActivity = std::forward<FulfillmentActivityT>(value); }
216 template<typename FulfillmentActivityT = FulfillmentActivity>
217 PutIntentRequest& WithFulfillmentActivity(FulfillmentActivityT&& value) { SetFulfillmentActivity(std::forward<FulfillmentActivityT>(value)); return *this;}
219
221
227 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
228 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
229 template<typename ParentIntentSignatureT = Aws::String>
230 void SetParentIntentSignature(ParentIntentSignatureT&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value); }
231 template<typename ParentIntentSignatureT = Aws::String>
232 PutIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) { SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value)); return *this;}
234
236
246 inline const Aws::String& GetChecksum() const { return m_checksum; }
247 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
248 template<typename ChecksumT = Aws::String>
249 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
250 template<typename ChecksumT = Aws::String>
251 PutIntentRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
253
255
261 inline bool GetCreateVersion() const { return m_createVersion; }
262 inline bool CreateVersionHasBeenSet() const { return m_createVersionHasBeenSet; }
263 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
264 inline PutIntentRequest& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
266
268
275 inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
276 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
277 template<typename KendraConfigurationT = KendraConfiguration>
278 void SetKendraConfiguration(KendraConfigurationT&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::forward<KendraConfigurationT>(value); }
279 template<typename KendraConfigurationT = KendraConfiguration>
280 PutIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) { SetKendraConfiguration(std::forward<KendraConfigurationT>(value)); return *this;}
282
284
289 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
290 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
291 template<typename InputContextsT = Aws::Vector<InputContext>>
292 void SetInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::forward<InputContextsT>(value); }
293 template<typename InputContextsT = Aws::Vector<InputContext>>
294 PutIntentRequest& WithInputContexts(InputContextsT&& value) { SetInputContexts(std::forward<InputContextsT>(value)); return *this;}
295 template<typename InputContextsT = InputContext>
296 PutIntentRequest& AddInputContexts(InputContextsT&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.emplace_back(std::forward<InputContextsT>(value)); return *this; }
298
300
304 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
305 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
306 template<typename OutputContextsT = Aws::Vector<OutputContext>>
307 void SetOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::forward<OutputContextsT>(value); }
308 template<typename OutputContextsT = Aws::Vector<OutputContext>>
309 PutIntentRequest& WithOutputContexts(OutputContextsT&& value) { SetOutputContexts(std::forward<OutputContextsT>(value)); return *this;}
310 template<typename OutputContextsT = OutputContext>
311 PutIntentRequest& AddOutputContexts(OutputContextsT&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.emplace_back(std::forward<OutputContextsT>(value)); return *this; }
313 private:
314
315 Aws::String m_name;
316 bool m_nameHasBeenSet = false;
317
318 Aws::String m_description;
319 bool m_descriptionHasBeenSet = false;
320
321 Aws::Vector<Slot> m_slots;
322 bool m_slotsHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_sampleUtterances;
325 bool m_sampleUtterancesHasBeenSet = false;
326
327 Prompt m_confirmationPrompt;
328 bool m_confirmationPromptHasBeenSet = false;
329
330 Statement m_rejectionStatement;
331 bool m_rejectionStatementHasBeenSet = false;
332
333 FollowUpPrompt m_followUpPrompt;
334 bool m_followUpPromptHasBeenSet = false;
335
336 Statement m_conclusionStatement;
337 bool m_conclusionStatementHasBeenSet = false;
338
339 CodeHook m_dialogCodeHook;
340 bool m_dialogCodeHookHasBeenSet = false;
341
342 FulfillmentActivity m_fulfillmentActivity;
343 bool m_fulfillmentActivityHasBeenSet = false;
344
345 Aws::String m_parentIntentSignature;
346 bool m_parentIntentSignatureHasBeenSet = false;
347
348 Aws::String m_checksum;
349 bool m_checksumHasBeenSet = false;
350
351 bool m_createVersion{false};
352 bool m_createVersionHasBeenSet = false;
353
354 KendraConfiguration m_kendraConfiguration;
355 bool m_kendraConfigurationHasBeenSet = false;
356
357 Aws::Vector<InputContext> m_inputContexts;
358 bool m_inputContextsHasBeenSet = false;
359
360 Aws::Vector<OutputContext> m_outputContexts;
361 bool m_outputContextsHasBeenSet = false;
362 };
363
364} // namespace Model
365} // namespace LexModelBuildingService
366} // namespace Aws
PutIntentRequest & WithInputContexts(InputContextsT &&value)
void SetFulfillmentActivity(FulfillmentActivityT &&value)
PutIntentRequest & WithRejectionStatement(RejectionStatementT &&value)
const KendraConfiguration & GetKendraConfiguration() const
PutIntentRequest & WithConclusionStatement(ConclusionStatementT &&value)
void SetKendraConfiguration(KendraConfigurationT &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutIntentRequest()=default
const Aws::Vector< Aws::String > & GetSampleUtterances() const
const FulfillmentActivity & GetFulfillmentActivity() const
const Aws::Vector< InputContext > & GetInputContexts() const
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
PutIntentRequest & WithConfirmationPrompt(ConfirmationPromptT &&value)
PutIntentRequest & WithFollowUpPrompt(FollowUpPromptT &&value)
void SetConclusionStatement(ConclusionStatementT &&value)
PutIntentRequest & AddOutputContexts(OutputContextsT &&value)
void SetRejectionStatement(RejectionStatementT &&value)
PutIntentRequest & WithFulfillmentActivity(FulfillmentActivityT &&value)
virtual const char * GetServiceRequestName() const override
PutIntentRequest & WithDialogCodeHook(DialogCodeHookT &&value)
void SetParentIntentSignature(ParentIntentSignatureT &&value)
void SetConfirmationPrompt(ConfirmationPromptT &&value)
PutIntentRequest & AddInputContexts(InputContextsT &&value)
PutIntentRequest & WithChecksum(ChecksumT &&value)
PutIntentRequest & WithKendraConfiguration(KendraConfigurationT &&value)
PutIntentRequest & WithOutputContexts(OutputContextsT &&value)
PutIntentRequest & WithDescription(DescriptionT &&value)
PutIntentRequest & WithSampleUtterances(SampleUtterancesT &&value)
PutIntentRequest & WithParentIntentSignature(ParentIntentSignatureT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
PutIntentRequest & AddSampleUtterances(SampleUtterancesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector