AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeBotResourceGenerationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/GenerationStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LexModelsV2 {
26namespace Model {
28 public:
29 AWS_LEXMODELSV2_API DescribeBotResourceGenerationResult() = default;
33
35
39 inline const Aws::String& GetBotId() const { return m_botId; }
40 template <typename BotIdT = Aws::String>
41 void SetBotId(BotIdT&& value) {
42 m_botIdHasBeenSet = true;
43 m_botId = std::forward<BotIdT>(value);
44 }
45 template <typename BotIdT = Aws::String>
47 SetBotId(std::forward<BotIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
57 template <typename BotVersionT = Aws::String>
58 void SetBotVersion(BotVersionT&& value) {
59 m_botVersionHasBeenSet = true;
60 m_botVersion = std::forward<BotVersionT>(value);
61 }
62 template <typename BotVersionT = Aws::String>
64 SetBotVersion(std::forward<BotVersionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetLocaleId() const { return m_localeId; }
74 template <typename LocaleIdT = Aws::String>
75 void SetLocaleId(LocaleIdT&& value) {
76 m_localeIdHasBeenSet = true;
77 m_localeId = std::forward<LocaleIdT>(value);
78 }
79 template <typename LocaleIdT = Aws::String>
81 SetLocaleId(std::forward<LocaleIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetGenerationId() const { return m_generationId; }
91 template <typename GenerationIdT = Aws::String>
92 void SetGenerationId(GenerationIdT&& value) {
93 m_generationIdHasBeenSet = true;
94 m_generationId = std::forward<GenerationIdT>(value);
95 }
96 template <typename GenerationIdT = Aws::String>
98 SetGenerationId(std::forward<GenerationIdT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
109 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
110 void SetFailureReasons(FailureReasonsT&& value) {
111 m_failureReasonsHasBeenSet = true;
112 m_failureReasons = std::forward<FailureReasonsT>(value);
113 }
114 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
116 SetFailureReasons(std::forward<FailureReasonsT>(value));
117 return *this;
118 }
119 template <typename FailureReasonsT = Aws::String>
121 m_failureReasonsHasBeenSet = true;
122 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
123 return *this;
124 }
126
128
131 inline GenerationStatus GetGenerationStatus() const { return m_generationStatus; }
133 m_generationStatusHasBeenSet = true;
134 m_generationStatus = value;
135 }
137 SetGenerationStatus(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetGenerationInputPrompt() const { return m_generationInputPrompt; }
147 template <typename GenerationInputPromptT = Aws::String>
148 void SetGenerationInputPrompt(GenerationInputPromptT&& value) {
149 m_generationInputPromptHasBeenSet = true;
150 m_generationInputPrompt = std::forward<GenerationInputPromptT>(value);
151 }
152 template <typename GenerationInputPromptT = Aws::String>
154 SetGenerationInputPrompt(std::forward<GenerationInputPromptT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetGeneratedBotLocaleUrl() const { return m_generatedBotLocaleUrl; }
164 template <typename GeneratedBotLocaleUrlT = Aws::String>
165 void SetGeneratedBotLocaleUrl(GeneratedBotLocaleUrlT&& value) {
166 m_generatedBotLocaleUrlHasBeenSet = true;
167 m_generatedBotLocaleUrl = std::forward<GeneratedBotLocaleUrlT>(value);
168 }
169 template <typename GeneratedBotLocaleUrlT = Aws::String>
171 SetGeneratedBotLocaleUrl(std::forward<GeneratedBotLocaleUrlT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
181 template <typename CreationDateTimeT = Aws::Utils::DateTime>
182 void SetCreationDateTime(CreationDateTimeT&& value) {
183 m_creationDateTimeHasBeenSet = true;
184 m_creationDateTime = std::forward<CreationDateTimeT>(value);
185 }
186 template <typename CreationDateTimeT = Aws::Utils::DateTime>
188 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetModelArn() const { return m_modelArn; }
198 template <typename ModelArnT = Aws::String>
199 void SetModelArn(ModelArnT&& value) {
200 m_modelArnHasBeenSet = true;
201 m_modelArn = std::forward<ModelArnT>(value);
202 }
203 template <typename ModelArnT = Aws::String>
205 SetModelArn(std::forward<ModelArnT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
215 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
216 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
217 m_lastUpdatedDateTimeHasBeenSet = true;
218 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
219 }
220 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
222 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_botId;
245
246 Aws::String m_botVersion;
247
248 Aws::String m_localeId;
249
250 Aws::String m_generationId;
251
252 Aws::Vector<Aws::String> m_failureReasons;
253
255
256 Aws::String m_generationInputPrompt;
257
258 Aws::String m_generatedBotLocaleUrl;
259
260 Aws::Utils::DateTime m_creationDateTime{};
261
262 Aws::String m_modelArn;
263
264 Aws::Utils::DateTime m_lastUpdatedDateTime{};
265
266 Aws::String m_requestId;
267 Aws::Http::HttpResponseCode m_HttpResponseCode;
268 bool m_botIdHasBeenSet = false;
269 bool m_botVersionHasBeenSet = false;
270 bool m_localeIdHasBeenSet = false;
271 bool m_generationIdHasBeenSet = false;
272 bool m_failureReasonsHasBeenSet = false;
273 bool m_generationStatusHasBeenSet = false;
274 bool m_generationInputPromptHasBeenSet = false;
275 bool m_generatedBotLocaleUrlHasBeenSet = false;
276 bool m_creationDateTimeHasBeenSet = false;
277 bool m_modelArnHasBeenSet = false;
278 bool m_lastUpdatedDateTimeHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace LexModelsV2
284} // namespace Aws
DescribeBotResourceGenerationResult & WithFailureReasons(FailureReasonsT &&value)
AWS_LEXMODELSV2_API DescribeBotResourceGenerationResult()=default
DescribeBotResourceGenerationResult & WithModelArn(ModelArnT &&value)
DescribeBotResourceGenerationResult & WithGenerationStatus(GenerationStatus value)
DescribeBotResourceGenerationResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_LEXMODELSV2_API DescribeBotResourceGenerationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBotResourceGenerationResult & WithBotId(BotIdT &&value)
DescribeBotResourceGenerationResult & WithRequestId(RequestIdT &&value)
DescribeBotResourceGenerationResult & WithCreationDateTime(CreationDateTimeT &&value)
DescribeBotResourceGenerationResult & WithGeneratedBotLocaleUrl(GeneratedBotLocaleUrlT &&value)
DescribeBotResourceGenerationResult & WithLocaleId(LocaleIdT &&value)
DescribeBotResourceGenerationResult & WithGenerationId(GenerationIdT &&value)
DescribeBotResourceGenerationResult & WithGenerationInputPrompt(GenerationInputPromptT &&value)
AWS_LEXMODELSV2_API DescribeBotResourceGenerationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBotResourceGenerationResult & WithBotVersion(BotVersionT &&value)
DescribeBotResourceGenerationResult & AddFailureReasons(FailureReasonsT &&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