AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/model/AlgorithmSpecification.h>
9#include <aws/braket/model/Association.h>
10#include <aws/braket/model/DeviceConfig.h>
11#include <aws/braket/model/HybridJobQueueInfo.h>
12#include <aws/braket/model/InputFileConfig.h>
13#include <aws/braket/model/InstanceConfig.h>
14#include <aws/braket/model/JobCheckpointConfig.h>
15#include <aws/braket/model/JobEventDetails.h>
16#include <aws/braket/model/JobOutputDataConfig.h>
17#include <aws/braket/model/JobPrimaryStatus.h>
18#include <aws/braket/model/JobStoppingCondition.h>
19#include <aws/core/utils/DateTime.h>
20#include <aws/core/utils/memory/stl/AWSMap.h>
21#include <aws/core/utils/memory/stl/AWSString.h>
22#include <aws/core/utils/memory/stl/AWSVector.h>
23
24#include <utility>
25
26namespace Aws {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace Braket {
36namespace Model {
38 public:
39 AWS_BRAKET_API GetJobResult() = default;
42
44
47 inline JobPrimaryStatus GetStatus() const { return m_status; }
48 inline void SetStatus(JobPrimaryStatus value) {
49 m_statusHasBeenSet = true;
50 m_status = value;
51 }
53 SetStatus(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetJobArn() const { return m_jobArn; }
63 template <typename JobArnT = Aws::String>
64 void SetJobArn(JobArnT&& value) {
65 m_jobArnHasBeenSet = true;
66 m_jobArn = std::forward<JobArnT>(value);
67 }
68 template <typename JobArnT = Aws::String>
69 GetJobResult& WithJobArn(JobArnT&& value) {
70 SetJobArn(std::forward<JobArnT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
83 template <typename RoleArnT = Aws::String>
84 void SetRoleArn(RoleArnT&& value) {
85 m_roleArnHasBeenSet = true;
86 m_roleArn = std::forward<RoleArnT>(value);
87 }
88 template <typename RoleArnT = Aws::String>
89 GetJobResult& WithRoleArn(RoleArnT&& value) {
90 SetRoleArn(std::forward<RoleArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
101 template <typename FailureReasonT = Aws::String>
102 void SetFailureReason(FailureReasonT&& value) {
103 m_failureReasonHasBeenSet = true;
104 m_failureReason = std::forward<FailureReasonT>(value);
105 }
106 template <typename FailureReasonT = Aws::String>
107 GetJobResult& WithFailureReason(FailureReasonT&& value) {
108 SetFailureReason(std::forward<FailureReasonT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetJobName() const { return m_jobName; }
118 template <typename JobNameT = Aws::String>
119 void SetJobName(JobNameT&& value) {
120 m_jobNameHasBeenSet = true;
121 m_jobName = std::forward<JobNameT>(value);
122 }
123 template <typename JobNameT = Aws::String>
124 GetJobResult& WithJobName(JobNameT&& value) {
125 SetJobName(std::forward<JobNameT>(value));
126 return *this;
127 }
129
131
137 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
138 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
139 void SetHyperParameters(HyperParametersT&& value) {
140 m_hyperParametersHasBeenSet = true;
141 m_hyperParameters = std::forward<HyperParametersT>(value);
142 }
143 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
144 GetJobResult& WithHyperParameters(HyperParametersT&& value) {
145 SetHyperParameters(std::forward<HyperParametersT>(value));
146 return *this;
147 }
148 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
149 GetJobResult& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
150 m_hyperParametersHasBeenSet = true;
151 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
162 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
163 void SetInputDataConfig(InputDataConfigT&& value) {
164 m_inputDataConfigHasBeenSet = true;
165 m_inputDataConfig = std::forward<InputDataConfigT>(value);
166 }
167 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
168 GetJobResult& WithInputDataConfig(InputDataConfigT&& value) {
169 SetInputDataConfig(std::forward<InputDataConfigT>(value));
170 return *this;
171 }
172 template <typename InputDataConfigT = InputFileConfig>
173 GetJobResult& AddInputDataConfig(InputDataConfigT&& value) {
174 m_inputDataConfigHasBeenSet = true;
175 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
176 return *this;
177 }
179
181
185 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
186 template <typename OutputDataConfigT = JobOutputDataConfig>
187 void SetOutputDataConfig(OutputDataConfigT&& value) {
188 m_outputDataConfigHasBeenSet = true;
189 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
190 }
191 template <typename OutputDataConfigT = JobOutputDataConfig>
192 GetJobResult& WithOutputDataConfig(OutputDataConfigT&& value) {
193 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
194 return *this;
195 }
197
199
203 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
204 template <typename StoppingConditionT = JobStoppingCondition>
205 void SetStoppingCondition(StoppingConditionT&& value) {
206 m_stoppingConditionHasBeenSet = true;
207 m_stoppingCondition = std::forward<StoppingConditionT>(value);
208 }
209 template <typename StoppingConditionT = JobStoppingCondition>
210 GetJobResult& WithStoppingCondition(StoppingConditionT&& value) {
211 SetStoppingCondition(std::forward<StoppingConditionT>(value));
212 return *this;
213 }
215
217
220 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
221 template <typename CheckpointConfigT = JobCheckpointConfig>
222 void SetCheckpointConfig(CheckpointConfigT&& value) {
223 m_checkpointConfigHasBeenSet = true;
224 m_checkpointConfig = std::forward<CheckpointConfigT>(value);
225 }
226 template <typename CheckpointConfigT = JobCheckpointConfig>
227 GetJobResult& WithCheckpointConfig(CheckpointConfigT&& value) {
228 SetCheckpointConfig(std::forward<CheckpointConfigT>(value));
229 return *this;
230 }
232
234
238 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
239 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
240 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) {
241 m_algorithmSpecificationHasBeenSet = true;
242 m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value);
243 }
244 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
245 GetJobResult& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) {
246 SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value));
247 return *this;
248 }
250
252
256 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
257 template <typename InstanceConfigT = InstanceConfig>
258 void SetInstanceConfig(InstanceConfigT&& value) {
259 m_instanceConfigHasBeenSet = true;
260 m_instanceConfig = std::forward<InstanceConfigT>(value);
261 }
262 template <typename InstanceConfigT = InstanceConfig>
263 GetJobResult& WithInstanceConfig(InstanceConfigT&& value) {
264 SetInstanceConfig(std::forward<InstanceConfigT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
274 template <typename CreatedAtT = Aws::Utils::DateTime>
275 void SetCreatedAt(CreatedAtT&& value) {
276 m_createdAtHasBeenSet = true;
277 m_createdAt = std::forward<CreatedAtT>(value);
278 }
279 template <typename CreatedAtT = Aws::Utils::DateTime>
280 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
281 SetCreatedAt(std::forward<CreatedAtT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
291 template <typename StartedAtT = Aws::Utils::DateTime>
292 void SetStartedAt(StartedAtT&& value) {
293 m_startedAtHasBeenSet = true;
294 m_startedAt = std::forward<StartedAtT>(value);
295 }
296 template <typename StartedAtT = Aws::Utils::DateTime>
297 GetJobResult& WithStartedAt(StartedAtT&& value) {
298 SetStartedAt(std::forward<StartedAtT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
308 template <typename EndedAtT = Aws::Utils::DateTime>
309 void SetEndedAt(EndedAtT&& value) {
310 m_endedAtHasBeenSet = true;
311 m_endedAt = std::forward<EndedAtT>(value);
312 }
313 template <typename EndedAtT = Aws::Utils::DateTime>
314 GetJobResult& WithEndedAt(EndedAtT&& value) {
315 SetEndedAt(std::forward<EndedAtT>(value));
316 return *this;
317 }
319
321
325 inline int GetBillableDuration() const { return m_billableDuration; }
326 inline void SetBillableDuration(int value) {
327 m_billableDurationHasBeenSet = true;
328 m_billableDuration = value;
329 }
331 SetBillableDuration(value);
332 return *this;
333 }
335
337
340 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
341 template <typename DeviceConfigT = DeviceConfig>
342 void SetDeviceConfig(DeviceConfigT&& value) {
343 m_deviceConfigHasBeenSet = true;
344 m_deviceConfig = std::forward<DeviceConfigT>(value);
345 }
346 template <typename DeviceConfigT = DeviceConfig>
347 GetJobResult& WithDeviceConfig(DeviceConfigT&& value) {
348 SetDeviceConfig(std::forward<DeviceConfigT>(value));
349 return *this;
350 }
352
354
358 inline const Aws::Vector<JobEventDetails>& GetEvents() const { return m_events; }
359 template <typename EventsT = Aws::Vector<JobEventDetails>>
360 void SetEvents(EventsT&& value) {
361 m_eventsHasBeenSet = true;
362 m_events = std::forward<EventsT>(value);
363 }
364 template <typename EventsT = Aws::Vector<JobEventDetails>>
365 GetJobResult& WithEvents(EventsT&& value) {
366 SetEvents(std::forward<EventsT>(value));
367 return *this;
368 }
369 template <typename EventsT = JobEventDetails>
370 GetJobResult& AddEvents(EventsT&& value) {
371 m_eventsHasBeenSet = true;
372 m_events.emplace_back(std::forward<EventsT>(value));
373 return *this;
374 }
376
378
381 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
382 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
383 void SetTags(TagsT&& value) {
384 m_tagsHasBeenSet = true;
385 m_tags = std::forward<TagsT>(value);
386 }
387 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
388 GetJobResult& WithTags(TagsT&& value) {
389 SetTags(std::forward<TagsT>(value));
390 return *this;
391 }
392 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
393 GetJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
394 m_tagsHasBeenSet = true;
395 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
396 return *this;
397 }
399
401
407 inline const HybridJobQueueInfo& GetQueueInfo() const { return m_queueInfo; }
408 template <typename QueueInfoT = HybridJobQueueInfo>
409 void SetQueueInfo(QueueInfoT&& value) {
410 m_queueInfoHasBeenSet = true;
411 m_queueInfo = std::forward<QueueInfoT>(value);
412 }
413 template <typename QueueInfoT = HybridJobQueueInfo>
414 GetJobResult& WithQueueInfo(QueueInfoT&& value) {
415 SetQueueInfo(std::forward<QueueInfoT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
425 template <typename AssociationsT = Aws::Vector<Association>>
426 void SetAssociations(AssociationsT&& value) {
427 m_associationsHasBeenSet = true;
428 m_associations = std::forward<AssociationsT>(value);
429 }
430 template <typename AssociationsT = Aws::Vector<Association>>
431 GetJobResult& WithAssociations(AssociationsT&& value) {
432 SetAssociations(std::forward<AssociationsT>(value));
433 return *this;
434 }
435 template <typename AssociationsT = Association>
436 GetJobResult& AddAssociations(AssociationsT&& value) {
437 m_associationsHasBeenSet = true;
438 m_associations.emplace_back(std::forward<AssociationsT>(value));
439 return *this;
440 }
442
444
445 inline const Aws::String& GetRequestId() const { return m_requestId; }
446 template <typename RequestIdT = Aws::String>
447 void SetRequestId(RequestIdT&& value) {
448 m_requestIdHasBeenSet = true;
449 m_requestId = std::forward<RequestIdT>(value);
450 }
451 template <typename RequestIdT = Aws::String>
452 GetJobResult& WithRequestId(RequestIdT&& value) {
453 SetRequestId(std::forward<RequestIdT>(value));
454 return *this;
455 }
457 private:
459
460 Aws::String m_jobArn;
461
462 Aws::String m_roleArn;
463
464 Aws::String m_failureReason;
465
466 Aws::String m_jobName;
467
468 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
469
470 Aws::Vector<InputFileConfig> m_inputDataConfig;
471
472 JobOutputDataConfig m_outputDataConfig;
473
474 JobStoppingCondition m_stoppingCondition;
475
476 JobCheckpointConfig m_checkpointConfig;
477
478 AlgorithmSpecification m_algorithmSpecification;
479
480 InstanceConfig m_instanceConfig;
481
482 Aws::Utils::DateTime m_createdAt{};
483
484 Aws::Utils::DateTime m_startedAt{};
485
486 Aws::Utils::DateTime m_endedAt{};
487
488 int m_billableDuration{0};
489
490 DeviceConfig m_deviceConfig;
491
493
495
496 HybridJobQueueInfo m_queueInfo;
497
498 Aws::Vector<Association> m_associations;
499
500 Aws::String m_requestId;
501 bool m_statusHasBeenSet = false;
502 bool m_jobArnHasBeenSet = false;
503 bool m_roleArnHasBeenSet = false;
504 bool m_failureReasonHasBeenSet = false;
505 bool m_jobNameHasBeenSet = false;
506 bool m_hyperParametersHasBeenSet = false;
507 bool m_inputDataConfigHasBeenSet = false;
508 bool m_outputDataConfigHasBeenSet = false;
509 bool m_stoppingConditionHasBeenSet = false;
510 bool m_checkpointConfigHasBeenSet = false;
511 bool m_algorithmSpecificationHasBeenSet = false;
512 bool m_instanceConfigHasBeenSet = false;
513 bool m_createdAtHasBeenSet = false;
514 bool m_startedAtHasBeenSet = false;
515 bool m_endedAtHasBeenSet = false;
516 bool m_billableDurationHasBeenSet = false;
517 bool m_deviceConfigHasBeenSet = false;
518 bool m_eventsHasBeenSet = false;
519 bool m_tagsHasBeenSet = false;
520 bool m_queueInfoHasBeenSet = false;
521 bool m_associationsHasBeenSet = false;
522 bool m_requestIdHasBeenSet = false;
523};
524
525} // namespace Model
526} // namespace Braket
527} // namespace Aws
GetJobResult & AddInputDataConfig(InputDataConfigT &&value)
const JobStoppingCondition & GetStoppingCondition() const
void SetFailureReason(FailureReasonT &&value)
AWS_BRAKET_API GetJobResult()=default
void SetStartedAt(StartedAtT &&value)
void SetJobName(JobNameT &&value)
GetJobResult & WithEndedAt(EndedAtT &&value)
void SetStatus(JobPrimaryStatus value)
void SetRoleArn(RoleArnT &&value)
GetJobResult & WithAssociations(AssociationsT &&value)
void SetAlgorithmSpecification(AlgorithmSpecificationT &&value)
void SetHyperParameters(HyperParametersT &&value)
GetJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetJobResult & WithJobArn(JobArnT &&value)
void SetStoppingCondition(StoppingConditionT &&value)
const Aws::String & GetJobArn() const
GetJobResult & WithOutputDataConfig(OutputDataConfigT &&value)
GetJobResult & AddAssociations(AssociationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
const Aws::Vector< JobEventDetails > & GetEvents() const
void SetAssociations(AssociationsT &&value)
void SetInstanceConfig(InstanceConfigT &&value)
GetJobResult & AddEvents(EventsT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetJobResult & WithRoleArn(RoleArnT &&value)
const Aws::Vector< InputFileConfig > & GetInputDataConfig() const
GetJobResult & WithBillableDuration(int value)
GetJobResult & WithJobName(JobNameT &&value)
GetJobResult & WithCheckpointConfig(CheckpointConfigT &&value)
const InstanceConfig & GetInstanceConfig() const
GetJobResult & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetRoleArn() const
void SetCheckpointConfig(CheckpointConfigT &&value)
AWS_BRAKET_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDeviceConfig(DeviceConfigT &&value)
GetJobResult & WithRequestId(RequestIdT &&value)
GetJobResult & WithInputDataConfig(InputDataConfigT &&value)
GetJobResult & WithCreatedAt(CreatedAtT &&value)
void SetOutputDataConfig(OutputDataConfigT &&value)
void SetEndedAt(EndedAtT &&value)
GetJobResult & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
const AlgorithmSpecification & GetAlgorithmSpecification() const
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetRequestId() const
void SetJobArn(JobArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobResult & WithStoppingCondition(StoppingConditionT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetJobResult & WithInstanceConfig(InstanceConfigT &&value)
GetJobResult & WithHyperParameters(HyperParametersT &&value)
const DeviceConfig & GetDeviceConfig() const
const HybridJobQueueInfo & GetQueueInfo() const
GetJobResult & WithDeviceConfig(DeviceConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEvents(EventsT &&value)
const JobCheckpointConfig & GetCheckpointConfig() const
GetJobResult & WithEvents(EventsT &&value)
const Aws::String & GetFailureReason() const
GetJobResult & WithAlgorithmSpecification(AlgorithmSpecificationT &&value)
const Aws::Vector< Association > & GetAssociations() const
GetJobResult & WithStatus(JobPrimaryStatus value)
void SetQueueInfo(QueueInfoT &&value)
GetJobResult & WithQueueInfo(QueueInfoT &&value)
const JobOutputDataConfig & GetOutputDataConfig() const
AWS_BRAKET_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithTags(TagsT &&value)
const Aws::String & GetJobName() const
void SetRequestId(RequestIdT &&value)
JobPrimaryStatus GetStatus() const
GetJobResult & WithStartedAt(StartedAtT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue