AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
ModelInvocationJobSummary.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/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Bedrock {
26namespace Model {
27
34 public:
35 AWS_BEDROCK_API ModelInvocationJobSummary() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobArn() const { return m_jobArn; }
45 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
46 template <typename JobArnT = Aws::String>
47 void SetJobArn(JobArnT&& value) {
48 m_jobArnHasBeenSet = true;
49 m_jobArn = std::forward<JobArnT>(value);
50 }
51 template <typename JobArnT = Aws::String>
53 SetJobArn(std::forward<JobArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetJobName() const { return m_jobName; }
63 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
64 template <typename JobNameT = Aws::String>
65 void SetJobName(JobNameT&& value) {
66 m_jobNameHasBeenSet = true;
67 m_jobName = std::forward<JobNameT>(value);
68 }
69 template <typename JobNameT = Aws::String>
71 SetJobName(std::forward<JobNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetModelId() const { return m_modelId; }
81 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
82 template <typename ModelIdT = Aws::String>
83 void SetModelId(ModelIdT&& value) {
84 m_modelIdHasBeenSet = true;
85 m_modelId = std::forward<ModelIdT>(value);
86 }
87 template <typename ModelIdT = Aws::String>
89 SetModelId(std::forward<ModelIdT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
103 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
104 template <typename ClientRequestTokenT = Aws::String>
106 m_clientRequestTokenHasBeenSet = true;
107 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
108 }
109 template <typename ClientRequestTokenT = Aws::String>
111 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
112 return *this;
113 }
115
117
124 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
125 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
126 template <typename RoleArnT = Aws::String>
127 void SetRoleArn(RoleArnT&& value) {
128 m_roleArnHasBeenSet = true;
129 m_roleArn = std::forward<RoleArnT>(value);
130 }
131 template <typename RoleArnT = Aws::String>
133 SetRoleArn(std::forward<RoleArnT>(value));
134 return *this;
135 }
137
139
169 inline ModelInvocationJobStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
186 inline const Aws::String& GetMessage() const { return m_message; }
187 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
188 template <typename MessageT = Aws::String>
189 void SetMessage(MessageT&& value) {
190 m_messageHasBeenSet = true;
191 m_message = std::forward<MessageT>(value);
192 }
193 template <typename MessageT = Aws::String>
195 SetMessage(std::forward<MessageT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
205 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
206 template <typename SubmitTimeT = Aws::Utils::DateTime>
208 m_submitTimeHasBeenSet = true;
209 m_submitTime = std::forward<SubmitTimeT>(value);
210 }
211 template <typename SubmitTimeT = Aws::Utils::DateTime>
213 SetSubmitTime(std::forward<SubmitTimeT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
223 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
224 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
226 m_lastModifiedTimeHasBeenSet = true;
227 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
228 }
229 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
231 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
241 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
242 template <typename EndTimeT = Aws::Utils::DateTime>
243 void SetEndTime(EndTimeT&& value) {
244 m_endTimeHasBeenSet = true;
245 m_endTime = std::forward<EndTimeT>(value);
246 }
247 template <typename EndTimeT = Aws::Utils::DateTime>
249 SetEndTime(std::forward<EndTimeT>(value));
250 return *this;
251 }
253
255
258 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
259 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
260 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
262 m_inputDataConfigHasBeenSet = true;
263 m_inputDataConfig = std::forward<InputDataConfigT>(value);
264 }
265 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
267 SetInputDataConfig(std::forward<InputDataConfigT>(value));
268 return *this;
269 }
271
273
276 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
277 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
278 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
280 m_outputDataConfigHasBeenSet = true;
281 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
282 }
283 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
285 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
286 return *this;
287 }
289
291
297 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
298 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
299 template <typename VpcConfigT = VpcConfig>
300 void SetVpcConfig(VpcConfigT&& value) {
301 m_vpcConfigHasBeenSet = true;
302 m_vpcConfig = std::forward<VpcConfigT>(value);
303 }
304 template <typename VpcConfigT = VpcConfig>
306 SetVpcConfig(std::forward<VpcConfigT>(value));
307 return *this;
308 }
310
312
316 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
317 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
318 inline void SetTimeoutDurationInHours(int value) {
319 m_timeoutDurationInHoursHasBeenSet = true;
320 m_timeoutDurationInHours = value;
321 }
324 return *this;
325 }
327
329
332 inline const Aws::Utils::DateTime& GetJobExpirationTime() const { return m_jobExpirationTime; }
333 inline bool JobExpirationTimeHasBeenSet() const { return m_jobExpirationTimeHasBeenSet; }
334 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
336 m_jobExpirationTimeHasBeenSet = true;
337 m_jobExpirationTime = std::forward<JobExpirationTimeT>(value);
338 }
339 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
341 SetJobExpirationTime(std::forward<JobExpirationTimeT>(value));
342 return *this;
343 }
345
347
350 inline ModelInvocationType GetModelInvocationType() const { return m_modelInvocationType; }
351 inline bool ModelInvocationTypeHasBeenSet() const { return m_modelInvocationTypeHasBeenSet; }
353 m_modelInvocationTypeHasBeenSet = true;
354 m_modelInvocationType = value;
355 }
358 return *this;
359 }
361
363
366 inline long long GetTotalRecordCount() const { return m_totalRecordCount; }
367 inline bool TotalRecordCountHasBeenSet() const { return m_totalRecordCountHasBeenSet; }
368 inline void SetTotalRecordCount(long long value) {
369 m_totalRecordCountHasBeenSet = true;
370 m_totalRecordCount = value;
371 }
373 SetTotalRecordCount(value);
374 return *this;
375 }
377
379
383 inline long long GetProcessedRecordCount() const { return m_processedRecordCount; }
384 inline bool ProcessedRecordCountHasBeenSet() const { return m_processedRecordCountHasBeenSet; }
385 inline void SetProcessedRecordCount(long long value) {
386 m_processedRecordCountHasBeenSet = true;
387 m_processedRecordCount = value;
388 }
391 return *this;
392 }
394
396
400 inline long long GetSuccessRecordCount() const { return m_successRecordCount; }
401 inline bool SuccessRecordCountHasBeenSet() const { return m_successRecordCountHasBeenSet; }
402 inline void SetSuccessRecordCount(long long value) {
403 m_successRecordCountHasBeenSet = true;
404 m_successRecordCount = value;
405 }
408 return *this;
409 }
411
413
416 inline long long GetErrorRecordCount() const { return m_errorRecordCount; }
417 inline bool ErrorRecordCountHasBeenSet() const { return m_errorRecordCountHasBeenSet; }
418 inline void SetErrorRecordCount(long long value) {
419 m_errorRecordCountHasBeenSet = true;
420 m_errorRecordCount = value;
421 }
423 SetErrorRecordCount(value);
424 return *this;
425 }
427 private:
428 Aws::String m_jobArn;
429
430 Aws::String m_jobName;
431
432 Aws::String m_modelId;
433
434 Aws::String m_clientRequestToken;
435
436 Aws::String m_roleArn;
437
439
440 Aws::String m_message;
441
442 Aws::Utils::DateTime m_submitTime{};
443
444 Aws::Utils::DateTime m_lastModifiedTime{};
445
446 Aws::Utils::DateTime m_endTime{};
447
448 ModelInvocationJobInputDataConfig m_inputDataConfig;
449
450 ModelInvocationJobOutputDataConfig m_outputDataConfig;
451
452 VpcConfig m_vpcConfig;
453
454 int m_timeoutDurationInHours{0};
455
456 Aws::Utils::DateTime m_jobExpirationTime{};
457
459
460 long long m_totalRecordCount{0};
461
462 long long m_processedRecordCount{0};
463
464 long long m_successRecordCount{0};
465
466 long long m_errorRecordCount{0};
467 bool m_jobArnHasBeenSet = false;
468 bool m_jobNameHasBeenSet = false;
469 bool m_modelIdHasBeenSet = false;
470 bool m_clientRequestTokenHasBeenSet = false;
471 bool m_roleArnHasBeenSet = false;
472 bool m_statusHasBeenSet = false;
473 bool m_messageHasBeenSet = false;
474 bool m_submitTimeHasBeenSet = false;
475 bool m_lastModifiedTimeHasBeenSet = false;
476 bool m_endTimeHasBeenSet = false;
477 bool m_inputDataConfigHasBeenSet = false;
478 bool m_outputDataConfigHasBeenSet = false;
479 bool m_vpcConfigHasBeenSet = false;
480 bool m_timeoutDurationInHoursHasBeenSet = false;
481 bool m_jobExpirationTimeHasBeenSet = false;
482 bool m_modelInvocationTypeHasBeenSet = false;
483 bool m_totalRecordCountHasBeenSet = false;
484 bool m_processedRecordCountHasBeenSet = false;
485 bool m_successRecordCountHasBeenSet = false;
486 bool m_errorRecordCountHasBeenSet = false;
487};
488
489} // namespace Model
490} // namespace Bedrock
491} // namespace Aws
const ModelInvocationJobOutputDataConfig & GetOutputDataConfig() const
ModelInvocationJobSummary & WithMessage(MessageT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_BEDROCK_API ModelInvocationJobSummary()=default
ModelInvocationJobSummary & WithEndTime(EndTimeT &&value)
AWS_BEDROCK_API ModelInvocationJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelInvocationJobSummary & WithInputDataConfig(InputDataConfigT &&value)
ModelInvocationJobSummary & WithTimeoutDurationInHours(int value)
ModelInvocationJobSummary & WithSubmitTime(SubmitTimeT &&value)
ModelInvocationJobSummary & WithClientRequestToken(ClientRequestTokenT &&value)
ModelInvocationJobSummary & WithModelInvocationType(ModelInvocationType value)
ModelInvocationJobSummary & WithJobExpirationTime(JobExpirationTimeT &&value)
ModelInvocationJobSummary & WithSuccessRecordCount(long long value)
ModelInvocationJobSummary & WithProcessedRecordCount(long long value)
ModelInvocationJobSummary & WithRoleArn(RoleArnT &&value)
ModelInvocationJobSummary & WithStatus(ModelInvocationJobStatus value)
ModelInvocationJobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ModelInvocationJobSummary & WithJobName(JobNameT &&value)
ModelInvocationJobSummary & WithJobArn(JobArnT &&value)
AWS_BEDROCK_API ModelInvocationJobSummary(Aws::Utils::Json::JsonView jsonValue)
const ModelInvocationJobInputDataConfig & GetInputDataConfig() const
ModelInvocationJobSummary & WithVpcConfig(VpcConfigT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
ModelInvocationJobSummary & WithErrorRecordCount(long long value)
ModelInvocationJobSummary & WithTotalRecordCount(long long value)
const Aws::Utils::DateTime & GetJobExpirationTime() const
ModelInvocationJobSummary & WithOutputDataConfig(OutputDataConfigT &&value)
ModelInvocationJobSummary & WithModelId(ModelIdT &&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