AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBotRequest.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/ProcessBehavior.h>
14#include <aws/lex-models/model/Locale.h>
15#include <aws/lex-models/model/Intent.h>
16#include <aws/lex-models/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace LexModelBuildingService
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LEXMODELBUILDINGSERVICE_API PutBotRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBot"; }
38
39 AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline PutBotRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline PutBotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline PutBotRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline PutBotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline PutBotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline PutBotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
76 inline const Aws::Vector<Intent>& GetIntents() const{ return m_intents; }
77 inline bool IntentsHasBeenSet() const { return m_intentsHasBeenSet; }
78 inline void SetIntents(const Aws::Vector<Intent>& value) { m_intentsHasBeenSet = true; m_intents = value; }
79 inline void SetIntents(Aws::Vector<Intent>&& value) { m_intentsHasBeenSet = true; m_intents = std::move(value); }
80 inline PutBotRequest& WithIntents(const Aws::Vector<Intent>& value) { SetIntents(value); return *this;}
81 inline PutBotRequest& WithIntents(Aws::Vector<Intent>&& value) { SetIntents(std::move(value)); return *this;}
82 inline PutBotRequest& AddIntents(const Intent& value) { m_intentsHasBeenSet = true; m_intents.push_back(value); return *this; }
83 inline PutBotRequest& AddIntents(Intent&& value) { m_intentsHasBeenSet = true; m_intents.push_back(std::move(value)); return *this; }
85
87
105 inline bool GetEnableModelImprovements() const{ return m_enableModelImprovements; }
106 inline bool EnableModelImprovementsHasBeenSet() const { return m_enableModelImprovementsHasBeenSet; }
107 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovementsHasBeenSet = true; m_enableModelImprovements = value; }
108 inline PutBotRequest& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
110
112
135 inline double GetNluIntentConfidenceThreshold() const{ return m_nluIntentConfidenceThreshold; }
136 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
137 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
140
142
170 inline const Prompt& GetClarificationPrompt() const{ return m_clarificationPrompt; }
171 inline bool ClarificationPromptHasBeenSet() const { return m_clarificationPromptHasBeenSet; }
172 inline void SetClarificationPrompt(const Prompt& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = value; }
173 inline void SetClarificationPrompt(Prompt&& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = std::move(value); }
174 inline PutBotRequest& WithClarificationPrompt(const Prompt& value) { SetClarificationPrompt(value); return *this;}
175 inline PutBotRequest& WithClarificationPrompt(Prompt&& value) { SetClarificationPrompt(std::move(value)); return *this;}
177
179
198 inline const Statement& GetAbortStatement() const{ return m_abortStatement; }
199 inline bool AbortStatementHasBeenSet() const { return m_abortStatementHasBeenSet; }
200 inline void SetAbortStatement(const Statement& value) { m_abortStatementHasBeenSet = true; m_abortStatement = value; }
201 inline void SetAbortStatement(Statement&& value) { m_abortStatementHasBeenSet = true; m_abortStatement = std::move(value); }
202 inline PutBotRequest& WithAbortStatement(const Statement& value) { SetAbortStatement(value); return *this;}
203 inline PutBotRequest& WithAbortStatement(Statement&& value) { SetAbortStatement(std::move(value)); return *this;}
205
207
220 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
221 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
222 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
223 inline PutBotRequest& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
225
227
234 inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
235 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
236 inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
237 inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
238 inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
239 inline PutBotRequest& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
240 inline PutBotRequest& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
241 inline PutBotRequest& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
243
245
255 inline const Aws::String& GetChecksum() const{ return m_checksum; }
256 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
257 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
258 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
259 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
260 inline PutBotRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
261 inline PutBotRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
262 inline PutBotRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
264
266
272 inline const ProcessBehavior& GetProcessBehavior() const{ return m_processBehavior; }
273 inline bool ProcessBehaviorHasBeenSet() const { return m_processBehaviorHasBeenSet; }
274 inline void SetProcessBehavior(const ProcessBehavior& value) { m_processBehaviorHasBeenSet = true; m_processBehavior = value; }
275 inline void SetProcessBehavior(ProcessBehavior&& value) { m_processBehaviorHasBeenSet = true; m_processBehavior = std::move(value); }
276 inline PutBotRequest& WithProcessBehavior(const ProcessBehavior& value) { SetProcessBehavior(value); return *this;}
277 inline PutBotRequest& WithProcessBehavior(ProcessBehavior&& value) { SetProcessBehavior(std::move(value)); return *this;}
279
281
286 inline const Locale& GetLocale() const{ return m_locale; }
287 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
288 inline void SetLocale(const Locale& value) { m_localeHasBeenSet = true; m_locale = value; }
289 inline void SetLocale(Locale&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
290 inline PutBotRequest& WithLocale(const Locale& value) { SetLocale(value); return *this;}
291 inline PutBotRequest& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
293
295
320 inline bool GetChildDirected() const{ return m_childDirected; }
321 inline bool ChildDirectedHasBeenSet() const { return m_childDirectedHasBeenSet; }
322 inline void SetChildDirected(bool value) { m_childDirectedHasBeenSet = true; m_childDirected = value; }
323 inline PutBotRequest& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
325
327
332 inline bool GetDetectSentiment() const{ return m_detectSentiment; }
333 inline bool DetectSentimentHasBeenSet() const { return m_detectSentimentHasBeenSet; }
334 inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; }
335 inline PutBotRequest& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
337
339
344 inline bool GetCreateVersion() const{ return m_createVersion; }
345 inline bool CreateVersionHasBeenSet() const { return m_createVersionHasBeenSet; }
346 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
347 inline PutBotRequest& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
349
351
356 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
357 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
358 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
359 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
360 inline PutBotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
361 inline PutBotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
362 inline PutBotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
363 inline PutBotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
365 private:
366
367 Aws::String m_name;
368 bool m_nameHasBeenSet = false;
369
370 Aws::String m_description;
371 bool m_descriptionHasBeenSet = false;
372
373 Aws::Vector<Intent> m_intents;
374 bool m_intentsHasBeenSet = false;
375
376 bool m_enableModelImprovements;
377 bool m_enableModelImprovementsHasBeenSet = false;
378
379 double m_nluIntentConfidenceThreshold;
380 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
381
382 Prompt m_clarificationPrompt;
383 bool m_clarificationPromptHasBeenSet = false;
384
385 Statement m_abortStatement;
386 bool m_abortStatementHasBeenSet = false;
387
388 int m_idleSessionTTLInSeconds;
389 bool m_idleSessionTTLInSecondsHasBeenSet = false;
390
391 Aws::String m_voiceId;
392 bool m_voiceIdHasBeenSet = false;
393
394 Aws::String m_checksum;
395 bool m_checksumHasBeenSet = false;
396
397 ProcessBehavior m_processBehavior;
398 bool m_processBehaviorHasBeenSet = false;
399
400 Locale m_locale;
401 bool m_localeHasBeenSet = false;
402
403 bool m_childDirected;
404 bool m_childDirectedHasBeenSet = false;
405
406 bool m_detectSentiment;
407 bool m_detectSentimentHasBeenSet = false;
408
409 bool m_createVersion;
410 bool m_createVersionHasBeenSet = false;
411
412 Aws::Vector<Tag> m_tags;
413 bool m_tagsHasBeenSet = false;
414 };
415
416} // namespace Model
417} // namespace LexModelBuildingService
418} // namespace Aws
PutBotRequest & AddTags(const Tag &value)
PutBotRequest & WithIntents(const Aws::Vector< Intent > &value)
PutBotRequest & WithVoiceId(const char *value)
PutBotRequest & WithNluIntentConfidenceThreshold(double value)
PutBotRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
PutBotRequest & WithVoiceId(Aws::String &&value)
PutBotRequest & WithIntents(Aws::Vector< Intent > &&value)
PutBotRequest & WithVoiceId(const Aws::String &value)
PutBotRequest & WithChecksum(const Aws::String &value)
PutBotRequest & WithProcessBehavior(ProcessBehavior &&value)
PutBotRequest & WithDescription(const Aws::String &value)
PutBotRequest & WithChecksum(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetIntents(Aws::Vector< Intent > &&value)
PutBotRequest & WithDescription(Aws::String &&value)
PutBotRequest & WithDescription(const char *value)
PutBotRequest & WithName(const Aws::String &value)
PutBotRequest & WithProcessBehavior(const ProcessBehavior &value)
PutBotRequest & WithEnableModelImprovements(bool value)
PutBotRequest & WithClarificationPrompt(const Prompt &value)
PutBotRequest & WithClarificationPrompt(Prompt &&value)
PutBotRequest & AddIntents(const Intent &value)
void SetProcessBehavior(const ProcessBehavior &value)
PutBotRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
const ProcessBehavior & GetProcessBehavior() const
AWS_LEXMODELBUILDINGSERVICE_API PutBotRequest()
PutBotRequest & WithAbortStatement(Statement &&value)
PutBotRequest & WithChecksum(Aws::String &&value)
void SetDescription(const Aws::String &value)
PutBotRequest & WithName(Aws::String &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
PutBotRequest & WithAbortStatement(const Statement &value)
void SetIntents(const Aws::Vector< Intent > &value)
PutBotRequest & WithLocale(const Locale &value)
PutBotRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Intent > & GetIntents() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector