AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
55 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
56 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
57 CreateJobRequest& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) { SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
65 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
66 template<typename AssociationsT = Aws::Vector<Association>>
67 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
68 template<typename AssociationsT = Aws::Vector<Association>>
69 CreateJobRequest& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
70 template<typename AssociationsT = Association>
71 CreateJobRequest& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
73
75
78 inline const JobCheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
79 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
80 template<typename CheckpointConfigT = JobCheckpointConfig>
81 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
82 template<typename CheckpointConfigT = JobCheckpointConfig>
83 CreateJobRequest& WithCheckpointConfig(CheckpointConfigT&& value) { SetCheckpointConfig(std::forward<CheckpointConfigT>(value)); return *this;}
85
87
90 inline const Aws::String& GetClientToken() const { return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 template<typename ClientTokenT = Aws::String>
93 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
94 template<typename ClientTokenT = Aws::String>
95 CreateJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
97
99
103 inline const DeviceConfig& GetDeviceConfig() const { return m_deviceConfig; }
104 inline bool DeviceConfigHasBeenSet() const { return m_deviceConfigHasBeenSet; }
105 template<typename DeviceConfigT = DeviceConfig>
106 void SetDeviceConfig(DeviceConfigT&& value) { m_deviceConfigHasBeenSet = true; m_deviceConfig = std::forward<DeviceConfigT>(value); }
107 template<typename DeviceConfigT = DeviceConfig>
108 CreateJobRequest& WithDeviceConfig(DeviceConfigT&& value) { SetDeviceConfig(std::forward<DeviceConfigT>(value)); return *this;}
110
112
118 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
119 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
120 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
121 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
122 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
123 CreateJobRequest& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
124 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
125 CreateJobRequest& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
126 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
127 }
129
131
135 inline const Aws::Vector<InputFileConfig>& GetInputDataConfig() const { return m_inputDataConfig; }
136 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
137 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
138 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
139 template<typename InputDataConfigT = Aws::Vector<InputFileConfig>>
140 CreateJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
141 template<typename InputDataConfigT = InputFileConfig>
142 CreateJobRequest& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
144
146
150 inline const InstanceConfig& GetInstanceConfig() const { return m_instanceConfig; }
151 inline bool InstanceConfigHasBeenSet() const { return m_instanceConfigHasBeenSet; }
152 template<typename InstanceConfigT = InstanceConfig>
153 void SetInstanceConfig(InstanceConfigT&& value) { m_instanceConfigHasBeenSet = true; m_instanceConfig = std::forward<InstanceConfigT>(value); }
154 template<typename InstanceConfigT = InstanceConfig>
155 CreateJobRequest& WithInstanceConfig(InstanceConfigT&& value) { SetInstanceConfig(std::forward<InstanceConfigT>(value)); return *this;}
157
159
162 inline const Aws::String& GetJobName() const { return m_jobName; }
163 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
164 template<typename JobNameT = Aws::String>
165 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
166 template<typename JobNameT = Aws::String>
167 CreateJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
169
171
175 inline const JobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
176 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
177 template<typename OutputDataConfigT = JobOutputDataConfig>
178 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
179 template<typename OutputDataConfigT = JobOutputDataConfig>
180 CreateJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
182
184
190 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
191 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
192 template<typename RoleArnT = Aws::String>
193 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
194 template<typename RoleArnT = Aws::String>
195 CreateJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
197
199
202 inline const JobStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
203 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
204 template<typename StoppingConditionT = JobStoppingCondition>
205 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
206 template<typename StoppingConditionT = JobStoppingCondition>
207 CreateJobRequest& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
209
211
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
217 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
219 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 CreateJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
221 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
222 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
223 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
224 }
226 private:
227
228 AlgorithmSpecification m_algorithmSpecification;
229 bool m_algorithmSpecificationHasBeenSet = false;
230
231 Aws::Vector<Association> m_associations;
232 bool m_associationsHasBeenSet = false;
233
234 JobCheckpointConfig m_checkpointConfig;
235 bool m_checkpointConfigHasBeenSet = false;
236
238 bool m_clientTokenHasBeenSet = true;
239
240 DeviceConfig m_deviceConfig;
241 bool m_deviceConfigHasBeenSet = false;
242
243 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
244 bool m_hyperParametersHasBeenSet = false;
245
246 Aws::Vector<InputFileConfig> m_inputDataConfig;
247 bool m_inputDataConfigHasBeenSet = false;
248
249 InstanceConfig m_instanceConfig;
250 bool m_instanceConfigHasBeenSet = false;
251
252 Aws::String m_jobName;
253 bool m_jobNameHasBeenSet = false;
254
255 JobOutputDataConfig m_outputDataConfig;
256 bool m_outputDataConfigHasBeenSet = false;
257
258 Aws::String m_roleArn;
259 bool m_roleArnHasBeenSet = false;
260
261 JobStoppingCondition m_stoppingCondition;
262 bool m_stoppingConditionHasBeenSet = false;
263
265 bool m_tagsHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace Braket
270} // 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