AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline PutIntentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline PutIntentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline PutIntentRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline PutIntentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline PutIntentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline PutIntentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
85 inline const Aws::Vector<Slot>& GetSlots() const{ return m_slots; }
86 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
87 inline void SetSlots(const Aws::Vector<Slot>& value) { m_slotsHasBeenSet = true; m_slots = value; }
88 inline void SetSlots(Aws::Vector<Slot>&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
89 inline PutIntentRequest& WithSlots(const Aws::Vector<Slot>& value) { SetSlots(value); return *this;}
90 inline PutIntentRequest& WithSlots(Aws::Vector<Slot>&& value) { SetSlots(std::move(value)); return *this;}
91 inline PutIntentRequest& AddSlots(const Slot& value) { m_slotsHasBeenSet = true; m_slots.push_back(value); return *this; }
92 inline PutIntentRequest& AddSlots(Slot&& value) { m_slotsHasBeenSet = true; m_slots.push_back(std::move(value)); return *this; }
94
96
101 inline const Aws::Vector<Aws::String>& GetSampleUtterances() const{ return m_sampleUtterances; }
102 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
103 inline void SetSampleUtterances(const Aws::Vector<Aws::String>& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = value; }
104 inline void SetSampleUtterances(Aws::Vector<Aws::String>&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::move(value); }
106 inline PutIntentRequest& WithSampleUtterances(Aws::Vector<Aws::String>&& value) { SetSampleUtterances(std::move(value)); return *this;}
107 inline PutIntentRequest& AddSampleUtterances(const Aws::String& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(value); return *this; }
108 inline PutIntentRequest& AddSampleUtterances(Aws::String&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(std::move(value)); return *this; }
109 inline PutIntentRequest& AddSampleUtterances(const char* value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(value); return *this; }
111
113
124 inline const Prompt& GetConfirmationPrompt() const{ return m_confirmationPrompt; }
125 inline bool ConfirmationPromptHasBeenSet() const { return m_confirmationPromptHasBeenSet; }
126 inline void SetConfirmationPrompt(const Prompt& value) { m_confirmationPromptHasBeenSet = true; m_confirmationPrompt = value; }
127 inline void SetConfirmationPrompt(Prompt&& value) { m_confirmationPromptHasBeenSet = true; m_confirmationPrompt = std::move(value); }
128 inline PutIntentRequest& WithConfirmationPrompt(const Prompt& value) { SetConfirmationPrompt(value); return *this;}
129 inline PutIntentRequest& WithConfirmationPrompt(Prompt&& value) { SetConfirmationPrompt(std::move(value)); return *this;}
131
133
140 inline const Statement& GetRejectionStatement() const{ return m_rejectionStatement; }
141 inline bool RejectionStatementHasBeenSet() const { return m_rejectionStatementHasBeenSet; }
142 inline void SetRejectionStatement(const Statement& value) { m_rejectionStatementHasBeenSet = true; m_rejectionStatement = value; }
143 inline void SetRejectionStatement(Statement&& value) { m_rejectionStatementHasBeenSet = true; m_rejectionStatement = std::move(value); }
144 inline PutIntentRequest& WithRejectionStatement(const Statement& value) { SetRejectionStatement(value); return *this;}
145 inline PutIntentRequest& WithRejectionStatement(Statement&& value) { SetRejectionStatement(std::move(value)); return *this;}
147
149
163 inline const FollowUpPrompt& GetFollowUpPrompt() const{ return m_followUpPrompt; }
164 inline bool FollowUpPromptHasBeenSet() const { return m_followUpPromptHasBeenSet; }
165 inline void SetFollowUpPrompt(const FollowUpPrompt& value) { m_followUpPromptHasBeenSet = true; m_followUpPrompt = value; }
166 inline void SetFollowUpPrompt(FollowUpPrompt&& value) { m_followUpPromptHasBeenSet = true; m_followUpPrompt = std::move(value); }
167 inline PutIntentRequest& WithFollowUpPrompt(const FollowUpPrompt& value) { SetFollowUpPrompt(value); return *this;}
168 inline PutIntentRequest& WithFollowUpPrompt(FollowUpPrompt&& value) { SetFollowUpPrompt(std::move(value)); return *this;}
170
172
181 inline const Statement& GetConclusionStatement() const{ return m_conclusionStatement; }
182 inline bool ConclusionStatementHasBeenSet() const { return m_conclusionStatementHasBeenSet; }
183 inline void SetConclusionStatement(const Statement& value) { m_conclusionStatementHasBeenSet = true; m_conclusionStatement = value; }
184 inline void SetConclusionStatement(Statement&& value) { m_conclusionStatementHasBeenSet = true; m_conclusionStatement = std::move(value); }
185 inline PutIntentRequest& WithConclusionStatement(const Statement& value) { SetConclusionStatement(value); return *this;}
186 inline PutIntentRequest& WithConclusionStatement(Statement&& value) { SetConclusionStatement(std::move(value)); return *this;}
188
190
199 inline const CodeHook& GetDialogCodeHook() const{ return m_dialogCodeHook; }
200 inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
201 inline void SetDialogCodeHook(const CodeHook& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = value; }
202 inline void SetDialogCodeHook(CodeHook&& value) { m_dialogCodeHookHasBeenSet = true; m_dialogCodeHook = std::move(value); }
203 inline PutIntentRequest& WithDialogCodeHook(const CodeHook& value) { SetDialogCodeHook(value); return *this;}
204 inline PutIntentRequest& WithDialogCodeHook(CodeHook&& value) { SetDialogCodeHook(std::move(value)); return *this;}
206
208
217 inline const FulfillmentActivity& GetFulfillmentActivity() const{ return m_fulfillmentActivity; }
218 inline bool FulfillmentActivityHasBeenSet() const { return m_fulfillmentActivityHasBeenSet; }
219 inline void SetFulfillmentActivity(const FulfillmentActivity& value) { m_fulfillmentActivityHasBeenSet = true; m_fulfillmentActivity = value; }
220 inline void SetFulfillmentActivity(FulfillmentActivity&& value) { m_fulfillmentActivityHasBeenSet = true; m_fulfillmentActivity = std::move(value); }
222 inline PutIntentRequest& WithFulfillmentActivity(FulfillmentActivity&& value) { SetFulfillmentActivity(std::move(value)); return *this;}
224
226
232 inline const Aws::String& GetParentIntentSignature() const{ return m_parentIntentSignature; }
233 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
234 inline void SetParentIntentSignature(const Aws::String& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = value; }
235 inline void SetParentIntentSignature(Aws::String&& value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature = std::move(value); }
236 inline void SetParentIntentSignature(const char* value) { m_parentIntentSignatureHasBeenSet = true; m_parentIntentSignature.assign(value); }
238 inline PutIntentRequest& WithParentIntentSignature(Aws::String&& value) { SetParentIntentSignature(std::move(value)); return *this;}
239 inline PutIntentRequest& WithParentIntentSignature(const char* value) { SetParentIntentSignature(value); return *this;}
241
243
253 inline const Aws::String& GetChecksum() const{ return m_checksum; }
254 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
255 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
256 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
257 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
258 inline PutIntentRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
259 inline PutIntentRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
260 inline PutIntentRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
262
264
270 inline bool GetCreateVersion() const{ return m_createVersion; }
271 inline bool CreateVersionHasBeenSet() const { return m_createVersionHasBeenSet; }
272 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
273 inline PutIntentRequest& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
275
277
284 inline const KendraConfiguration& GetKendraConfiguration() const{ return m_kendraConfiguration; }
285 inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
286 inline void SetKendraConfiguration(const KendraConfiguration& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = value; }
287 inline void SetKendraConfiguration(KendraConfiguration&& value) { m_kendraConfigurationHasBeenSet = true; m_kendraConfiguration = std::move(value); }
289 inline PutIntentRequest& WithKendraConfiguration(KendraConfiguration&& value) { SetKendraConfiguration(std::move(value)); return *this;}
291
293
298 inline const Aws::Vector<InputContext>& GetInputContexts() const{ return m_inputContexts; }
299 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
300 inline void SetInputContexts(const Aws::Vector<InputContext>& value) { m_inputContextsHasBeenSet = true; m_inputContexts = value; }
301 inline void SetInputContexts(Aws::Vector<InputContext>&& value) { m_inputContextsHasBeenSet = true; m_inputContexts = std::move(value); }
303 inline PutIntentRequest& WithInputContexts(Aws::Vector<InputContext>&& value) { SetInputContexts(std::move(value)); return *this;}
304 inline PutIntentRequest& AddInputContexts(const InputContext& value) { m_inputContextsHasBeenSet = true; m_inputContexts.push_back(value); return *this; }
305 inline PutIntentRequest& AddInputContexts(InputContext&& value) { m_inputContextsHasBeenSet = true; m_inputContexts.push_back(std::move(value)); return *this; }
307
309
313 inline const Aws::Vector<OutputContext>& GetOutputContexts() const{ return m_outputContexts; }
314 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
315 inline void SetOutputContexts(const Aws::Vector<OutputContext>& value) { m_outputContextsHasBeenSet = true; m_outputContexts = value; }
316 inline void SetOutputContexts(Aws::Vector<OutputContext>&& value) { m_outputContextsHasBeenSet = true; m_outputContexts = std::move(value); }
318 inline PutIntentRequest& WithOutputContexts(Aws::Vector<OutputContext>&& value) { SetOutputContexts(std::move(value)); return *this;}
319 inline PutIntentRequest& AddOutputContexts(const OutputContext& value) { m_outputContextsHasBeenSet = true; m_outputContexts.push_back(value); return *this; }
320 inline PutIntentRequest& AddOutputContexts(OutputContext&& value) { m_outputContextsHasBeenSet = true; m_outputContexts.push_back(std::move(value)); return *this; }
322 private:
323
324 Aws::String m_name;
325 bool m_nameHasBeenSet = false;
326
327 Aws::String m_description;
328 bool m_descriptionHasBeenSet = false;
329
330 Aws::Vector<Slot> m_slots;
331 bool m_slotsHasBeenSet = false;
332
333 Aws::Vector<Aws::String> m_sampleUtterances;
334 bool m_sampleUtterancesHasBeenSet = false;
335
336 Prompt m_confirmationPrompt;
337 bool m_confirmationPromptHasBeenSet = false;
338
339 Statement m_rejectionStatement;
340 bool m_rejectionStatementHasBeenSet = false;
341
342 FollowUpPrompt m_followUpPrompt;
343 bool m_followUpPromptHasBeenSet = false;
344
345 Statement m_conclusionStatement;
346 bool m_conclusionStatementHasBeenSet = false;
347
348 CodeHook m_dialogCodeHook;
349 bool m_dialogCodeHookHasBeenSet = false;
350
351 FulfillmentActivity m_fulfillmentActivity;
352 bool m_fulfillmentActivityHasBeenSet = false;
353
354 Aws::String m_parentIntentSignature;
355 bool m_parentIntentSignatureHasBeenSet = false;
356
357 Aws::String m_checksum;
358 bool m_checksumHasBeenSet = false;
359
360 bool m_createVersion;
361 bool m_createVersionHasBeenSet = false;
362
363 KendraConfiguration m_kendraConfiguration;
364 bool m_kendraConfigurationHasBeenSet = false;
365
366 Aws::Vector<InputContext> m_inputContexts;
367 bool m_inputContextsHasBeenSet = false;
368
369 Aws::Vector<OutputContext> m_outputContexts;
370 bool m_outputContextsHasBeenSet = false;
371 };
372
373} // namespace Model
374} // namespace LexModelBuildingService
375} // namespace Aws
PutIntentRequest & WithFollowUpPrompt(FollowUpPrompt &&value)
const KendraConfiguration & GetKendraConfiguration() const
PutIntentRequest & WithParentIntentSignature(Aws::String &&value)
PutIntentRequest & AddInputContexts(InputContext &&value)
PutIntentRequest & WithParentIntentSignature(const char *value)
PutIntentRequest & WithConfirmationPrompt(const Prompt &value)
AWS_LEXMODELBUILDINGSERVICE_API PutIntentRequest()
PutIntentRequest & WithConfirmationPrompt(Prompt &&value)
const Aws::Vector< Aws::String > & GetSampleUtterances() const
PutIntentRequest & AddSampleUtterances(Aws::String &&value)
const FulfillmentActivity & GetFulfillmentActivity() const
PutIntentRequest & WithRejectionStatement(const Statement &value)
PutIntentRequest & WithKendraConfiguration(const KendraConfiguration &value)
void SetKendraConfiguration(const KendraConfiguration &value)
PutIntentRequest & WithChecksum(const char *value)
PutIntentRequest & WithRejectionStatement(Statement &&value)
PutIntentRequest & AddInputContexts(const InputContext &value)
PutIntentRequest & WithParentIntentSignature(const Aws::String &value)
PutIntentRequest & AddOutputContexts(const OutputContext &value)
const Aws::Vector< InputContext > & GetInputContexts() const
PutIntentRequest & AddSampleUtterances(const Aws::String &value)
PutIntentRequest & AddOutputContexts(OutputContext &&value)
PutIntentRequest & WithKendraConfiguration(KendraConfiguration &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
PutIntentRequest & WithFulfillmentActivity(FulfillmentActivity &&value)
PutIntentRequest & WithOutputContexts(const Aws::Vector< OutputContext > &value)
PutIntentRequest & WithDescription(const char *value)
PutIntentRequest & WithFulfillmentActivity(const FulfillmentActivity &value)
void SetFulfillmentActivity(FulfillmentActivity &&value)
void SetInputContexts(Aws::Vector< InputContext > &&value)
void SetKendraConfiguration(KendraConfiguration &&value)
PutIntentRequest & WithSlots(const Aws::Vector< Slot > &value)
PutIntentRequest & WithChecksum(Aws::String &&value)
void SetSlots(const Aws::Vector< Slot > &value)
PutIntentRequest & WithSlots(Aws::Vector< Slot > &&value)
void SetInputContexts(const Aws::Vector< InputContext > &value)
PutIntentRequest & WithName(Aws::String &&value)
PutIntentRequest & WithName(const Aws::String &value)
void SetSampleUtterances(const Aws::Vector< Aws::String > &value)
void SetSampleUtterances(Aws::Vector< Aws::String > &&value)
PutIntentRequest & WithDialogCodeHook(const CodeHook &value)
PutIntentRequest & AddSampleUtterances(const char *value)
void SetOutputContexts(const Aws::Vector< OutputContext > &value)
PutIntentRequest & WithConclusionStatement(Statement &&value)
PutIntentRequest & AddSlots(const Slot &value)
PutIntentRequest & WithSampleUtterances(Aws::Vector< Aws::String > &&value)
PutIntentRequest & WithOutputContexts(Aws::Vector< OutputContext > &&value)
PutIntentRequest & WithChecksum(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutIntentRequest & WithInputContexts(const Aws::Vector< InputContext > &value)
PutIntentRequest & WithName(const char *value)
PutIntentRequest & WithFollowUpPrompt(const FollowUpPrompt &value)
PutIntentRequest & WithDescription(Aws::String &&value)
PutIntentRequest & WithDialogCodeHook(CodeHook &&value)
PutIntentRequest & WithInputContexts(Aws::Vector< InputContext > &&value)
PutIntentRequest & WithConclusionStatement(const Statement &value)
void SetOutputContexts(Aws::Vector< OutputContext > &&value)
PutIntentRequest & WithDescription(const Aws::String &value)
PutIntentRequest & WithSampleUtterances(const Aws::Vector< Aws::String > &value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
void SetFulfillmentActivity(const FulfillmentActivity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector