AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 PutBotRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 PutBotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
72 inline const Aws::Vector<Intent>& GetIntents() const { return m_intents; }
73 inline bool IntentsHasBeenSet() const { return m_intentsHasBeenSet; }
74 template<typename IntentsT = Aws::Vector<Intent>>
75 void SetIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents = std::forward<IntentsT>(value); }
76 template<typename IntentsT = Aws::Vector<Intent>>
77 PutBotRequest& WithIntents(IntentsT&& value) { SetIntents(std::forward<IntentsT>(value)); return *this;}
78 template<typename IntentsT = Intent>
79 PutBotRequest& AddIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents.emplace_back(std::forward<IntentsT>(value)); return *this; }
81
83
101 inline bool GetEnableModelImprovements() const { return m_enableModelImprovements; }
102 inline bool EnableModelImprovementsHasBeenSet() const { return m_enableModelImprovementsHasBeenSet; }
103 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovementsHasBeenSet = true; m_enableModelImprovements = value; }
104 inline PutBotRequest& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
106
108
131 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
132 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
133 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
136
138
166 inline const Prompt& GetClarificationPrompt() const { return m_clarificationPrompt; }
167 inline bool ClarificationPromptHasBeenSet() const { return m_clarificationPromptHasBeenSet; }
168 template<typename ClarificationPromptT = Prompt>
169 void SetClarificationPrompt(ClarificationPromptT&& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = std::forward<ClarificationPromptT>(value); }
170 template<typename ClarificationPromptT = Prompt>
171 PutBotRequest& WithClarificationPrompt(ClarificationPromptT&& value) { SetClarificationPrompt(std::forward<ClarificationPromptT>(value)); return *this;}
173
175
194 inline const Statement& GetAbortStatement() const { return m_abortStatement; }
195 inline bool AbortStatementHasBeenSet() const { return m_abortStatementHasBeenSet; }
196 template<typename AbortStatementT = Statement>
197 void SetAbortStatement(AbortStatementT&& value) { m_abortStatementHasBeenSet = true; m_abortStatement = std::forward<AbortStatementT>(value); }
198 template<typename AbortStatementT = Statement>
199 PutBotRequest& WithAbortStatement(AbortStatementT&& value) { SetAbortStatement(std::forward<AbortStatementT>(value)); return *this;}
201
203
216 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
217 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
218 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
219 inline PutBotRequest& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
221
223
230 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
231 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
232 template<typename VoiceIdT = Aws::String>
233 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
234 template<typename VoiceIdT = Aws::String>
235 PutBotRequest& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
237
239
249 inline const Aws::String& GetChecksum() const { return m_checksum; }
250 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
251 template<typename ChecksumT = Aws::String>
252 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
253 template<typename ChecksumT = Aws::String>
254 PutBotRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
256
258
264 inline ProcessBehavior GetProcessBehavior() const { return m_processBehavior; }
265 inline bool ProcessBehaviorHasBeenSet() const { return m_processBehaviorHasBeenSet; }
266 inline void SetProcessBehavior(ProcessBehavior value) { m_processBehaviorHasBeenSet = true; m_processBehavior = value; }
269
271
276 inline Locale GetLocale() const { return m_locale; }
277 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
278 inline void SetLocale(Locale value) { m_localeHasBeenSet = true; m_locale = value; }
279 inline PutBotRequest& WithLocale(Locale value) { SetLocale(value); return *this;}
281
283
308 inline bool GetChildDirected() const { return m_childDirected; }
309 inline bool ChildDirectedHasBeenSet() const { return m_childDirectedHasBeenSet; }
310 inline void SetChildDirected(bool value) { m_childDirectedHasBeenSet = true; m_childDirected = value; }
311 inline PutBotRequest& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
313
315
320 inline bool GetDetectSentiment() const { return m_detectSentiment; }
321 inline bool DetectSentimentHasBeenSet() const { return m_detectSentimentHasBeenSet; }
322 inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; }
323 inline PutBotRequest& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
325
327
332 inline bool GetCreateVersion() const { return m_createVersion; }
333 inline bool CreateVersionHasBeenSet() const { return m_createVersionHasBeenSet; }
334 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
335 inline PutBotRequest& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
337
339
344 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
345 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
346 template<typename TagsT = Aws::Vector<Tag>>
347 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
348 template<typename TagsT = Aws::Vector<Tag>>
349 PutBotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
350 template<typename TagsT = Tag>
351 PutBotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
353 private:
354
355 Aws::String m_name;
356 bool m_nameHasBeenSet = false;
357
358 Aws::String m_description;
359 bool m_descriptionHasBeenSet = false;
360
361 Aws::Vector<Intent> m_intents;
362 bool m_intentsHasBeenSet = false;
363
364 bool m_enableModelImprovements{false};
365 bool m_enableModelImprovementsHasBeenSet = false;
366
367 double m_nluIntentConfidenceThreshold{0.0};
368 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
369
370 Prompt m_clarificationPrompt;
371 bool m_clarificationPromptHasBeenSet = false;
372
373 Statement m_abortStatement;
374 bool m_abortStatementHasBeenSet = false;
375
376 int m_idleSessionTTLInSeconds{0};
377 bool m_idleSessionTTLInSecondsHasBeenSet = false;
378
379 Aws::String m_voiceId;
380 bool m_voiceIdHasBeenSet = false;
381
382 Aws::String m_checksum;
383 bool m_checksumHasBeenSet = false;
384
385 ProcessBehavior m_processBehavior{ProcessBehavior::NOT_SET};
386 bool m_processBehaviorHasBeenSet = false;
387
388 Locale m_locale{Locale::NOT_SET};
389 bool m_localeHasBeenSet = false;
390
391 bool m_childDirected{false};
392 bool m_childDirectedHasBeenSet = false;
393
394 bool m_detectSentiment{false};
395 bool m_detectSentimentHasBeenSet = false;
396
397 bool m_createVersion{false};
398 bool m_createVersionHasBeenSet = false;
399
400 Aws::Vector<Tag> m_tags;
401 bool m_tagsHasBeenSet = false;
402 };
403
404} // namespace Model
405} // namespace LexModelBuildingService
406} // namespace Aws
PutBotRequest & WithNluIntentConfidenceThreshold(double value)
virtual const char * GetServiceRequestName() const override
void SetClarificationPrompt(ClarificationPromptT &&value)
const Aws::Vector< Tag > & GetTags() const
PutBotRequest & WithProcessBehavior(ProcessBehavior value)
PutBotRequest & WithIntents(IntentsT &&value)
PutBotRequest & WithEnableModelImprovements(bool value)
PutBotRequest & WithChecksum(ChecksumT &&value)
PutBotRequest & WithAbortStatement(AbortStatementT &&value)
PutBotRequest & WithClarificationPrompt(ClarificationPromptT &&value)
PutBotRequest & WithVoiceId(VoiceIdT &&value)
PutBotRequest & WithDescription(DescriptionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutBotRequest()=default
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
const Aws::Vector< Intent > & GetIntents() const
PutBotRequest & AddIntents(IntentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector