AWS SDK for C++

AWS SDK for C++ Version 1.11.758

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/http/HttpResponse.h>
20#include <aws/core/utils/DateTime.h>
21#include <aws/core/utils/memory/stl/AWSMap.h>
22#include <aws/core/utils/memory/stl/AWSString.h>
23#include <aws/core/utils/memory/stl/AWSVector.h>
24
25#include <utility>
26
27namespace Aws {
28template <typename RESULT_TYPE>
29class AmazonWebServiceResult;
30
31namespace Utils {
32namespace Json {
33class JsonValue;
34} // namespace Json
35} // namespace Utils
36namespace Braket {
37namespace Model {
39 public:
40 AWS_BRAKET_API GetJobResult() = default;
43
45
48 inline JobPrimaryStatus GetStatus() const { return m_status; }
49 inline void SetStatus(JobPrimaryStatus value) {
50 m_statusHasBeenSet = true;
51 m_status = value;
52 }
54 SetStatus(value);
55 return *this;
56 }
58
60
63 inline const Aws::String& GetJobArn() const { return m_jobArn; }
64 template <typename JobArnT = Aws::String>
65 void SetJobArn(JobArnT&& value) {
66 m_jobArnHasBeenSet = true;
67 m_jobArn = std::forward<JobArnT>(value);
68 }
69 template <typename JobArnT = Aws::String>
70 GetJobResult& WithJobArn(JobArnT&& value) {
71 SetJobArn(std::forward<JobArnT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
84 template <typename RoleArnT = Aws::String>
85 void SetRoleArn(RoleArnT&& value) {
86 m_roleArnHasBeenSet = true;
87 m_roleArn = std::forward<RoleArnT>(value);
88 }
89 template <typename RoleArnT = Aws::String>
90 GetJobResult& WithRoleArn(RoleArnT&& value) {
91 SetRoleArn(std::forward<RoleArnT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
102 template <typename FailureReasonT = Aws::String>
103 void SetFailureReason(FailureReasonT&& value) {
104 m_failureReasonHasBeenSet = true;
105 m_failureReason = std::forward<FailureReasonT>(value);
106 }
107 template <typename FailureReasonT = Aws::String>
108 GetJobResult& WithFailureReason(FailureReasonT&& value) {
109 SetFailureReason(std::forward<FailureReasonT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetJobName() const { return m_jobName; }
119 template <typename JobNameT = Aws::String>
120 void SetJobName(JobNameT&& value) {
121 m_jobNameHasBeenSet = true;
122 m_jobName = std::forward<JobNameT>(value);
123 }
124 template <typename JobNameT = Aws::String>
125 GetJobResult& WithJobName(JobNameT&& value) {
126 SetJobName(std::forward<JobNameT>(value));
127 return *this;
128 }
130
132
138 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
139 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
140 void SetHyperParameters(HyperParametersT&& value) {
141 m_hyperParametersHasBeenSet = true;
142 m_hyperParameters = std::forward<HyperParametersT>(value);
143 }
144 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
145 GetJobResult& WithHyperParameters(HyperParametersT&& value) {
146 SetHyperParameters(std::forward<HyperParametersT>(value));
147 return *this;
148 }
149 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
150 GetJobResult& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
151 m_hyperParametersHasBeenSet = true;
152 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
163 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
164 void SetInputDataConfig(InputDataConfigT&& value) {
165 m_inputDataConfigHasBeenSet = true;
166 m_inputDataConfig = std::forward<InputDataConfigT>(value);
167 }
168 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
169 GetJobResult& WithInputDataConfig(InputDataConfigT&& value) {
170 SetInputDataConfig(std::forward<InputDataConfigT>(value));
171 return *this;
172 }
173 template <typename InputDataConfigT = InputFileConfig>
174 GetJobResult& AddInputDataConfig(InputDataConfigT&& value) {
175 m_inputDataConfigHasBeenSet = true;
176 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
177 return *this;
178 }
180
182
186 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
187 template <typename OutputDataConfigT = JobOutputDataConfig>
188 void SetOutputDataConfig(OutputDataConfigT&& value) {
189 m_outputDataConfigHasBeenSet = true;
190 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
191 }
192 template <typename OutputDataConfigT = JobOutputDataConfig>
193 GetJobResult& WithOutputDataConfig(OutputDataConfigT&& value) {
194 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
195 return *this;
196 }
198
200
204 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
205 template <typename StoppingConditionT = JobStoppingCondition>
206 void SetStoppingCondition(StoppingConditionT&& value) {
207 m_stoppingConditionHasBeenSet = true;
208 m_stoppingCondition = std::forward<StoppingConditionT>(value);
209 }
210 template <typename StoppingConditionT = JobStoppingCondition>
211 GetJobResult& WithStoppingCondition(StoppingConditionT&& value) {
212 SetStoppingCondition(std::forward<StoppingConditionT>(value));
213 return *this;
214 }
216
218
221 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
222 template <typename CheckpointConfigT = JobCheckpointConfig>
223 void SetCheckpointConfig(CheckpointConfigT&& value) {
224 m_checkpointConfigHasBeenSet = true;
225 m_checkpointConfig = std::forward<CheckpointConfigT>(value);
226 }
227 template <typename CheckpointConfigT = JobCheckpointConfig>
228 GetJobResult& WithCheckpointConfig(CheckpointConfigT&& value) {
229 SetCheckpointConfig(std::forward<CheckpointConfigT>(value));
230 return *this;
231 }
233
235
239 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
240 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
241 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) {
242 m_algorithmSpecificationHasBeenSet = true;
243 m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value);
244 }
245 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
246 GetJobResult& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) {
247 SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value));
248 return *this;
249 }
251
253
257 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
258 template <typename InstanceConfigT = InstanceConfig>
259 void SetInstanceConfig(InstanceConfigT&& value) {
260 m_instanceConfigHasBeenSet = true;
261 m_instanceConfig = std::forward<InstanceConfigT>(value);
262 }
263 template <typename InstanceConfigT = InstanceConfig>
264 GetJobResult& WithInstanceConfig(InstanceConfigT&& value) {
265 SetInstanceConfig(std::forward<InstanceConfigT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
275 template <typename CreatedAtT = Aws::Utils::DateTime>
276 void SetCreatedAt(CreatedAtT&& value) {
277 m_createdAtHasBeenSet = true;
278 m_createdAt = std::forward<CreatedAtT>(value);
279 }
280 template <typename CreatedAtT = Aws::Utils::DateTime>
281 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
282 SetCreatedAt(std::forward<CreatedAtT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
292 template <typename StartedAtT = Aws::Utils::DateTime>
293 void SetStartedAt(StartedAtT&& value) {
294 m_startedAtHasBeenSet = true;
295 m_startedAt = std::forward<StartedAtT>(value);
296 }
297 template <typename StartedAtT = Aws::Utils::DateTime>
298 GetJobResult& WithStartedAt(StartedAtT&& value) {
299 SetStartedAt(std::forward<StartedAtT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
309 template <typename EndedAtT = Aws::Utils::DateTime>
310 void SetEndedAt(EndedAtT&& value) {
311 m_endedAtHasBeenSet = true;
312 m_endedAt = std::forward<EndedAtT>(value);
313 }
314 template <typename EndedAtT = Aws::Utils::DateTime>
315 GetJobResult& WithEndedAt(EndedAtT&& value) {
316 SetEndedAt(std::forward<EndedAtT>(value));
317 return *this;
318 }
320
322
326 inline int GetBillableDuration() const { return m_billableDuration; }
327 inline void SetBillableDuration(int value) {
328 m_billableDurationHasBeenSet = true;
329 m_billableDuration = value;
330 }
332 SetBillableDuration(value);
333 return *this;
334 }
336
338
341 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
342 template <typename DeviceConfigT = DeviceConfig>
343 void SetDeviceConfig(DeviceConfigT&& value) {
344 m_deviceConfigHasBeenSet = true;
345 m_deviceConfig = std::forward<DeviceConfigT>(value);
346 }
347 template <typename DeviceConfigT = DeviceConfig>
348 GetJobResult& WithDeviceConfig(DeviceConfigT&& value) {
349 SetDeviceConfig(std::forward<DeviceConfigT>(value));
350 return *this;
351 }
353
355
359 inline const Aws::Vector<JobEventDetails>& GetEvents() const { return m_events; }
360 template <typename EventsT = Aws::Vector<JobEventDetails>>
361 void SetEvents(EventsT&& value) {
362 m_eventsHasBeenSet = true;
363 m_events = std::forward<EventsT>(value);
364 }
365 template <typename EventsT = Aws::Vector<JobEventDetails>>
366 GetJobResult& WithEvents(EventsT&& value) {
367 SetEvents(std::forward<EventsT>(value));
368 return *this;
369 }
370 template <typename EventsT = JobEventDetails>
371 GetJobResult& AddEvents(EventsT&& value) {
372 m_eventsHasBeenSet = true;
373 m_events.emplace_back(std::forward<EventsT>(value));
374 return *this;
375 }
377
379
382 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
383 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
384 void SetTags(TagsT&& value) {
385 m_tagsHasBeenSet = true;
386 m_tags = std::forward<TagsT>(value);
387 }
388 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
389 GetJobResult& WithTags(TagsT&& value) {
390 SetTags(std::forward<TagsT>(value));
391 return *this;
392 }
393 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
394 GetJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
395 m_tagsHasBeenSet = true;
396 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
397 return *this;
398 }
400
402
408 inline const HybridJobQueueInfo& GetQueueInfo() const { return m_queueInfo; }
409 template <typename QueueInfoT = HybridJobQueueInfo>
410 void SetQueueInfo(QueueInfoT&& value) {
411 m_queueInfoHasBeenSet = true;
412 m_queueInfo = std::forward<QueueInfoT>(value);
413 }
414 template <typename QueueInfoT = HybridJobQueueInfo>
415 GetJobResult& WithQueueInfo(QueueInfoT&& value) {
416 SetQueueInfo(std::forward<QueueInfoT>(value));
417 return *this;
418 }
420
422
425 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
426 template <typename AssociationsT = Aws::Vector<Association>>
427 void SetAssociations(AssociationsT&& value) {
428 m_associationsHasBeenSet = true;
429 m_associations = std::forward<AssociationsT>(value);
430 }
431 template <typename AssociationsT = Aws::Vector<Association>>
432 GetJobResult& WithAssociations(AssociationsT&& value) {
433 SetAssociations(std::forward<AssociationsT>(value));
434 return *this;
435 }
436 template <typename AssociationsT = Association>
437 GetJobResult& AddAssociations(AssociationsT&& value) {
438 m_associationsHasBeenSet = true;
439 m_associations.emplace_back(std::forward<AssociationsT>(value));
440 return *this;
441 }
443
445
446 inline const Aws::String& GetRequestId() const { return m_requestId; }
447 template <typename RequestIdT = Aws::String>
448 void SetRequestId(RequestIdT&& value) {
449 m_requestIdHasBeenSet = true;
450 m_requestId = std::forward<RequestIdT>(value);
451 }
452 template <typename RequestIdT = Aws::String>
453 GetJobResult& WithRequestId(RequestIdT&& value) {
454 SetRequestId(std::forward<RequestIdT>(value));
455 return *this;
456 }
458 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
459
460 private:
462
463 Aws::String m_jobArn;
464
465 Aws::String m_roleArn;
466
467 Aws::String m_failureReason;
468
469 Aws::String m_jobName;
470
471 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
472
473 Aws::Vector<InputFileConfig> m_inputDataConfig;
474
475 JobOutputDataConfig m_outputDataConfig;
476
477 JobStoppingCondition m_stoppingCondition;
478
479 JobCheckpointConfig m_checkpointConfig;
480
481 AlgorithmSpecification m_algorithmSpecification;
482
483 InstanceConfig m_instanceConfig;
484
485 Aws::Utils::DateTime m_createdAt{};
486
487 Aws::Utils::DateTime m_startedAt{};
488
489 Aws::Utils::DateTime m_endedAt{};
490
491 int m_billableDuration{0};
492
493 DeviceConfig m_deviceConfig;
494
496
498
499 HybridJobQueueInfo m_queueInfo;
500
501 Aws::Vector<Association> m_associations;
502
503 Aws::String m_requestId;
504 Aws::Http::HttpResponseCode m_HttpResponseCode;
505 bool m_statusHasBeenSet = false;
506 bool m_jobArnHasBeenSet = false;
507 bool m_roleArnHasBeenSet = false;
508 bool m_failureReasonHasBeenSet = false;
509 bool m_jobNameHasBeenSet = false;
510 bool m_hyperParametersHasBeenSet = false;
511 bool m_inputDataConfigHasBeenSet = false;
512 bool m_outputDataConfigHasBeenSet = false;
513 bool m_stoppingConditionHasBeenSet = false;
514 bool m_checkpointConfigHasBeenSet = false;
515 bool m_algorithmSpecificationHasBeenSet = false;
516 bool m_instanceConfigHasBeenSet = false;
517 bool m_createdAtHasBeenSet = false;
518 bool m_startedAtHasBeenSet = false;
519 bool m_endedAtHasBeenSet = false;
520 bool m_billableDurationHasBeenSet = false;
521 bool m_deviceConfigHasBeenSet = false;
522 bool m_eventsHasBeenSet = false;
523 bool m_tagsHasBeenSet = false;
524 bool m_queueInfoHasBeenSet = false;
525 bool m_associationsHasBeenSet = false;
526 bool m_requestIdHasBeenSet = false;
527};
528
529} // namespace Model
530} // namespace Braket
531} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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