AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/BraketRequest.h>
9#include <aws/braket/model/AlgorithmSpecification.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/braket/model/JobCheckpointConfig.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/braket/model/DeviceConfig.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/JobStoppingCondition.h>
18#include <aws/braket/model/Association.h>
19#include <aws/braket/model/InputFileConfig.h>
20#include <utility>
21#include <aws/core/utils/UUID.h>
22
23namespace Aws
24{
25namespace Braket
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_BRAKET_API CreateJobRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
42
43 AWS_BRAKET_API Aws::String SerializePayload() const override;
44
45
47
52 inline const AlgorithmSpecification& GetAlgorithmSpecification() const{ return m_algorithmSpecification; }
53 inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; }
54 inline void SetAlgorithmSpecification(const AlgorithmSpecification& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = value; }
55 inline void SetAlgorithmSpecification(AlgorithmSpecification&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::move(value); }
59
61
64 inline const Aws::Vector<Association>& GetAssociations() const{ return m_associations; }
65 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
66 inline void SetAssociations(const Aws::Vector<Association>& value) { m_associationsHasBeenSet = true; m_associations = value; }
67 inline void SetAssociations(Aws::Vector<Association>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
68 inline CreateJobRequest& WithAssociations(const Aws::Vector<Association>& value) { SetAssociations(value); return *this;}
69 inline CreateJobRequest& WithAssociations(Aws::Vector<Association>&& value) { SetAssociations(std::move(value)); return *this;}
70 inline CreateJobRequest& AddAssociations(const Association& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
71 inline CreateJobRequest& AddAssociations(Association&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
73
75
78 inline const JobCheckpointConfig& GetCheckpointConfig() const{ return m_checkpointConfig; }
79 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
80 inline void SetCheckpointConfig(const JobCheckpointConfig& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = value; }
81 inline void SetCheckpointConfig(JobCheckpointConfig&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::move(value); }
83 inline CreateJobRequest& WithCheckpointConfig(JobCheckpointConfig&& value) { SetCheckpointConfig(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
93 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
94 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
95 inline CreateJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
96 inline CreateJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
97 inline CreateJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
99
101
105 inline const DeviceConfig& GetDeviceConfig() const{ return m_deviceConfig; }
106 inline bool DeviceConfigHasBeenSet() const { return m_deviceConfigHasBeenSet; }
107 inline void SetDeviceConfig(const DeviceConfig& value) { m_deviceConfigHasBeenSet = true; m_deviceConfig = value; }
108 inline void SetDeviceConfig(DeviceConfig&& value) { m_deviceConfigHasBeenSet = true; m_deviceConfig = std::move(value); }
109 inline CreateJobRequest& WithDeviceConfig(const DeviceConfig& value) { SetDeviceConfig(value); return *this;}
110 inline CreateJobRequest& WithDeviceConfig(DeviceConfig&& value) { SetDeviceConfig(std::move(value)); return *this;}
112
114
120 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const{ return m_hyperParameters; }
121 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
122 inline void SetHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = value; }
123 inline void SetHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::move(value); }
126 inline CreateJobRequest& AddHyperParameters(const Aws::String& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
127 inline CreateJobRequest& AddHyperParameters(Aws::String&& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
128 inline CreateJobRequest& AddHyperParameters(const Aws::String& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
129 inline CreateJobRequest& AddHyperParameters(Aws::String&& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateJobRequest& AddHyperParameters(const char* key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
131 inline CreateJobRequest& AddHyperParameters(Aws::String&& key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
132 inline CreateJobRequest& AddHyperParameters(const char* key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
134
136
140 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const{ return m_inputDataConfig; }
141 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
142 inline void SetInputDataConfig(const Aws::Vector<InputFileConfig>& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
143 inline void SetInputDataConfig(Aws::Vector<InputFileConfig>&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
145 inline CreateJobRequest& WithInputDataConfig(Aws::Vector<InputFileConfig>&& value) { SetInputDataConfig(std::move(value)); return *this;}
146 inline CreateJobRequest& AddInputDataConfig(const InputFileConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(value); return *this; }
147 inline CreateJobRequest& AddInputDataConfig(InputFileConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(std::move(value)); return *this; }
149
151
155 inline const InstanceConfig& GetInstanceConfig() const{ return m_instanceConfig; }
156 inline bool InstanceConfigHasBeenSet() const { return m_instanceConfigHasBeenSet; }
157 inline void SetInstanceConfig(const InstanceConfig& value) { m_instanceConfigHasBeenSet = true; m_instanceConfig = value; }
158 inline void SetInstanceConfig(InstanceConfig&& value) { m_instanceConfigHasBeenSet = true; m_instanceConfig = std::move(value); }
159 inline CreateJobRequest& WithInstanceConfig(const InstanceConfig& value) { SetInstanceConfig(value); return *this;}
160 inline CreateJobRequest& WithInstanceConfig(InstanceConfig&& value) { SetInstanceConfig(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetJobName() const{ return m_jobName; }
168 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
169 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
170 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
171 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
172 inline CreateJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
173 inline CreateJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
174 inline CreateJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
176
178
182 inline const JobOutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
183 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
184 inline void SetOutputDataConfig(const JobOutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
185 inline void SetOutputDataConfig(JobOutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
187 inline CreateJobRequest& WithOutputDataConfig(JobOutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
189
191
197 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
198 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
199 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
200 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
201 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
202 inline CreateJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
203 inline CreateJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
204 inline CreateJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
206
208
211 inline const JobStoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; }
212 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
213 inline void SetStoppingCondition(const JobStoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; }
214 inline void SetStoppingCondition(JobStoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); }
216 inline CreateJobRequest& WithStoppingCondition(JobStoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;}
218
220
224 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
227 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
228 inline CreateJobRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
229 inline CreateJobRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
230 inline CreateJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
231 inline CreateJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
232 inline CreateJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
233 inline CreateJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
234 inline CreateJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
235 inline CreateJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
236 inline CreateJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
238 private:
239
240 AlgorithmSpecification m_algorithmSpecification;
241 bool m_algorithmSpecificationHasBeenSet = false;
242
243 Aws::Vector<Association> m_associations;
244 bool m_associationsHasBeenSet = false;
245
246 JobCheckpointConfig m_checkpointConfig;
247 bool m_checkpointConfigHasBeenSet = false;
248
249 Aws::String m_clientToken;
250 bool m_clientTokenHasBeenSet = false;
251
252 DeviceConfig m_deviceConfig;
253 bool m_deviceConfigHasBeenSet = false;
254
255 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
256 bool m_hyperParametersHasBeenSet = false;
257
258 Aws::Vector<InputFileConfig> m_inputDataConfig;
259 bool m_inputDataConfigHasBeenSet = false;
260
261 InstanceConfig m_instanceConfig;
262 bool m_instanceConfigHasBeenSet = false;
263
264 Aws::String m_jobName;
265 bool m_jobNameHasBeenSet = false;
266
267 JobOutputDataConfig m_outputDataConfig;
268 bool m_outputDataConfigHasBeenSet = false;
269
270 Aws::String m_roleArn;
271 bool m_roleArnHasBeenSet = false;
272
273 JobStoppingCondition m_stoppingCondition;
274 bool m_stoppingConditionHasBeenSet = false;
275
277 bool m_tagsHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace Braket
282} // namespace Aws
void SetAssociations(Aws::Vector< Association > &&value)
void SetDeviceConfig(const DeviceConfig &value)
const JobCheckpointConfig & GetCheckpointConfig() const
const Aws::String & GetRoleArn() const
void SetInstanceConfig(const InstanceConfig &value)
void SetInstanceConfig(InstanceConfig &&value)
CreateJobRequest & WithJobName(Aws::String &&value)
CreateJobRequest & WithAssociations(Aws::Vector< Association > &&value)
CreateJobRequest & WithInstanceConfig(InstanceConfig &&value)
CreateJobRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobRequest & AddHyperParameters(const char *key, Aws::String &&value)
CreateJobRequest & AddTags(const char *key, Aws::String &&value)
CreateJobRequest & AddHyperParameters(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
const JobOutputDataConfig & GetOutputDataConfig() const
CreateJobRequest & WithOutputDataConfig(JobOutputDataConfig &&value)
CreateJobRequest & WithHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetRoleArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
CreateJobRequest & WithClientToken(const char *value)
void SetHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobRequest & AddHyperParameters(const char *key, const char *value)
CreateJobRequest & WithJobName(const Aws::String &value)
CreateJobRequest & WithAlgorithmSpecification(const AlgorithmSpecification &value)
CreateJobRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobRequest & WithOutputDataConfig(const JobOutputDataConfig &value)
CreateJobRequest & WithJobName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetDeviceConfig(DeviceConfig &&value)
const Aws::String & GetJobName() const
CreateJobRequest & WithHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateJobRequest & WithDeviceConfig(DeviceConfig &&value)
const DeviceConfig & GetDeviceConfig() const
CreateJobRequest & WithClientToken(const Aws::String &value)
CreateJobRequest & WithClientToken(Aws::String &&value)
void SetClientToken(const Aws::String &value)
CreateJobRequest & WithInstanceConfig(const InstanceConfig &value)
CreateJobRequest & AddTags(const char *key, const char *value)
void SetClientToken(const char *value)
void SetCheckpointConfig(JobCheckpointConfig &&value)
CreateJobRequest & AddInputDataConfig(const InputFileConfig &value)
CreateJobRequest & AddInputDataConfig(InputFileConfig &&value)
void SetAlgorithmSpecification(const AlgorithmSpecification &value)
CreateJobRequest & WithInputDataConfig(Aws::Vector< InputFileConfig > &&value)
void SetOutputDataConfig(JobOutputDataConfig &&value)
CreateJobRequest & WithDeviceConfig(const DeviceConfig &value)
CreateJobRequest & WithInputDataConfig(const Aws::Vector< InputFileConfig > &value)
CreateJobRequest & WithRoleArn(Aws::String &&value)
CreateJobRequest & WithCheckpointConfig(JobCheckpointConfig &&value)
void SetRoleArn(const Aws::String &value)
CreateJobRequest & AddHyperParameters(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Association > & GetAssociations() const
CreateJobRequest & WithAlgorithmSpecification(AlgorithmSpecification &&value)
void SetJobName(const Aws::String &value)
const JobStoppingCondition & GetStoppingCondition() const
void SetHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
AWS_BRAKET_API Aws::String SerializePayload() const override
void SetOutputDataConfig(const JobOutputDataConfig &value)
const Aws::String & GetClientToken() const
CreateJobRequest & AddHyperParameters(Aws::String &&key, const Aws::String &value)
CreateJobRequest & WithStoppingCondition(const JobStoppingCondition &value)
CreateJobRequest & WithStoppingCondition(JobStoppingCondition &&value)
CreateJobRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetStoppingCondition(const JobStoppingCondition &value)
CreateJobRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateJobRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateJobRequest & AddAssociations(Association &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const InstanceConfig & GetInstanceConfig() const
CreateJobRequest & AddHyperParameters(const Aws::String &key, Aws::String &&value)
CreateJobRequest & WithCheckpointConfig(const JobCheckpointConfig &value)
void SetAlgorithmSpecification(AlgorithmSpecification &&value)
CreateJobRequest & WithRoleArn(const char *value)
const AlgorithmSpecification & GetAlgorithmSpecification() const
CreateJobRequest & WithRoleArn(const Aws::String &value)
CreateJobRequest & AddHyperParameters(Aws::String &&key, Aws::String &&value)
void SetClientToken(Aws::String &&value)
void SetCheckpointConfig(const JobCheckpointConfig &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetInputDataConfig(Aws::Vector< InputFileConfig > &&value)
void SetStoppingCondition(JobStoppingCondition &&value)
CreateJobRequest & AddTags(Aws::String &&key, const char *value)
CreateJobRequest & WithAssociations(const Aws::Vector< Association > &value)
void SetAssociations(const Aws::Vector< Association > &value)
void SetInputDataConfig(const Aws::Vector< InputFileConfig > &value)
const Aws::Vector< InputFileConfig > & GetInputDataConfig() const
void SetJobName(Aws::String &&value)
CreateJobRequest & AddAssociations(const Association &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