AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/braket/model/JobCheckpointConfig.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/braket/model/DeviceConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/braket/model/InstanceConfig.h>
16#include <aws/braket/model/JobOutputDataConfig.h>
17#include <aws/braket/model/HybridJobQueueInfo.h>
18#include <aws/braket/model/JobPrimaryStatus.h>
19#include <aws/braket/model/JobStoppingCondition.h>
20#include <aws/braket/model/Association.h>
21#include <aws/braket/model/JobEventDetails.h>
22#include <aws/braket/model/InputFileConfig.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
55 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
56 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
57 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
58 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
59 GetJobResult& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) { SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value)); return *this;}
61
63
66 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
67 template<typename AssociationsT = Aws::Vector<Association>>
68 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
69 template<typename AssociationsT = Aws::Vector<Association>>
70 GetJobResult& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
71 template<typename AssociationsT = Association>
72 GetJobResult& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
74
76
79 inline int GetBillableDuration() const { return m_billableDuration; }
80 inline void SetBillableDuration(int value) { m_billableDurationHasBeenSet = true; m_billableDuration = value; }
81 inline GetJobResult& WithBillableDuration(int value) { SetBillableDuration(value); return *this;}
83
85
88 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
89 template<typename CheckpointConfigT = JobCheckpointConfig>
90 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
91 template<typename CheckpointConfigT = JobCheckpointConfig>
92 GetJobResult& WithCheckpointConfig(CheckpointConfigT&& value) { SetCheckpointConfig(std::forward<CheckpointConfigT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
100 template<typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
102 template<typename CreatedAtT = Aws::Utils::DateTime>
103 GetJobResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
105
107
111 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
112 template<typename DeviceConfigT = DeviceConfig>
113 void SetDeviceConfig(DeviceConfigT&& value) { m_deviceConfigHasBeenSet = true; m_deviceConfig = std::forward<DeviceConfigT>(value); }
114 template<typename DeviceConfigT = DeviceConfig>
115 GetJobResult& WithDeviceConfig(DeviceConfigT&& value) { SetDeviceConfig(std::forward<DeviceConfigT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
123 template<typename EndedAtT = Aws::Utils::DateTime>
124 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
125 template<typename EndedAtT = Aws::Utils::DateTime>
126 GetJobResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
128
130
134 inline const Aws::Vector<JobEventDetails>& GetEvents() const { return m_events; }
135 template<typename EventsT = Aws::Vector<JobEventDetails>>
136 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
137 template<typename EventsT = Aws::Vector<JobEventDetails>>
138 GetJobResult& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
139 template<typename EventsT = JobEventDetails>
140 GetJobResult& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
142
144
148 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
149 template<typename FailureReasonT = Aws::String>
150 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
151 template<typename FailureReasonT = Aws::String>
152 GetJobResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
154
156
162 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
163 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
164 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
165 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
166 GetJobResult& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
167 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
168 GetJobResult& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
169 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
170 }
172
174
178 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
179 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
180 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
181 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
182 GetJobResult& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
183 template<typename InputDataConfigT = InputFileConfig>
184 GetJobResult& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
186
188
192 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
193 template<typename InstanceConfigT = InstanceConfig>
194 void SetInstanceConfig(InstanceConfigT&& value) { m_instanceConfigHasBeenSet = true; m_instanceConfig = std::forward<InstanceConfigT>(value); }
195 template<typename InstanceConfigT = InstanceConfig>
196 GetJobResult& WithInstanceConfig(InstanceConfigT&& value) { SetInstanceConfig(std::forward<InstanceConfigT>(value)); return *this;}
198
200
203 inline const Aws::String& GetJobArn() const { return m_jobArn; }
204 template<typename JobArnT = Aws::String>
205 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
206 template<typename JobArnT = Aws::String>
207 GetJobResult& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
209
211
214 inline const Aws::String& GetJobName() const { return m_jobName; }
215 template<typename JobNameT = Aws::String>
216 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
217 template<typename JobNameT = Aws::String>
218 GetJobResult& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
220
222
226 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
227 template<typename OutputDataConfigT = JobOutputDataConfig>
228 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
229 template<typename OutputDataConfigT = JobOutputDataConfig>
230 GetJobResult& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
232
234
240 inline const HybridJobQueueInfo& GetQueueInfo() const { return m_queueInfo; }
241 template<typename QueueInfoT = HybridJobQueueInfo>
242 void SetQueueInfo(QueueInfoT&& value) { m_queueInfoHasBeenSet = true; m_queueInfo = std::forward<QueueInfoT>(value); }
243 template<typename QueueInfoT = HybridJobQueueInfo>
244 GetJobResult& WithQueueInfo(QueueInfoT&& value) { SetQueueInfo(std::forward<QueueInfoT>(value)); return *this;}
246
248
254 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
255 template<typename RoleArnT = Aws::String>
256 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
257 template<typename RoleArnT = Aws::String>
258 GetJobResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
260
262
265 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
266 template<typename StartedAtT = Aws::Utils::DateTime>
267 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
268 template<typename StartedAtT = Aws::Utils::DateTime>
269 GetJobResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
271
273
276 inline JobPrimaryStatus GetStatus() const { return m_status; }
277 inline void SetStatus(JobPrimaryStatus value) { m_statusHasBeenSet = true; m_status = value; }
278 inline GetJobResult& WithStatus(JobPrimaryStatus value) { SetStatus(value); return *this;}
280
282
285 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
286 template<typename StoppingConditionT = JobStoppingCondition>
287 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
288 template<typename StoppingConditionT = JobStoppingCondition>
289 GetJobResult& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
291
293
297 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
298 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
299 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
300 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
301 GetJobResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
302 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
303 GetJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
304 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
305 }
307
309
310 inline const Aws::String& GetRequestId() const { return m_requestId; }
311 template<typename RequestIdT = Aws::String>
312 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
313 template<typename RequestIdT = Aws::String>
314 GetJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
316 private:
317
318 AlgorithmSpecification m_algorithmSpecification;
319 bool m_algorithmSpecificationHasBeenSet = false;
320
321 Aws::Vector<Association> m_associations;
322 bool m_associationsHasBeenSet = false;
323
324 int m_billableDuration{0};
325 bool m_billableDurationHasBeenSet = false;
326
327 JobCheckpointConfig m_checkpointConfig;
328 bool m_checkpointConfigHasBeenSet = false;
329
330 Aws::Utils::DateTime m_createdAt{};
331 bool m_createdAtHasBeenSet = false;
332
333 DeviceConfig m_deviceConfig;
334 bool m_deviceConfigHasBeenSet = false;
335
336 Aws::Utils::DateTime m_endedAt{};
337 bool m_endedAtHasBeenSet = false;
338
340 bool m_eventsHasBeenSet = false;
341
342 Aws::String m_failureReason;
343 bool m_failureReasonHasBeenSet = false;
344
345 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
346 bool m_hyperParametersHasBeenSet = false;
347
348 Aws::Vector<InputFileConfig> m_inputDataConfig;
349 bool m_inputDataConfigHasBeenSet = false;
350
351 InstanceConfig m_instanceConfig;
352 bool m_instanceConfigHasBeenSet = false;
353
354 Aws::String m_jobArn;
355 bool m_jobArnHasBeenSet = false;
356
357 Aws::String m_jobName;
358 bool m_jobNameHasBeenSet = false;
359
360 JobOutputDataConfig m_outputDataConfig;
361 bool m_outputDataConfigHasBeenSet = false;
362
363 HybridJobQueueInfo m_queueInfo;
364 bool m_queueInfoHasBeenSet = false;
365
366 Aws::String m_roleArn;
367 bool m_roleArnHasBeenSet = false;
368
369 Aws::Utils::DateTime m_startedAt{};
370 bool m_startedAtHasBeenSet = false;
371
373 bool m_statusHasBeenSet = false;
374
375 JobStoppingCondition m_stoppingCondition;
376 bool m_stoppingConditionHasBeenSet = false;
377
379 bool m_tagsHasBeenSet = false;
380
381 Aws::String m_requestId;
382 bool m_requestIdHasBeenSet = false;
383 };
384
385} // namespace Model
386} // namespace Braket
387} // 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