AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBotResult.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 <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace LexModelBuildingService
31{
32namespace Model
33{
35 {
36 public:
37 AWS_LEXMODELBUILDINGSERVICE_API GetBotResult();
38 AWS_LEXMODELBUILDINGSERVICE_API GetBotResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline void SetName(const Aws::String& value) { m_name = value; }
48 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
49 inline void SetName(const char* value) { m_name.assign(value); }
50 inline GetBotResult& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline GetBotResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline GetBotResult& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline void SetDescription(const Aws::String& value) { m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_description.assign(value); }
63 inline GetBotResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline GetBotResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline GetBotResult& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
73 inline const Aws::Vector<Intent>& GetIntents() const{ return m_intents; }
74 inline void SetIntents(const Aws::Vector<Intent>& value) { m_intents = value; }
75 inline void SetIntents(Aws::Vector<Intent>&& value) { m_intents = std::move(value); }
76 inline GetBotResult& WithIntents(const Aws::Vector<Intent>& value) { SetIntents(value); return *this;}
77 inline GetBotResult& WithIntents(Aws::Vector<Intent>&& value) { SetIntents(std::move(value)); return *this;}
78 inline GetBotResult& AddIntents(const Intent& value) { m_intents.push_back(value); return *this; }
79 inline GetBotResult& AddIntents(Intent&& value) { m_intents.push_back(std::move(value)); return *this; }
81
83
88 inline bool GetEnableModelImprovements() const{ return m_enableModelImprovements; }
89 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovements = value; }
90 inline GetBotResult& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
92
94
105 inline double GetNluIntentConfidenceThreshold() const{ return m_nluIntentConfidenceThreshold; }
106 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThreshold = value; }
109
111
115 inline const Prompt& GetClarificationPrompt() const{ return m_clarificationPrompt; }
116 inline void SetClarificationPrompt(const Prompt& value) { m_clarificationPrompt = value; }
117 inline void SetClarificationPrompt(Prompt&& value) { m_clarificationPrompt = std::move(value); }
118 inline GetBotResult& WithClarificationPrompt(const Prompt& value) { SetClarificationPrompt(value); return *this;}
119 inline GetBotResult& WithClarificationPrompt(Prompt&& value) { SetClarificationPrompt(std::move(value)); return *this;}
121
123
127 inline const Statement& GetAbortStatement() const{ return m_abortStatement; }
128 inline void SetAbortStatement(const Statement& value) { m_abortStatement = value; }
129 inline void SetAbortStatement(Statement&& value) { m_abortStatement = std::move(value); }
130 inline GetBotResult& WithAbortStatement(const Statement& value) { SetAbortStatement(value); return *this;}
131 inline GetBotResult& WithAbortStatement(Statement&& value) { SetAbortStatement(std::move(value)); return *this;}
133
135
145 inline const Status& GetStatus() const{ return m_status; }
146 inline void SetStatus(const Status& value) { m_status = value; }
147 inline void SetStatus(Status&& value) { m_status = std::move(value); }
148 inline GetBotResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
149 inline GetBotResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
151
153
157 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
158 inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; }
159 inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); }
160 inline void SetFailureReason(const char* value) { m_failureReason.assign(value); }
161 inline GetBotResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
162 inline GetBotResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
163 inline GetBotResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
165
167
171 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
172 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
173 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
174 inline GetBotResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
175 inline GetBotResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
183 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
184 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
185 inline GetBotResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
186 inline GetBotResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
188
190
194 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
195 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSeconds = value; }
196 inline GetBotResult& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
198
200
204 inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
205 inline void SetVoiceId(const Aws::String& value) { m_voiceId = value; }
206 inline void SetVoiceId(Aws::String&& value) { m_voiceId = std::move(value); }
207 inline void SetVoiceId(const char* value) { m_voiceId.assign(value); }
208 inline GetBotResult& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
209 inline GetBotResult& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
210 inline GetBotResult& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
212
214
218 inline const Aws::String& GetChecksum() const{ return m_checksum; }
219 inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
220 inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
221 inline void SetChecksum(const char* value) { m_checksum.assign(value); }
222 inline GetBotResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
223 inline GetBotResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
224 inline GetBotResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
226
228
232 inline const Aws::String& GetVersion() const{ return m_version; }
233 inline void SetVersion(const Aws::String& value) { m_version = value; }
234 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
235 inline void SetVersion(const char* value) { m_version.assign(value); }
236 inline GetBotResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
237 inline GetBotResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
238 inline GetBotResult& WithVersion(const char* value) { SetVersion(value); return *this;}
240
242
245 inline const Locale& GetLocale() const{ return m_locale; }
246 inline void SetLocale(const Locale& value) { m_locale = value; }
247 inline void SetLocale(Locale&& value) { m_locale = std::move(value); }
248 inline GetBotResult& WithLocale(const Locale& value) { SetLocale(value); return *this;}
249 inline GetBotResult& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
251
253
278 inline bool GetChildDirected() const{ return m_childDirected; }
279 inline void SetChildDirected(bool value) { m_childDirected = value; }
280 inline GetBotResult& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
282
284
288 inline bool GetDetectSentiment() const{ return m_detectSentiment; }
289 inline void SetDetectSentiment(bool value) { m_detectSentiment = value; }
290 inline GetBotResult& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
292
294
295 inline const Aws::String& GetRequestId() const{ return m_requestId; }
296 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
297 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
298 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
299 inline GetBotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
300 inline GetBotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
301 inline GetBotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
303 private:
304
305 Aws::String m_name;
306
307 Aws::String m_description;
308
309 Aws::Vector<Intent> m_intents;
310
311 bool m_enableModelImprovements;
312
313 double m_nluIntentConfidenceThreshold;
314
315 Prompt m_clarificationPrompt;
316
317 Statement m_abortStatement;
318
319 Status m_status;
320
321 Aws::String m_failureReason;
322
323 Aws::Utils::DateTime m_lastUpdatedDate;
324
325 Aws::Utils::DateTime m_createdDate;
326
327 int m_idleSessionTTLInSeconds;
328
329 Aws::String m_voiceId;
330
331 Aws::String m_checksum;
332
333 Aws::String m_version;
334
335 Locale m_locale;
336
337 bool m_childDirected;
338
339 bool m_detectSentiment;
340
341 Aws::String m_requestId;
342 };
343
344} // namespace Model
345} // namespace LexModelBuildingService
346} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult()
GetBotResult & WithFailureReason(const char *value)
void SetFailureReason(const Aws::String &value)
GetBotResult & WithRequestId(const Aws::String &value)
GetBotResult & WithChecksum(Aws::String &&value)
GetBotResult & WithIntents(Aws::Vector< Intent > &&value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
GetBotResult & WithVoiceId(const char *value)
GetBotResult & WithIntents(const Aws::Vector< Intent > &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetBotResult & AddIntents(const Intent &value)
GetBotResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
GetBotResult & WithVersion(Aws::String &&value)
GetBotResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
void SetIntents(Aws::Vector< Intent > &&value)
void SetIntents(const Aws::Vector< Intent > &value)
GetBotResult & WithAbortStatement(const Statement &value)
GetBotResult & WithLocale(const Locale &value)
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBotResult & WithDescription(Aws::String &&value)
GetBotResult & AddIntents(Intent &&value)
void SetRequestId(const Aws::String &value)
const Aws::Vector< Intent > & GetIntents() const
GetBotResult & WithNluIntentConfidenceThreshold(double value)
GetBotResult & WithEnableModelImprovements(bool value)
GetBotResult & WithIdleSessionTTLInSeconds(int value)
GetBotResult & WithVoiceId(Aws::String &&value)
GetBotResult & WithChecksum(const Aws::String &value)
GetBotResult & WithCreatedDate(const Aws::Utils::DateTime &value)
GetBotResult & WithDescription(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetDescription(const Aws::String &value)
GetBotResult & WithFailureReason(const Aws::String &value)
GetBotResult & WithRequestId(Aws::String &&value)
GetBotResult & WithVoiceId(const Aws::String &value)
GetBotResult & WithName(const Aws::String &value)
GetBotResult & WithRequestId(const char *value)
GetBotResult & WithChecksum(const char *value)
GetBotResult & WithVersion(const char *value)
GetBotResult & WithCreatedDate(Aws::Utils::DateTime &&value)
GetBotResult & WithFailureReason(Aws::String &&value)
GetBotResult & WithStatus(const Status &value)
GetBotResult & WithClarificationPrompt(const Prompt &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
GetBotResult & WithName(const char *value)
GetBotResult & WithVersion(const Aws::String &value)
GetBotResult & WithName(Aws::String &&value)
GetBotResult & WithAbortStatement(Statement &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBotResult & WithDescription(const Aws::String &value)
GetBotResult & WithClarificationPrompt(Prompt &&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