AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetModelInvocationJobResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ModelInvocationJobInputDataConfig.h>
9#include <aws/bedrock/model/ModelInvocationJobOutputDataConfig.h>
10#include <aws/bedrock/model/ModelInvocationJobStatus.h>
11#include <aws/bedrock/model/ModelInvocationType.h>
12#include <aws/bedrock/model/VpcConfig.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Bedrock {
29namespace Model {
31 public:
32 AWS_BEDROCK_API GetModelInvocationJobResult() = default;
35
37
40 inline const Aws::String& GetJobArn() const { return m_jobArn; }
41 template <typename JobArnT = Aws::String>
42 void SetJobArn(JobArnT&& value) {
43 m_jobArnHasBeenSet = true;
44 m_jobArn = std::forward<JobArnT>(value);
45 }
46 template <typename JobArnT = Aws::String>
48 SetJobArn(std::forward<JobArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetJobName() const { return m_jobName; }
58 template <typename JobNameT = Aws::String>
59 void SetJobName(JobNameT&& value) {
60 m_jobNameHasBeenSet = true;
61 m_jobName = std::forward<JobNameT>(value);
62 }
63 template <typename JobNameT = Aws::String>
65 SetJobName(std::forward<JobNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetModelId() const { return m_modelId; }
75 template <typename ModelIdT = Aws::String>
76 void SetModelId(ModelIdT&& value) {
77 m_modelIdHasBeenSet = true;
78 m_modelId = std::forward<ModelIdT>(value);
79 }
80 template <typename ModelIdT = Aws::String>
82 SetModelId(std::forward<ModelIdT>(value));
83 return *this;
84 }
86
88
95 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
96 template <typename ClientRequestTokenT = Aws::String>
98 m_clientRequestTokenHasBeenSet = true;
99 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
100 }
101 template <typename ClientRequestTokenT = Aws::String>
103 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
104 return *this;
105 }
107
109
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 template <typename RoleArnT = Aws::String>
118 void SetRoleArn(RoleArnT&& value) {
119 m_roleArnHasBeenSet = true;
120 m_roleArn = std::forward<RoleArnT>(value);
121 }
122 template <typename RoleArnT = Aws::String>
124 SetRoleArn(std::forward<RoleArnT>(value));
125 return *this;
126 }
128
130
160 inline ModelInvocationJobStatus GetStatus() const { return m_status; }
162 m_statusHasBeenSet = true;
163 m_status = value;
164 }
166 SetStatus(value);
167 return *this;
168 }
170
172
176 inline const Aws::String& GetMessage() const { return m_message; }
177 template <typename MessageT = Aws::String>
178 void SetMessage(MessageT&& value) {
179 m_messageHasBeenSet = true;
180 m_message = std::forward<MessageT>(value);
181 }
182 template <typename MessageT = Aws::String>
184 SetMessage(std::forward<MessageT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
194 template <typename SubmitTimeT = Aws::Utils::DateTime>
196 m_submitTimeHasBeenSet = true;
197 m_submitTime = std::forward<SubmitTimeT>(value);
198 }
199 template <typename SubmitTimeT = Aws::Utils::DateTime>
201 SetSubmitTime(std::forward<SubmitTimeT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
211 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
213 m_lastModifiedTimeHasBeenSet = true;
214 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
215 }
216 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
218 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
228 template <typename EndTimeT = Aws::Utils::DateTime>
229 void SetEndTime(EndTimeT&& value) {
230 m_endTimeHasBeenSet = true;
231 m_endTime = std::forward<EndTimeT>(value);
232 }
233 template <typename EndTimeT = Aws::Utils::DateTime>
235 SetEndTime(std::forward<EndTimeT>(value));
236 return *this;
237 }
239
241
244 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
245 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
247 m_inputDataConfigHasBeenSet = true;
248 m_inputDataConfig = std::forward<InputDataConfigT>(value);
249 }
250 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
252 SetInputDataConfig(std::forward<InputDataConfigT>(value));
253 return *this;
254 }
256
258
261 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
262 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
264 m_outputDataConfigHasBeenSet = true;
265 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
266 }
267 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
269 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
270 return *this;
271 }
273
275
281 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
282 template <typename VpcConfigT = VpcConfig>
283 void SetVpcConfig(VpcConfigT&& value) {
284 m_vpcConfigHasBeenSet = true;
285 m_vpcConfig = std::forward<VpcConfigT>(value);
286 }
287 template <typename VpcConfigT = VpcConfig>
289 SetVpcConfig(std::forward<VpcConfigT>(value));
290 return *this;
291 }
293
295
298 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
299 inline void SetTimeoutDurationInHours(int value) {
300 m_timeoutDurationInHoursHasBeenSet = true;
301 m_timeoutDurationInHours = value;
302 }
305 return *this;
306 }
308
310
313 inline const Aws::Utils::DateTime& GetJobExpirationTime() const { return m_jobExpirationTime; }
314 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
316 m_jobExpirationTimeHasBeenSet = true;
317 m_jobExpirationTime = std::forward<JobExpirationTimeT>(value);
318 }
319 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
321 SetJobExpirationTime(std::forward<JobExpirationTimeT>(value));
322 return *this;
323 }
325
327
330 inline ModelInvocationType GetModelInvocationType() const { return m_modelInvocationType; }
332 m_modelInvocationTypeHasBeenSet = true;
333 m_modelInvocationType = value;
334 }
337 return *this;
338 }
340
342
345 inline long long GetTotalRecordCount() const { return m_totalRecordCount; }
346 inline void SetTotalRecordCount(long long value) {
347 m_totalRecordCountHasBeenSet = true;
348 m_totalRecordCount = value;
349 }
351 SetTotalRecordCount(value);
352 return *this;
353 }
355
357
361 inline long long GetProcessedRecordCount() const { return m_processedRecordCount; }
362 inline void SetProcessedRecordCount(long long value) {
363 m_processedRecordCountHasBeenSet = true;
364 m_processedRecordCount = value;
365 }
368 return *this;
369 }
371
373
377 inline long long GetSuccessRecordCount() const { return m_successRecordCount; }
378 inline void SetSuccessRecordCount(long long value) {
379 m_successRecordCountHasBeenSet = true;
380 m_successRecordCount = value;
381 }
384 return *this;
385 }
387
389
392 inline long long GetErrorRecordCount() const { return m_errorRecordCount; }
393 inline void SetErrorRecordCount(long long value) {
394 m_errorRecordCountHasBeenSet = true;
395 m_errorRecordCount = value;
396 }
398 SetErrorRecordCount(value);
399 return *this;
400 }
402
404
405 inline const Aws::String& GetRequestId() const { return m_requestId; }
406 template <typename RequestIdT = Aws::String>
407 void SetRequestId(RequestIdT&& value) {
408 m_requestIdHasBeenSet = true;
409 m_requestId = std::forward<RequestIdT>(value);
410 }
411 template <typename RequestIdT = Aws::String>
413 SetRequestId(std::forward<RequestIdT>(value));
414 return *this;
415 }
417 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
418
419 private:
420 Aws::String m_jobArn;
421
422 Aws::String m_jobName;
423
424 Aws::String m_modelId;
425
426 Aws::String m_clientRequestToken;
427
428 Aws::String m_roleArn;
429
431
432 Aws::String m_message;
433
434 Aws::Utils::DateTime m_submitTime{};
435
436 Aws::Utils::DateTime m_lastModifiedTime{};
437
438 Aws::Utils::DateTime m_endTime{};
439
440 ModelInvocationJobInputDataConfig m_inputDataConfig;
441
442 ModelInvocationJobOutputDataConfig m_outputDataConfig;
443
444 VpcConfig m_vpcConfig;
445
446 int m_timeoutDurationInHours{0};
447
448 Aws::Utils::DateTime m_jobExpirationTime{};
449
451
452 long long m_totalRecordCount{0};
453
454 long long m_processedRecordCount{0};
455
456 long long m_successRecordCount{0};
457
458 long long m_errorRecordCount{0};
459
460 Aws::String m_requestId;
461 Aws::Http::HttpResponseCode m_HttpResponseCode;
462 bool m_jobArnHasBeenSet = false;
463 bool m_jobNameHasBeenSet = false;
464 bool m_modelIdHasBeenSet = false;
465 bool m_clientRequestTokenHasBeenSet = false;
466 bool m_roleArnHasBeenSet = false;
467 bool m_statusHasBeenSet = false;
468 bool m_messageHasBeenSet = false;
469 bool m_submitTimeHasBeenSet = false;
470 bool m_lastModifiedTimeHasBeenSet = false;
471 bool m_endTimeHasBeenSet = false;
472 bool m_inputDataConfigHasBeenSet = false;
473 bool m_outputDataConfigHasBeenSet = false;
474 bool m_vpcConfigHasBeenSet = false;
475 bool m_timeoutDurationInHoursHasBeenSet = false;
476 bool m_jobExpirationTimeHasBeenSet = false;
477 bool m_modelInvocationTypeHasBeenSet = false;
478 bool m_totalRecordCountHasBeenSet = false;
479 bool m_processedRecordCountHasBeenSet = false;
480 bool m_successRecordCountHasBeenSet = false;
481 bool m_errorRecordCountHasBeenSet = false;
482 bool m_requestIdHasBeenSet = false;
483};
484
485} // namespace Model
486} // namespace Bedrock
487} // namespace Aws
GetModelInvocationJobResult & WithRoleArn(RoleArnT &&value)
const ModelInvocationJobInputDataConfig & GetInputDataConfig() const
AWS_BEDROCK_API GetModelInvocationJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetModelInvocationJobResult & WithModelId(ModelIdT &&value)
GetModelInvocationJobResult & WithLastModifiedTime(LastModifiedTimeT &&value)
GetModelInvocationJobResult & WithMessage(MessageT &&value)
GetModelInvocationJobResult & WithVpcConfig(VpcConfigT &&value)
GetModelInvocationJobResult & WithProcessedRecordCount(long long value)
GetModelInvocationJobResult & WithTotalRecordCount(long long value)
GetModelInvocationJobResult & WithStatus(ModelInvocationJobStatus value)
GetModelInvocationJobResult & WithJobArn(JobArnT &&value)
GetModelInvocationJobResult & WithJobExpirationTime(JobExpirationTimeT &&value)
GetModelInvocationJobResult & WithSuccessRecordCount(long long value)
GetModelInvocationJobResult & WithOutputDataConfig(OutputDataConfigT &&value)
GetModelInvocationJobResult & WithTimeoutDurationInHours(int value)
GetModelInvocationJobResult & WithJobName(JobNameT &&value)
GetModelInvocationJobResult & WithModelInvocationType(ModelInvocationType value)
GetModelInvocationJobResult & WithInputDataConfig(InputDataConfigT &&value)
AWS_BEDROCK_API GetModelInvocationJobResult()=default
const ModelInvocationJobOutputDataConfig & GetOutputDataConfig() const
GetModelInvocationJobResult & WithEndTime(EndTimeT &&value)
GetModelInvocationJobResult & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_BEDROCK_API GetModelInvocationJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetModelInvocationJobResult & WithRequestId(RequestIdT &&value)
GetModelInvocationJobResult & WithErrorRecordCount(long long value)
GetModelInvocationJobResult & WithSubmitTime(SubmitTimeT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue