AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/braket/BraketRequest.h>
8#include <aws/braket/Braket_EXPORTS.h>
9#include <aws/braket/model/AlgorithmSpecification.h>
10#include <aws/braket/model/Association.h>
11#include <aws/braket/model/DeviceConfig.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/JobOutputDataConfig.h>
16#include <aws/braket/model/JobStoppingCondition.h>
17#include <aws/core/utils/UUID.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Braket {
26namespace Model {
27
31 public:
32 AWS_BRAKET_API CreateJobRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
39
40 AWS_BRAKET_API Aws::String SerializePayload() const override;
41
43
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
55 CreateJobRequest& WithClientToken(ClientTokenT&& value) {
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
67 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
68 inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; }
69 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
70 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) {
71 m_algorithmSpecificationHasBeenSet = true;
72 m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value);
73 }
74 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
75 CreateJobRequest& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) {
76 SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
87 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
88 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
89 void SetInputDataConfig(InputDataConfigT&& value) {
90 m_inputDataConfigHasBeenSet = true;
91 m_inputDataConfig = std::forward<InputDataConfigT>(value);
92 }
93 template <typename InputDataConfigT = Aws::Vector<InputFileConfig>>
94 CreateJobRequest& WithInputDataConfig(InputDataConfigT&& value) {
95 SetInputDataConfig(std::forward<InputDataConfigT>(value));
96 return *this;
97 }
98 template <typename InputDataConfigT = InputFileConfig>
99 CreateJobRequest& AddInputDataConfig(InputDataConfigT&& value) {
100 m_inputDataConfigHasBeenSet = true;
101 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
102 return *this;
103 }
105
107
111 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
112 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
113 template <typename OutputDataConfigT = JobOutputDataConfig>
114 void SetOutputDataConfig(OutputDataConfigT&& value) {
115 m_outputDataConfigHasBeenSet = true;
116 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
117 }
118 template <typename OutputDataConfigT = JobOutputDataConfig>
119 CreateJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) {
120 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
121 return *this;
122 }
124
126
129 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
130 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
131 template <typename CheckpointConfigT = JobCheckpointConfig>
132 void SetCheckpointConfig(CheckpointConfigT&& value) {
133 m_checkpointConfigHasBeenSet = true;
134 m_checkpointConfig = std::forward<CheckpointConfigT>(value);
135 }
136 template <typename CheckpointConfigT = JobCheckpointConfig>
137 CreateJobRequest& WithCheckpointConfig(CheckpointConfigT&& value) {
138 SetCheckpointConfig(std::forward<CheckpointConfigT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetJobName() const { return m_jobName; }
148 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
149 template <typename JobNameT = Aws::String>
150 void SetJobName(JobNameT&& value) {
151 m_jobNameHasBeenSet = true;
152 m_jobName = std::forward<JobNameT>(value);
153 }
154 template <typename JobNameT = Aws::String>
155 CreateJobRequest& WithJobName(JobNameT&& value) {
156 SetJobName(std::forward<JobNameT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
169 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
170 template <typename RoleArnT = Aws::String>
171 void SetRoleArn(RoleArnT&& value) {
172 m_roleArnHasBeenSet = true;
173 m_roleArn = std::forward<RoleArnT>(value);
174 }
175 template <typename RoleArnT = Aws::String>
176 CreateJobRequest& WithRoleArn(RoleArnT&& value) {
177 SetRoleArn(std::forward<RoleArnT>(value));
178 return *this;
179 }
181
183
187 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
188 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
189 template <typename StoppingConditionT = JobStoppingCondition>
190 void SetStoppingCondition(StoppingConditionT&& value) {
191 m_stoppingConditionHasBeenSet = true;
192 m_stoppingCondition = std::forward<StoppingConditionT>(value);
193 }
194 template <typename StoppingConditionT = JobStoppingCondition>
195 CreateJobRequest& WithStoppingCondition(StoppingConditionT&& value) {
196 SetStoppingCondition(std::forward<StoppingConditionT>(value));
197 return *this;
198 }
200
202
206 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
207 inline bool InstanceConfigHasBeenSet() const { return m_instanceConfigHasBeenSet; }
208 template <typename InstanceConfigT = InstanceConfig>
209 void SetInstanceConfig(InstanceConfigT&& value) {
210 m_instanceConfigHasBeenSet = true;
211 m_instanceConfig = std::forward<InstanceConfigT>(value);
212 }
213 template <typename InstanceConfigT = InstanceConfig>
214 CreateJobRequest& WithInstanceConfig(InstanceConfigT&& value) {
215 SetInstanceConfig(std::forward<InstanceConfigT>(value));
216 return *this;
217 }
219
221
232 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
233 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
234 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
235 void SetHyperParameters(HyperParametersT&& value) {
236 m_hyperParametersHasBeenSet = true;
237 m_hyperParameters = std::forward<HyperParametersT>(value);
238 }
239 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
240 CreateJobRequest& WithHyperParameters(HyperParametersT&& value) {
241 SetHyperParameters(std::forward<HyperParametersT>(value));
242 return *this;
243 }
244 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
245 CreateJobRequest& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
246 m_hyperParametersHasBeenSet = true;
247 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
248 return *this;
249 }
251
253
257 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
258 inline bool DeviceConfigHasBeenSet() const { return m_deviceConfigHasBeenSet; }
259 template <typename DeviceConfigT = DeviceConfig>
260 void SetDeviceConfig(DeviceConfigT&& value) {
261 m_deviceConfigHasBeenSet = true;
262 m_deviceConfig = std::forward<DeviceConfigT>(value);
263 }
264 template <typename DeviceConfigT = DeviceConfig>
265 CreateJobRequest& WithDeviceConfig(DeviceConfigT&& value) {
266 SetDeviceConfig(std::forward<DeviceConfigT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
276 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
277 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
278 void SetTags(TagsT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags = std::forward<TagsT>(value);
281 }
282 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
283 CreateJobRequest& WithTags(TagsT&& value) {
284 SetTags(std::forward<TagsT>(value));
285 return *this;
286 }
287 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
288 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
289 m_tagsHasBeenSet = true;
290 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
300 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
301 template <typename AssociationsT = Aws::Vector<Association>>
302 void SetAssociations(AssociationsT&& value) {
303 m_associationsHasBeenSet = true;
304 m_associations = std::forward<AssociationsT>(value);
305 }
306 template <typename AssociationsT = Aws::Vector<Association>>
307 CreateJobRequest& WithAssociations(AssociationsT&& value) {
308 SetAssociations(std::forward<AssociationsT>(value));
309 return *this;
310 }
311 template <typename AssociationsT = Association>
312 CreateJobRequest& AddAssociations(AssociationsT&& value) {
313 m_associationsHasBeenSet = true;
314 m_associations.emplace_back(std::forward<AssociationsT>(value));
315 return *this;
316 }
318 private:
320
321 AlgorithmSpecification m_algorithmSpecification;
322
323 Aws::Vector<InputFileConfig> m_inputDataConfig;
324
325 JobOutputDataConfig m_outputDataConfig;
326
327 JobCheckpointConfig m_checkpointConfig;
328
329 Aws::String m_jobName;
330
331 Aws::String m_roleArn;
332
333 JobStoppingCondition m_stoppingCondition;
334
335 InstanceConfig m_instanceConfig;
336
337 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
338
339 DeviceConfig m_deviceConfig;
340
342
343 Aws::Vector<Association> m_associations;
344 bool m_clientTokenHasBeenSet = true;
345 bool m_algorithmSpecificationHasBeenSet = false;
346 bool m_inputDataConfigHasBeenSet = false;
347 bool m_outputDataConfigHasBeenSet = false;
348 bool m_checkpointConfigHasBeenSet = false;
349 bool m_jobNameHasBeenSet = false;
350 bool m_roleArnHasBeenSet = false;
351 bool m_stoppingConditionHasBeenSet = false;
352 bool m_instanceConfigHasBeenSet = false;
353 bool m_hyperParametersHasBeenSet = false;
354 bool m_deviceConfigHasBeenSet = false;
355 bool m_tagsHasBeenSet = false;
356 bool m_associationsHasBeenSet = false;
357};
358
359} // namespace Model
360} // namespace Braket
361} // namespace Aws
void SetStoppingCondition(StoppingConditionT &&value)
const JobCheckpointConfig & GetCheckpointConfig() const
const Aws::String & GetRoleArn() const
void SetInputDataConfig(InputDataConfigT &&value)
AWS_BRAKET_API CreateJobRequest()=default
CreateJobRequest & WithAssociations(AssociationsT &&value)
CreateJobRequest & AddAssociations(AssociationsT &&value)
CreateJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
void SetInstanceConfig(InstanceConfigT &&value)
virtual const char * GetServiceRequestName() const override
const JobOutputDataConfig & GetOutputDataConfig() const
void SetAlgorithmSpecification(AlgorithmSpecificationT &&value)
void SetHyperParameters(HyperParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
const Aws::String & GetJobName() const
const DeviceConfig & GetDeviceConfig() const
CreateJobRequest & WithHyperParameters(HyperParametersT &&value)
void SetAssociations(AssociationsT &&value)
void SetClientToken(ClientTokenT &&value)
CreateJobRequest & WithCheckpointConfig(CheckpointConfigT &&value)
const Aws::Vector< Association > & GetAssociations() const
const JobStoppingCondition & GetStoppingCondition() const
CreateJobRequest & WithClientToken(ClientTokenT &&value)
AWS_BRAKET_API Aws::String SerializePayload() const override
const Aws::String & GetClientToken() const
CreateJobRequest & WithInputDataConfig(InputDataConfigT &&value)
CreateJobRequest & WithJobName(JobNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const InstanceConfig & GetInstanceConfig() const
void SetDeviceConfig(DeviceConfigT &&value)
const AlgorithmSpecification & GetAlgorithmSpecification() const
CreateJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateJobRequest & WithRoleArn(RoleArnT &&value)
CreateJobRequest & WithInstanceConfig(InstanceConfigT &&value)
CreateJobRequest & WithAlgorithmSpecification(AlgorithmSpecificationT &&value)
void SetCheckpointConfig(CheckpointConfigT &&value)
CreateJobRequest & WithTags(TagsT &&value)
CreateJobRequest & WithStoppingCondition(StoppingConditionT &&value)
const Aws::Vector< InputFileConfig > & GetInputDataConfig() const
CreateJobRequest & WithDeviceConfig(DeviceConfigT &&value)
CreateJobRequest & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
CreateJobRequest & AddInputDataConfig(InputDataConfigT &&value)
void SetOutputDataConfig(OutputDataConfigT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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