AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutBotResult.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/Status.h>
13#include <aws/core/utils/DateTime.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{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace LexModelBuildingService
32{
33namespace Model
34{
36 {
37 public:
38 AWS_LEXMODELBUILDINGSERVICE_API PutBotResult() = default;
39 AWS_LEXMODELBUILDINGSERVICE_API PutBotResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
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 PutBotResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 PutBotResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Intent>& GetIntents() const { return m_intents; }
71 template<typename IntentsT = Aws::Vector<Intent>>
72 void SetIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents = std::forward<IntentsT>(value); }
73 template<typename IntentsT = Aws::Vector<Intent>>
74 PutBotResult& WithIntents(IntentsT&& value) { SetIntents(std::forward<IntentsT>(value)); return *this;}
75 template<typename IntentsT = Intent>
76 PutBotResult& AddIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents.emplace_back(std::forward<IntentsT>(value)); return *this; }
78
80
85 inline bool GetEnableModelImprovements() const { return m_enableModelImprovements; }
86 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovementsHasBeenSet = true; m_enableModelImprovements = value; }
87 inline PutBotResult& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
89
91
102 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
103 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
106
108
112 inline const Prompt& GetClarificationPrompt() const { return m_clarificationPrompt; }
113 template<typename ClarificationPromptT = Prompt>
114 void SetClarificationPrompt(ClarificationPromptT&& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = std::forward<ClarificationPromptT>(value); }
115 template<typename ClarificationPromptT = Prompt>
116 PutBotResult& WithClarificationPrompt(ClarificationPromptT&& value) { SetClarificationPrompt(std::forward<ClarificationPromptT>(value)); return *this;}
118
120
124 inline const Statement& GetAbortStatement() const { return m_abortStatement; }
125 template<typename AbortStatementT = Statement>
126 void SetAbortStatement(AbortStatementT&& value) { m_abortStatementHasBeenSet = true; m_abortStatement = std::forward<AbortStatementT>(value); }
127 template<typename AbortStatementT = Statement>
128 PutBotResult& WithAbortStatement(AbortStatementT&& value) { SetAbortStatement(std::forward<AbortStatementT>(value)); return *this;}
130
132
145 inline Status GetStatus() const { return m_status; }
146 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
147 inline PutBotResult& WithStatus(Status value) { SetStatus(value); return *this;}
149
151
155 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
156 template<typename FailureReasonT = Aws::String>
157 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
158 template<typename FailureReasonT = Aws::String>
159 PutBotResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
161
163
167 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
168 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
169 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
170 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
171 PutBotResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
173
175
178 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
179 template<typename CreatedDateT = Aws::Utils::DateTime>
180 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
181 template<typename CreatedDateT = Aws::Utils::DateTime>
182 PutBotResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
184
186
190 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
191 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
192 inline PutBotResult& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
194
196
200 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
201 template<typename VoiceIdT = Aws::String>
202 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
203 template<typename VoiceIdT = Aws::String>
204 PutBotResult& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
206
208
211 inline const Aws::String& GetChecksum() const { return m_checksum; }
212 template<typename ChecksumT = Aws::String>
213 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
214 template<typename ChecksumT = Aws::String>
215 PutBotResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
217
219
223 inline const Aws::String& GetVersion() const { return m_version; }
224 template<typename VersionT = Aws::String>
225 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
226 template<typename VersionT = Aws::String>
227 PutBotResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
229
231
234 inline Locale GetLocale() const { return m_locale; }
235 inline void SetLocale(Locale value) { m_localeHasBeenSet = true; m_locale = value; }
236 inline PutBotResult& WithLocale(Locale value) { SetLocale(value); return *this;}
238
240
265 inline bool GetChildDirected() const { return m_childDirected; }
266 inline void SetChildDirected(bool value) { m_childDirectedHasBeenSet = true; m_childDirected = value; }
267 inline PutBotResult& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
269
271
276 inline bool GetCreateVersion() const { return m_createVersion; }
277 inline void SetCreateVersion(bool value) { m_createVersionHasBeenSet = true; m_createVersion = value; }
278 inline PutBotResult& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
280
282
288 inline bool GetDetectSentiment() const { return m_detectSentiment; }
289 inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; }
290 inline PutBotResult& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
292
294
297 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
298 template<typename TagsT = Aws::Vector<Tag>>
299 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
300 template<typename TagsT = Aws::Vector<Tag>>
301 PutBotResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
302 template<typename TagsT = Tag>
303 PutBotResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
305
307
308 inline const Aws::String& GetRequestId() const { return m_requestId; }
309 template<typename RequestIdT = Aws::String>
310 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
311 template<typename RequestIdT = Aws::String>
312 PutBotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
314 private:
315
316 Aws::String m_name;
317 bool m_nameHasBeenSet = false;
318
319 Aws::String m_description;
320 bool m_descriptionHasBeenSet = false;
321
322 Aws::Vector<Intent> m_intents;
323 bool m_intentsHasBeenSet = false;
324
325 bool m_enableModelImprovements{false};
326 bool m_enableModelImprovementsHasBeenSet = false;
327
328 double m_nluIntentConfidenceThreshold{0.0};
329 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
330
331 Prompt m_clarificationPrompt;
332 bool m_clarificationPromptHasBeenSet = false;
333
334 Statement m_abortStatement;
335 bool m_abortStatementHasBeenSet = false;
336
337 Status m_status{Status::NOT_SET};
338 bool m_statusHasBeenSet = false;
339
340 Aws::String m_failureReason;
341 bool m_failureReasonHasBeenSet = false;
342
343 Aws::Utils::DateTime m_lastUpdatedDate{};
344 bool m_lastUpdatedDateHasBeenSet = false;
345
346 Aws::Utils::DateTime m_createdDate{};
347 bool m_createdDateHasBeenSet = false;
348
349 int m_idleSessionTTLInSeconds{0};
350 bool m_idleSessionTTLInSecondsHasBeenSet = false;
351
352 Aws::String m_voiceId;
353 bool m_voiceIdHasBeenSet = false;
354
355 Aws::String m_checksum;
356 bool m_checksumHasBeenSet = false;
357
358 Aws::String m_version;
359 bool m_versionHasBeenSet = false;
360
361 Locale m_locale{Locale::NOT_SET};
362 bool m_localeHasBeenSet = false;
363
364 bool m_childDirected{false};
365 bool m_childDirectedHasBeenSet = false;
366
367 bool m_createVersion{false};
368 bool m_createVersionHasBeenSet = false;
369
370 bool m_detectSentiment{false};
371 bool m_detectSentimentHasBeenSet = false;
372
373 Aws::Vector<Tag> m_tags;
374 bool m_tagsHasBeenSet = false;
375
376 Aws::String m_requestId;
377 bool m_requestIdHasBeenSet = false;
378 };
379
380} // namespace Model
381} // namespace LexModelBuildingService
382} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutBotResult & WithClarificationPrompt(ClarificationPromptT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult()=default
PutBotResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetAbortStatement(AbortStatementT &&value)
PutBotResult & WithFailureReason(FailureReasonT &&value)
PutBotResult & WithRequestId(RequestIdT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
void SetClarificationPrompt(ClarificationPromptT &&value)
PutBotResult & WithVersion(VersionT &&value)
PutBotResult & AddIntents(IntentsT &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutBotResult & WithChecksum(ChecksumT &&value)
const Aws::Vector< Intent > & GetIntents() const
PutBotResult & WithDescription(DescriptionT &&value)
PutBotResult & WithAbortStatement(AbortStatementT &&value)
PutBotResult & WithEnableModelImprovements(bool value)
PutBotResult & WithIdleSessionTTLInSeconds(int value)
PutBotResult & WithIntents(IntentsT &&value)
PutBotResult & WithVoiceId(VoiceIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
PutBotResult & WithCreatedDate(CreatedDateT &&value)
const Aws::Vector< Tag > & GetTags() const
PutBotResult & WithNluIntentConfidenceThreshold(double 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