AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 GetBotResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 GetBotResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Intent>& GetIntents() const { return m_intents; }
70 template<typename IntentsT = Aws::Vector<Intent>>
71 void SetIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents = std::forward<IntentsT>(value); }
72 template<typename IntentsT = Aws::Vector<Intent>>
73 GetBotResult& WithIntents(IntentsT&& value) { SetIntents(std::forward<IntentsT>(value)); return *this;}
74 template<typename IntentsT = Intent>
75 GetBotResult& AddIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents.emplace_back(std::forward<IntentsT>(value)); return *this; }
77
79
84 inline bool GetEnableModelImprovements() const { return m_enableModelImprovements; }
85 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovementsHasBeenSet = true; m_enableModelImprovements = value; }
86 inline GetBotResult& WithEnableModelImprovements(bool value) { SetEnableModelImprovements(value); return *this;}
88
90
101 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
102 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
105
107
111 inline const Prompt& GetClarificationPrompt() const { return m_clarificationPrompt; }
112 template<typename ClarificationPromptT = Prompt>
113 void SetClarificationPrompt(ClarificationPromptT&& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = std::forward<ClarificationPromptT>(value); }
114 template<typename ClarificationPromptT = Prompt>
115 GetBotResult& WithClarificationPrompt(ClarificationPromptT&& value) { SetClarificationPrompt(std::forward<ClarificationPromptT>(value)); return *this;}
117
119
123 inline const Statement& GetAbortStatement() const { return m_abortStatement; }
124 template<typename AbortStatementT = Statement>
125 void SetAbortStatement(AbortStatementT&& value) { m_abortStatementHasBeenSet = true; m_abortStatement = std::forward<AbortStatementT>(value); }
126 template<typename AbortStatementT = Statement>
127 GetBotResult& WithAbortStatement(AbortStatementT&& value) { SetAbortStatement(std::forward<AbortStatementT>(value)); return *this;}
129
131
141 inline Status GetStatus() const { return m_status; }
142 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
143 inline GetBotResult& WithStatus(Status value) { SetStatus(value); return *this;}
145
147
151 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
152 template<typename FailureReasonT = Aws::String>
153 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
154 template<typename FailureReasonT = Aws::String>
155 GetBotResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
157
159
163 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
164 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
165 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
166 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
167 GetBotResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
169
171
174 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
175 template<typename CreatedDateT = Aws::Utils::DateTime>
176 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
177 template<typename CreatedDateT = Aws::Utils::DateTime>
178 GetBotResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
180
182
186 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
187 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
188 inline GetBotResult& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
190
192
196 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
197 template<typename VoiceIdT = Aws::String>
198 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
199 template<typename VoiceIdT = Aws::String>
200 GetBotResult& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
202
204
208 inline const Aws::String& GetChecksum() const { return m_checksum; }
209 template<typename ChecksumT = Aws::String>
210 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
211 template<typename ChecksumT = Aws::String>
212 GetBotResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
214
216
220 inline const Aws::String& GetVersion() const { return m_version; }
221 template<typename VersionT = Aws::String>
222 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
223 template<typename VersionT = Aws::String>
224 GetBotResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
226
228
231 inline Locale GetLocale() const { return m_locale; }
232 inline void SetLocale(Locale value) { m_localeHasBeenSet = true; m_locale = value; }
233 inline GetBotResult& WithLocale(Locale value) { SetLocale(value); return *this;}
235
237
262 inline bool GetChildDirected() const { return m_childDirected; }
263 inline void SetChildDirected(bool value) { m_childDirectedHasBeenSet = true; m_childDirected = value; }
264 inline GetBotResult& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
266
268
272 inline bool GetDetectSentiment() const { return m_detectSentiment; }
273 inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; }
274 inline GetBotResult& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
276
278
279 inline const Aws::String& GetRequestId() const { return m_requestId; }
280 template<typename RequestIdT = Aws::String>
281 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
282 template<typename RequestIdT = Aws::String>
283 GetBotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
285 private:
286
287 Aws::String m_name;
288 bool m_nameHasBeenSet = false;
289
290 Aws::String m_description;
291 bool m_descriptionHasBeenSet = false;
292
293 Aws::Vector<Intent> m_intents;
294 bool m_intentsHasBeenSet = false;
295
296 bool m_enableModelImprovements{false};
297 bool m_enableModelImprovementsHasBeenSet = false;
298
299 double m_nluIntentConfidenceThreshold{0.0};
300 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
301
302 Prompt m_clarificationPrompt;
303 bool m_clarificationPromptHasBeenSet = false;
304
305 Statement m_abortStatement;
306 bool m_abortStatementHasBeenSet = false;
307
308 Status m_status{Status::NOT_SET};
309 bool m_statusHasBeenSet = false;
310
311 Aws::String m_failureReason;
312 bool m_failureReasonHasBeenSet = false;
313
314 Aws::Utils::DateTime m_lastUpdatedDate{};
315 bool m_lastUpdatedDateHasBeenSet = false;
316
317 Aws::Utils::DateTime m_createdDate{};
318 bool m_createdDateHasBeenSet = false;
319
320 int m_idleSessionTTLInSeconds{0};
321 bool m_idleSessionTTLInSecondsHasBeenSet = false;
322
323 Aws::String m_voiceId;
324 bool m_voiceIdHasBeenSet = false;
325
326 Aws::String m_checksum;
327 bool m_checksumHasBeenSet = false;
328
329 Aws::String m_version;
330 bool m_versionHasBeenSet = false;
331
332 Locale m_locale{Locale::NOT_SET};
333 bool m_localeHasBeenSet = false;
334
335 bool m_childDirected{false};
336 bool m_childDirectedHasBeenSet = false;
337
338 bool m_detectSentiment{false};
339 bool m_detectSentimentHasBeenSet = false;
340
341 Aws::String m_requestId;
342 bool m_requestIdHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace LexModelBuildingService
347} // namespace Aws
GetBotResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
GetBotResult & WithAbortStatement(AbortStatementT &&value)
GetBotResult & WithClarificationPrompt(ClarificationPromptT &&value)
void SetAbortStatement(AbortStatementT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetBotResult & WithIntents(IntentsT &&value)
GetBotResult & WithVersion(VersionT &&value)
GetBotResult & WithCreatedDate(CreatedDateT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult()=default
GetBotResult & WithRequestId(RequestIdT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBotResult & WithFailureReason(FailureReasonT &&value)
const Aws::Vector< Intent > & GetIntents() const
GetBotResult & WithNluIntentConfidenceThreshold(double value)
GetBotResult & WithEnableModelImprovements(bool value)
GetBotResult & WithIdleSessionTTLInSeconds(int value)
void SetClarificationPrompt(ClarificationPromptT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetBotResult & WithChecksum(ChecksumT &&value)
GetBotResult & WithDescription(DescriptionT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
GetBotResult & WithVoiceId(VoiceIdT &&value)
GetBotResult & AddIntents(IntentsT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue