AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateBotVersionResult.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 CreateBotVersionResult() = default;
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 CreateBotVersionResult& 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 CreateBotVersionResult& 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 CreateBotVersionResult& WithIntents(IntentsT&& value) { SetIntents(std::forward<IntentsT>(value)); return *this;}
74 template<typename IntentsT = Intent>
75 CreateBotVersionResult& AddIntents(IntentsT&& value) { m_intentsHasBeenSet = true; m_intents.emplace_back(std::forward<IntentsT>(value)); return *this; }
77
79
83 inline const Prompt& GetClarificationPrompt() const { return m_clarificationPrompt; }
84 template<typename ClarificationPromptT = Prompt>
85 void SetClarificationPrompt(ClarificationPromptT&& value) { m_clarificationPromptHasBeenSet = true; m_clarificationPrompt = std::forward<ClarificationPromptT>(value); }
86 template<typename ClarificationPromptT = Prompt>
87 CreateBotVersionResult& WithClarificationPrompt(ClarificationPromptT&& value) { SetClarificationPrompt(std::forward<ClarificationPromptT>(value)); return *this;}
89
91
95 inline const Statement& GetAbortStatement() const { return m_abortStatement; }
96 template<typename AbortStatementT = Statement>
97 void SetAbortStatement(AbortStatementT&& value) { m_abortStatementHasBeenSet = true; m_abortStatement = std::forward<AbortStatementT>(value); }
98 template<typename AbortStatementT = Statement>
99 CreateBotVersionResult& WithAbortStatement(AbortStatementT&& value) { SetAbortStatement(std::forward<AbortStatementT>(value)); return *this;}
101
103
111 inline Status GetStatus() const { return m_status; }
112 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
113 inline CreateBotVersionResult& WithStatus(Status value) { SetStatus(value); return *this;}
115
117
121 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
122 template<typename FailureReasonT = Aws::String>
123 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
124 template<typename FailureReasonT = Aws::String>
125 CreateBotVersionResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
133 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
134 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
135 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
136 CreateBotVersionResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
144 template<typename CreatedDateT = Aws::Utils::DateTime>
145 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
146 template<typename CreatedDateT = Aws::Utils::DateTime>
147 CreateBotVersionResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
149
151
155 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
156 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
159
161
165 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
166 template<typename VoiceIdT = Aws::String>
167 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
168 template<typename VoiceIdT = Aws::String>
169 CreateBotVersionResult& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
171
173
176 inline const Aws::String& GetChecksum() const { return m_checksum; }
177 template<typename ChecksumT = Aws::String>
178 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
179 template<typename ChecksumT = Aws::String>
180 CreateBotVersionResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
182
184
187 inline const Aws::String& GetVersion() const { return m_version; }
188 template<typename VersionT = Aws::String>
189 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
190 template<typename VersionT = Aws::String>
191 CreateBotVersionResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
193
195
198 inline Locale GetLocale() const { return m_locale; }
199 inline void SetLocale(Locale value) { m_localeHasBeenSet = true; m_locale = value; }
200 inline CreateBotVersionResult& WithLocale(Locale value) { SetLocale(value); return *this;}
202
204
229 inline bool GetChildDirected() const { return m_childDirected; }
230 inline void SetChildDirected(bool value) { m_childDirectedHasBeenSet = true; m_childDirected = value; }
231 inline CreateBotVersionResult& WithChildDirected(bool value) { SetChildDirected(value); return *this;}
233
235
240 inline bool GetEnableModelImprovements() const { return m_enableModelImprovements; }
241 inline void SetEnableModelImprovements(bool value) { m_enableModelImprovementsHasBeenSet = true; m_enableModelImprovements = value; }
244
246
250 inline bool GetDetectSentiment() const { return m_detectSentiment; }
251 inline void SetDetectSentiment(bool value) { m_detectSentimentHasBeenSet = true; m_detectSentiment = value; }
252 inline CreateBotVersionResult& WithDetectSentiment(bool value) { SetDetectSentiment(value); return *this;}
254
256
257 inline const Aws::String& GetRequestId() const { return m_requestId; }
258 template<typename RequestIdT = Aws::String>
259 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
260 template<typename RequestIdT = Aws::String>
261 CreateBotVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
263 private:
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 Aws::String m_description;
269 bool m_descriptionHasBeenSet = false;
270
271 Aws::Vector<Intent> m_intents;
272 bool m_intentsHasBeenSet = false;
273
274 Prompt m_clarificationPrompt;
275 bool m_clarificationPromptHasBeenSet = false;
276
277 Statement m_abortStatement;
278 bool m_abortStatementHasBeenSet = false;
279
280 Status m_status{Status::NOT_SET};
281 bool m_statusHasBeenSet = false;
282
283 Aws::String m_failureReason;
284 bool m_failureReasonHasBeenSet = false;
285
286 Aws::Utils::DateTime m_lastUpdatedDate{};
287 bool m_lastUpdatedDateHasBeenSet = false;
288
289 Aws::Utils::DateTime m_createdDate{};
290 bool m_createdDateHasBeenSet = false;
291
292 int m_idleSessionTTLInSeconds{0};
293 bool m_idleSessionTTLInSecondsHasBeenSet = false;
294
295 Aws::String m_voiceId;
296 bool m_voiceIdHasBeenSet = false;
297
298 Aws::String m_checksum;
299 bool m_checksumHasBeenSet = false;
300
301 Aws::String m_version;
302 bool m_versionHasBeenSet = false;
303
304 Locale m_locale{Locale::NOT_SET};
305 bool m_localeHasBeenSet = false;
306
307 bool m_childDirected{false};
308 bool m_childDirectedHasBeenSet = false;
309
310 bool m_enableModelImprovements{false};
311 bool m_enableModelImprovementsHasBeenSet = false;
312
313 bool m_detectSentiment{false};
314 bool m_detectSentimentHasBeenSet = false;
315
316 Aws::String m_requestId;
317 bool m_requestIdHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace LexModelBuildingService
322} // namespace Aws
CreateBotVersionResult & WithCreatedDate(CreatedDateT &&value)
CreateBotVersionResult & WithClarificationPrompt(ClarificationPromptT &&value)
CreateBotVersionResult & WithAbortStatement(AbortStatementT &&value)
CreateBotVersionResult & WithDescription(DescriptionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API CreateBotVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateBotVersionResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
CreateBotVersionResult & WithRequestId(RequestIdT &&value)
CreateBotVersionResult & WithFailureReason(FailureReasonT &&value)
AWS_LEXMODELBUILDINGSERVICE_API CreateBotVersionResult()=default
AWS_LEXMODELBUILDINGSERVICE_API CreateBotVersionResult(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