AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/model/JobPrimaryStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/braket/model/JobOutputDataConfig.h>
13#include <aws/braket/model/JobStoppingCondition.h>
14#include <aws/braket/model/JobCheckpointConfig.h>
15#include <aws/braket/model/AlgorithmSpecification.h>
16#include <aws/braket/model/InstanceConfig.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/braket/model/DeviceConfig.h>
19#include <aws/braket/model/HybridJobQueueInfo.h>
20#include <aws/braket/model/InputFileConfig.h>
21#include <aws/braket/model/JobEventDetails.h>
22#include <aws/braket/model/Association.h>
23#include <utility>
24
25namespace Aws
26{
27template<typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils
31{
32namespace Json
33{
34 class JsonValue;
35} // namespace Json
36} // namespace Utils
37namespace Braket
38{
39namespace Model
40{
42 {
43 public:
44 AWS_BRAKET_API GetJobResult() = default;
47
48
50
53 inline JobPrimaryStatus GetStatus() const { return m_status; }
54 inline void SetStatus(JobPrimaryStatus value) { m_statusHasBeenSet = true; m_status = value; }
55 inline GetJobResult& WithStatus(JobPrimaryStatus value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetJobArn() const { return m_jobArn; }
63 template<typename JobArnT = Aws::String>
64 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
65 template<typename JobArnT = Aws::String>
66 GetJobResult& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
68
70
76 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
77 template<typename RoleArnT = Aws::String>
78 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
79 template<typename RoleArnT = Aws::String>
80 GetJobResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
82
84
88 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
89 template<typename FailureReasonT = Aws::String>
90 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
91 template<typename FailureReasonT = Aws::String>
92 GetJobResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
94
96
99 inline const Aws::String& GetJobName() const { return m_jobName; }
100 template<typename JobNameT = Aws::String>
101 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
102 template<typename JobNameT = Aws::String>
103 GetJobResult& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
105
107
113 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
114 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
115 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
116 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
117 GetJobResult& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
118 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
119 GetJobResult& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
120 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
121 }
123
125
129 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
130 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
131 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
132 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
133 GetJobResult& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
134 template<typename InputDataConfigT = InputFileConfig>
135 GetJobResult& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
137
139
143 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
144 template<typename OutputDataConfigT = JobOutputDataConfig>
145 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
146 template<typename OutputDataConfigT = JobOutputDataConfig>
147 GetJobResult& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
149
151
155 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
156 template<typename StoppingConditionT = JobStoppingCondition>
157 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
158 template<typename StoppingConditionT = JobStoppingCondition>
159 GetJobResult& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
161
163
166 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
167 template<typename CheckpointConfigT = JobCheckpointConfig>
168 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
169 template<typename CheckpointConfigT = JobCheckpointConfig>
170 GetJobResult& WithCheckpointConfig(CheckpointConfigT&& value) { SetCheckpointConfig(std::forward<CheckpointConfigT>(value)); return *this;}
172
174
178 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
179 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
180 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
181 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
182 GetJobResult& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) { SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value)); return *this;}
184
186
190 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
191 template<typename InstanceConfigT = InstanceConfig>
192 void SetInstanceConfig(InstanceConfigT&& value) { m_instanceConfigHasBeenSet = true; m_instanceConfig = std::forward<InstanceConfigT>(value); }
193 template<typename InstanceConfigT = InstanceConfig>
194 GetJobResult& WithInstanceConfig(InstanceConfigT&& value) { SetInstanceConfig(std::forward<InstanceConfigT>(value)); return *this;}
196
198
201 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
202 template<typename CreatedAtT = Aws::Utils::DateTime>
203 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
204 template<typename CreatedAtT = Aws::Utils::DateTime>
205 GetJobResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
207
209
212 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
213 template<typename StartedAtT = Aws::Utils::DateTime>
214 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
215 template<typename StartedAtT = Aws::Utils::DateTime>
216 GetJobResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
218
220
223 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
224 template<typename EndedAtT = Aws::Utils::DateTime>
225 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
226 template<typename EndedAtT = Aws::Utils::DateTime>
227 GetJobResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
229
231
235 inline int GetBillableDuration() const { return m_billableDuration; }
236 inline void SetBillableDuration(int value) { m_billableDurationHasBeenSet = true; m_billableDuration = value; }
237 inline GetJobResult& WithBillableDuration(int value) { SetBillableDuration(value); return *this;}
239
241
244 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
245 template<typename DeviceConfigT = DeviceConfig>
246 void SetDeviceConfig(DeviceConfigT&& value) { m_deviceConfigHasBeenSet = true; m_deviceConfig = std::forward<DeviceConfigT>(value); }
247 template<typename DeviceConfigT = DeviceConfig>
248 GetJobResult& WithDeviceConfig(DeviceConfigT&& value) { SetDeviceConfig(std::forward<DeviceConfigT>(value)); return *this;}
250
252
256 inline const Aws::Vector<JobEventDetails>& GetEvents() const { return m_events; }
257 template<typename EventsT = Aws::Vector<JobEventDetails>>
258 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
259 template<typename EventsT = Aws::Vector<JobEventDetails>>
260 GetJobResult& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
261 template<typename EventsT = JobEventDetails>
262 GetJobResult& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
264
266
269 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
270 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
271 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
272 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
273 GetJobResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
274 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
275 GetJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
276 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
277 }
279
281
287 inline const HybridJobQueueInfo& GetQueueInfo() const { return m_queueInfo; }
288 template<typename QueueInfoT = HybridJobQueueInfo>
289 void SetQueueInfo(QueueInfoT&& value) { m_queueInfoHasBeenSet = true; m_queueInfo = std::forward<QueueInfoT>(value); }
290 template<typename QueueInfoT = HybridJobQueueInfo>
291 GetJobResult& WithQueueInfo(QueueInfoT&& value) { SetQueueInfo(std::forward<QueueInfoT>(value)); return *this;}
293
295
298 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
299 template<typename AssociationsT = Aws::Vector<Association>>
300 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
301 template<typename AssociationsT = Aws::Vector<Association>>
302 GetJobResult& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
303 template<typename AssociationsT = Association>
304 GetJobResult& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
306
308
309 inline const Aws::String& GetRequestId() const { return m_requestId; }
310 template<typename RequestIdT = Aws::String>
311 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
312 template<typename RequestIdT = Aws::String>
313 GetJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
315 private:
316
318 bool m_statusHasBeenSet = false;
319
320 Aws::String m_jobArn;
321 bool m_jobArnHasBeenSet = false;
322
323 Aws::String m_roleArn;
324 bool m_roleArnHasBeenSet = false;
325
326 Aws::String m_failureReason;
327 bool m_failureReasonHasBeenSet = false;
328
329 Aws::String m_jobName;
330 bool m_jobNameHasBeenSet = false;
331
332 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
333 bool m_hyperParametersHasBeenSet = false;
334
335 Aws::Vector<InputFileConfig> m_inputDataConfig;
336 bool m_inputDataConfigHasBeenSet = false;
337
338 JobOutputDataConfig m_outputDataConfig;
339 bool m_outputDataConfigHasBeenSet = false;
340
341 JobStoppingCondition m_stoppingCondition;
342 bool m_stoppingConditionHasBeenSet = false;
343
344 JobCheckpointConfig m_checkpointConfig;
345 bool m_checkpointConfigHasBeenSet = false;
346
347 AlgorithmSpecification m_algorithmSpecification;
348 bool m_algorithmSpecificationHasBeenSet = false;
349
350 InstanceConfig m_instanceConfig;
351 bool m_instanceConfigHasBeenSet = false;
352
353 Aws::Utils::DateTime m_createdAt{};
354 bool m_createdAtHasBeenSet = false;
355
356 Aws::Utils::DateTime m_startedAt{};
357 bool m_startedAtHasBeenSet = false;
358
359 Aws::Utils::DateTime m_endedAt{};
360 bool m_endedAtHasBeenSet = false;
361
362 int m_billableDuration{0};
363 bool m_billableDurationHasBeenSet = false;
364
365 DeviceConfig m_deviceConfig;
366 bool m_deviceConfigHasBeenSet = false;
367
369 bool m_eventsHasBeenSet = false;
370
372 bool m_tagsHasBeenSet = false;
373
374 HybridJobQueueInfo m_queueInfo;
375 bool m_queueInfoHasBeenSet = false;
376
377 Aws::Vector<Association> m_associations;
378 bool m_associationsHasBeenSet = false;
379
380 Aws::String m_requestId;
381 bool m_requestIdHasBeenSet = false;
382 };
383
384} // namespace Model
385} // namespace Braket
386} // 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