AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_name = value; }
49 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
50 inline void SetName(const char* value) { m_name.assign(value); }
51 inline PutBotResult& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline PutBotResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline PutBotResult& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline void SetDescription(const Aws::String& value) { m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_description.assign(value); }
64 inline PutBotResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline PutBotResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline PutBotResult& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
74 inline const Aws::Vector<Intent>& GetIntents() const{ return m_intents; }
75 inline void SetIntents(const Aws::Vector<Intent>& value) { m_intents = value; }
76 inline void SetIntents(Aws::Vector<Intent>&& value) { m_intents = std::move(value); }
77 inline PutBotResult& WithIntents(const Aws::Vector<Intent>& value) { SetIntents(value); return *this;}
78 inline PutBotResult& WithIntents(Aws::Vector<Intent>&& value) { SetIntents(std::move(value)); return *this;}
79 inline PutBotResult& AddIntents(const Intent& value) { m_intents.push_back(value); return *this; }
80 inline PutBotResult& AddIntents(Intent&& value) { m_intents.push_back(std::move(value)); return *this; }
82
84
89 inline bool GetEnableModelImprovements() const{ return m_enableModelImprovements; }
90 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovements = value; }
91 inline PutBotResult& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
93
95
106 inline double GetNluIntentConfidenceThreshold() const{ return m_nluIntentConfidenceThreshold; }
107 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThreshold = value; }
110
112
116 inline const Prompt& GetClarificationPrompt() const{ return m_clarificationPrompt; }
117 inline void SetClarificationPrompt(const Prompt& value) { m_clarificationPrompt = value; }
118 inline void SetClarificationPrompt(Prompt&& value) { m_clarificationPrompt = std::move(value); }
119 inline PutBotResult& WithClarificationPrompt(const Prompt& value) { SetClarificationPrompt(value); return *this;}
120 inline PutBotResult& WithClarificationPrompt(Prompt&& value) { SetClarificationPrompt(std::move(value)); return *this;}
122
124
128 inline const Statement& GetAbortStatement() const{ return m_abortStatement; }
129 inline void SetAbortStatement(const Statement& value) { m_abortStatement = value; }
130 inline void SetAbortStatement(Statement&& value) { m_abortStatement = std::move(value); }
131 inline PutBotResult& WithAbortStatement(const Statement& value) { SetAbortStatement(value); return *this;}
132 inline PutBotResult& WithAbortStatement(Statement&& value) { SetAbortStatement(std::move(value)); return *this;}
134
136
149 inline const Status& GetStatus() const{ return m_status; }
150 inline void SetStatus(const Status& value) { m_status = value; }
151 inline void SetStatus(Status&& value) { m_status = std::move(value); }
152 inline PutBotResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
153 inline PutBotResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
155
157
161 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
162 inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; }
163 inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); }
164 inline void SetFailureReason(const char* value) { m_failureReason.assign(value); }
165 inline PutBotResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
166 inline PutBotResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
167 inline PutBotResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
169
171
175 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
176 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
177 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
178 inline PutBotResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
179 inline PutBotResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
181
183
186 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
187 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
188 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
189 inline PutBotResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
190 inline PutBotResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
192
194
198 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
199 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSeconds = value; }
200 inline PutBotResult& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
202
204
208 inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
209 inline void SetVoiceId(const Aws::String& value) { m_voiceId = value; }
210 inline void SetVoiceId(Aws::String&& value) { m_voiceId = std::move(value); }
211 inline void SetVoiceId(const char* value) { m_voiceId.assign(value); }
212 inline PutBotResult& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
213 inline PutBotResult& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
214 inline PutBotResult& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
216
218
221 inline const Aws::String& GetChecksum() const{ return m_checksum; }
222 inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
223 inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
224 inline void SetChecksum(const char* value) { m_checksum.assign(value); }
225 inline PutBotResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
226 inline PutBotResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
227 inline PutBotResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
229
231
235 inline const Aws::String& GetVersion() const{ return m_version; }
236 inline void SetVersion(const Aws::String& value) { m_version = value; }
237 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
238 inline void SetVersion(const char* value) { m_version.assign(value); }
239 inline PutBotResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
240 inline PutBotResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
241 inline PutBotResult& WithVersion(const char* value) { SetVersion(value); return *this;}
243
245
248 inline const Locale& GetLocale() const{ return m_locale; }
249 inline void SetLocale(const Locale& value) { m_locale = value; }
250 inline void SetLocale(Locale&& value) { m_locale = std::move(value); }
251 inline PutBotResult& WithLocale(const Locale& value) { SetLocale(value); return *this;}
252 inline PutBotResult& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
254
256
281 inline bool GetChildDirected() const{ return m_childDirected; }
282 inline void SetChildDirected(bool value) { m_childDirected = value; }
283 inline PutBotResult& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
285
287
292 inline bool GetCreateVersion() const{ return m_createVersion; }
293 inline void SetCreateVersion(bool value) { m_createVersion = value; }
294 inline PutBotResult& WithCreateVersion(bool value) { SetCreateVersion(value); return *this;}
296
298
304 inline bool GetDetectSentiment() const{ return m_detectSentiment; }
305 inline void SetDetectSentiment(bool value) { m_detectSentiment = value; }
306 inline PutBotResult& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
308
310
313 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
314 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
315 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
316 inline PutBotResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
317 inline PutBotResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
318 inline PutBotResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
319 inline PutBotResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
321
323
324 inline const Aws::String& GetRequestId() const{ return m_requestId; }
325 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
326 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
327 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
328 inline PutBotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
329 inline PutBotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
330 inline PutBotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
332 private:
333
334 Aws::String m_name;
335
336 Aws::String m_description;
337
338 Aws::Vector<Intent> m_intents;
339
340 bool m_enableModelImprovements;
341
342 double m_nluIntentConfidenceThreshold;
343
344 Prompt m_clarificationPrompt;
345
346 Statement m_abortStatement;
347
348 Status m_status;
349
350 Aws::String m_failureReason;
351
352 Aws::Utils::DateTime m_lastUpdatedDate;
353
354 Aws::Utils::DateTime m_createdDate;
355
356 int m_idleSessionTTLInSeconds;
357
358 Aws::String m_voiceId;
359
360 Aws::String m_checksum;
361
362 Aws::String m_version;
363
364 Locale m_locale;
365
366 bool m_childDirected;
367
368 bool m_createVersion;
369
370 bool m_detectSentiment;
371
372 Aws::Vector<Tag> m_tags;
373
374 Aws::String m_requestId;
375 };
376
377} // namespace Model
378} // namespace LexModelBuildingService
379} // namespace Aws
PutBotResult & WithRequestId(const Aws::String &value)
PutBotResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutBotResult & WithClarificationPrompt(const Prompt &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
PutBotResult & WithVersion(Aws::String &&value)
PutBotResult & WithLocale(const Locale &value)
PutBotResult & WithVoiceId(const char *value)
PutBotResult & WithFailureReason(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
PutBotResult & WithCreatedDate(Aws::Utils::DateTime &&value)
PutBotResult & WithRequestId(Aws::String &&value)
PutBotResult & WithFailureReason(Aws::String &&value)
void SetIntents(const Aws::Vector< Intent > &value)
PutBotResult & WithStatus(const Status &value)
PutBotResult & WithAbortStatement(Statement &&value)
void SetRequestId(const Aws::String &value)
PutBotResult & WithChecksum(const Aws::String &value)
PutBotResult & WithAbortStatement(const Statement &value)
PutBotResult & WithCreatedDate(const Aws::Utils::DateTime &value)
PutBotResult & WithVersion(const char *value)
PutBotResult & WithTags(const Aws::Vector< Tag > &value)
PutBotResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
PutBotResult & WithVersion(const Aws::String &value)
PutBotResult & WithChecksum(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
PutBotResult & WithName(const char *value)
PutBotResult & AddIntents(const Intent &value)
PutBotResult & WithVoiceId(Aws::String &&value)
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutBotResult & WithTags(Aws::Vector< Tag > &&value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_LEXMODELBUILDINGSERVICE_API PutBotResult()
PutBotResult & WithName(const Aws::String &value)
PutBotResult & WithDescription(Aws::String &&value)
PutBotResult & WithRequestId(const char *value)
void SetIntents(Aws::Vector< Intent > &&value)
const Aws::Vector< Intent > & GetIntents() const
PutBotResult & WithClarificationPrompt(Prompt &&value)
PutBotResult & AddIntents(Intent &&value)
PutBotResult & WithEnableModelImprovements(bool value)
void SetDescription(const Aws::String &value)
PutBotResult & WithName(Aws::String &&value)
PutBotResult & WithFailureReason(const Aws::String &value)
PutBotResult & WithDescription(const char *value)
PutBotResult & WithDescription(const Aws::String &value)
PutBotResult & WithIntents(const Aws::Vector< Intent > &value)
PutBotResult & WithIdleSessionTTLInSeconds(int value)
PutBotResult & AddTags(const Tag &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetFailureReason(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedDate() const
PutBotResult & WithIntents(Aws::Vector< Intent > &&value)
PutBotResult & WithVoiceId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
PutBotResult & WithChecksum(Aws::String &&value)
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