AWS SDK for C++

AWS SDK for C++ Version 1.11.686

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/VpcConfig.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Bedrock {
25namespace Model {
26
33 public:
34 AWS_BEDROCK_API ModelInvocationJobSummary() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetJobArn() const { return m_jobArn; }
44 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
45 template <typename JobArnT = Aws::String>
46 void SetJobArn(JobArnT&& value) {
47 m_jobArnHasBeenSet = true;
48 m_jobArn = std::forward<JobArnT>(value);
49 }
50 template <typename JobArnT = Aws::String>
52 SetJobArn(std::forward<JobArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetJobName() const { return m_jobName; }
62 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
63 template <typename JobNameT = Aws::String>
64 void SetJobName(JobNameT&& value) {
65 m_jobNameHasBeenSet = true;
66 m_jobName = std::forward<JobNameT>(value);
67 }
68 template <typename JobNameT = Aws::String>
70 SetJobName(std::forward<JobNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetModelId() const { return m_modelId; }
80 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
81 template <typename ModelIdT = Aws::String>
82 void SetModelId(ModelIdT&& value) {
83 m_modelIdHasBeenSet = true;
84 m_modelId = std::forward<ModelIdT>(value);
85 }
86 template <typename ModelIdT = Aws::String>
88 SetModelId(std::forward<ModelIdT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
102 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
103 template <typename ClientRequestTokenT = Aws::String>
104 void SetClientRequestToken(ClientRequestTokenT&& value) {
105 m_clientRequestTokenHasBeenSet = true;
106 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
107 }
108 template <typename ClientRequestTokenT = Aws::String>
109 ModelInvocationJobSummary& WithClientRequestToken(ClientRequestTokenT&& value) {
110 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
111 return *this;
112 }
114
116
123 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
124 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
125 template <typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) {
127 m_roleArnHasBeenSet = true;
128 m_roleArn = std::forward<RoleArnT>(value);
129 }
130 template <typename RoleArnT = Aws::String>
132 SetRoleArn(std::forward<RoleArnT>(value));
133 return *this;
134 }
136
138
168 inline ModelInvocationJobStatus GetStatus() const { return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 m_statusHasBeenSet = true;
172 m_status = value;
173 }
175 SetStatus(value);
176 return *this;
177 }
179
181
185 inline const Aws::String& GetMessage() const { return m_message; }
186 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
187 template <typename MessageT = Aws::String>
188 void SetMessage(MessageT&& value) {
189 m_messageHasBeenSet = true;
190 m_message = std::forward<MessageT>(value);
191 }
192 template <typename MessageT = Aws::String>
194 SetMessage(std::forward<MessageT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
204 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
205 template <typename SubmitTimeT = Aws::Utils::DateTime>
206 void SetSubmitTime(SubmitTimeT&& value) {
207 m_submitTimeHasBeenSet = true;
208 m_submitTime = std::forward<SubmitTimeT>(value);
209 }
210 template <typename SubmitTimeT = Aws::Utils::DateTime>
212 SetSubmitTime(std::forward<SubmitTimeT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
222 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
223 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
224 void SetLastModifiedTime(LastModifiedTimeT&& value) {
225 m_lastModifiedTimeHasBeenSet = true;
226 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
227 }
228 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
230 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
240 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
241 template <typename EndTimeT = Aws::Utils::DateTime>
242 void SetEndTime(EndTimeT&& value) {
243 m_endTimeHasBeenSet = true;
244 m_endTime = std::forward<EndTimeT>(value);
245 }
246 template <typename EndTimeT = Aws::Utils::DateTime>
248 SetEndTime(std::forward<EndTimeT>(value));
249 return *this;
250 }
252
254
257 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
258 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
259 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
260 void SetInputDataConfig(InputDataConfigT&& value) {
261 m_inputDataConfigHasBeenSet = true;
262 m_inputDataConfig = std::forward<InputDataConfigT>(value);
263 }
264 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
266 SetInputDataConfig(std::forward<InputDataConfigT>(value));
267 return *this;
268 }
270
272
275 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
276 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
277 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
278 void SetOutputDataConfig(OutputDataConfigT&& value) {
279 m_outputDataConfigHasBeenSet = true;
280 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
281 }
282 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
284 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
285 return *this;
286 }
288
290
296 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
297 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
298 template <typename VpcConfigT = VpcConfig>
299 void SetVpcConfig(VpcConfigT&& value) {
300 m_vpcConfigHasBeenSet = true;
301 m_vpcConfig = std::forward<VpcConfigT>(value);
302 }
303 template <typename VpcConfigT = VpcConfig>
305 SetVpcConfig(std::forward<VpcConfigT>(value));
306 return *this;
307 }
309
311
315 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
316 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
317 inline void SetTimeoutDurationInHours(int value) {
318 m_timeoutDurationInHoursHasBeenSet = true;
319 m_timeoutDurationInHours = value;
320 }
323 return *this;
324 }
326
328
331 inline const Aws::Utils::DateTime& GetJobExpirationTime() const { return m_jobExpirationTime; }
332 inline bool JobExpirationTimeHasBeenSet() const { return m_jobExpirationTimeHasBeenSet; }
333 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
334 void SetJobExpirationTime(JobExpirationTimeT&& value) {
335 m_jobExpirationTimeHasBeenSet = true;
336 m_jobExpirationTime = std::forward<JobExpirationTimeT>(value);
337 }
338 template <typename JobExpirationTimeT = Aws::Utils::DateTime>
340 SetJobExpirationTime(std::forward<JobExpirationTimeT>(value));
341 return *this;
342 }
344 private:
345 Aws::String m_jobArn;
346 bool m_jobArnHasBeenSet = false;
347
348 Aws::String m_jobName;
349 bool m_jobNameHasBeenSet = false;
350
351 Aws::String m_modelId;
352 bool m_modelIdHasBeenSet = false;
353
354 Aws::String m_clientRequestToken;
355 bool m_clientRequestTokenHasBeenSet = false;
356
357 Aws::String m_roleArn;
358 bool m_roleArnHasBeenSet = false;
359
361 bool m_statusHasBeenSet = false;
362
363 Aws::String m_message;
364 bool m_messageHasBeenSet = false;
365
366 Aws::Utils::DateTime m_submitTime{};
367 bool m_submitTimeHasBeenSet = false;
368
369 Aws::Utils::DateTime m_lastModifiedTime{};
370 bool m_lastModifiedTimeHasBeenSet = false;
371
372 Aws::Utils::DateTime m_endTime{};
373 bool m_endTimeHasBeenSet = false;
374
375 ModelInvocationJobInputDataConfig m_inputDataConfig;
376 bool m_inputDataConfigHasBeenSet = false;
377
378 ModelInvocationJobOutputDataConfig m_outputDataConfig;
379 bool m_outputDataConfigHasBeenSet = false;
380
381 VpcConfig m_vpcConfig;
382 bool m_vpcConfigHasBeenSet = false;
383
384 int m_timeoutDurationInHours{0};
385 bool m_timeoutDurationInHoursHasBeenSet = false;
386
387 Aws::Utils::DateTime m_jobExpirationTime{};
388 bool m_jobExpirationTimeHasBeenSet = false;
389};
390
391} // namespace Model
392} // namespace Bedrock
393} // 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 & WithJobExpirationTime(JobExpirationTimeT &&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
const Aws::Utils::DateTime & GetJobExpirationTime() const
ModelInvocationJobSummary & WithOutputDataConfig(OutputDataConfigT &&value)
ModelInvocationJobSummary & WithModelId(ModelIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue