AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateQuantumTaskRequest.h
1
6#pragma once
7#include <aws/braket/BraketRequest.h>
8#include <aws/braket/Braket_EXPORTS.h>
9#include <aws/braket/model/Association.h>
10#include <aws/braket/model/ExperimentalCapabilities.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Braket {
20namespace Model {
21
25 public:
26 AWS_BRAKET_API CreateQuantumTaskRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQuantumTask"; }
33
34 AWS_BRAKET_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
59 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
60 template <typename DeviceArnT = Aws::String>
61 void SetDeviceArn(DeviceArnT&& value) {
62 m_deviceArnHasBeenSet = true;
63 m_deviceArn = std::forward<DeviceArnT>(value);
64 }
65 template <typename DeviceArnT = Aws::String>
67 SetDeviceArn(std::forward<DeviceArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeviceParameters() const { return m_deviceParameters; }
77 inline bool DeviceParametersHasBeenSet() const { return m_deviceParametersHasBeenSet; }
78 template <typename DeviceParametersT = Aws::String>
79 void SetDeviceParameters(DeviceParametersT&& value) {
80 m_deviceParametersHasBeenSet = true;
81 m_deviceParameters = std::forward<DeviceParametersT>(value);
82 }
83 template <typename DeviceParametersT = Aws::String>
84 CreateQuantumTaskRequest& WithDeviceParameters(DeviceParametersT&& value) {
85 SetDeviceParameters(std::forward<DeviceParametersT>(value));
86 return *this;
87 }
89
91
94 inline long long GetShots() const { return m_shots; }
95 inline bool ShotsHasBeenSet() const { return m_shotsHasBeenSet; }
96 inline void SetShots(long long value) {
97 m_shotsHasBeenSet = true;
98 m_shots = value;
99 }
100 inline CreateQuantumTaskRequest& WithShots(long long value) {
101 SetShots(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetOutputS3Bucket() const { return m_outputS3Bucket; }
111 inline bool OutputS3BucketHasBeenSet() const { return m_outputS3BucketHasBeenSet; }
112 template <typename OutputS3BucketT = Aws::String>
113 void SetOutputS3Bucket(OutputS3BucketT&& value) {
114 m_outputS3BucketHasBeenSet = true;
115 m_outputS3Bucket = std::forward<OutputS3BucketT>(value);
116 }
117 template <typename OutputS3BucketT = Aws::String>
119 SetOutputS3Bucket(std::forward<OutputS3BucketT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
130 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
131 template <typename OutputS3KeyPrefixT = Aws::String>
132 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
133 m_outputS3KeyPrefixHasBeenSet = true;
134 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
135 }
136 template <typename OutputS3KeyPrefixT = Aws::String>
137 CreateQuantumTaskRequest& WithOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
138 SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetAction() const { return m_action; }
148 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
149 template <typename ActionT = Aws::String>
150 void SetAction(ActionT&& value) {
151 m_actionHasBeenSet = true;
152 m_action = std::forward<ActionT>(value);
153 }
154 template <typename ActionT = Aws::String>
156 SetAction(std::forward<ActionT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 CreateQuantumTaskRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetJobToken() const { return m_jobToken; }
191 inline bool JobTokenHasBeenSet() const { return m_jobTokenHasBeenSet; }
192 template <typename JobTokenT = Aws::String>
193 void SetJobToken(JobTokenT&& value) {
194 m_jobTokenHasBeenSet = true;
195 m_jobToken = std::forward<JobTokenT>(value);
196 }
197 template <typename JobTokenT = Aws::String>
199 SetJobToken(std::forward<JobTokenT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
209 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
210 template <typename AssociationsT = Aws::Vector<Association>>
211 void SetAssociations(AssociationsT&& value) {
212 m_associationsHasBeenSet = true;
213 m_associations = std::forward<AssociationsT>(value);
214 }
215 template <typename AssociationsT = Aws::Vector<Association>>
217 SetAssociations(std::forward<AssociationsT>(value));
218 return *this;
219 }
220 template <typename AssociationsT = Association>
222 m_associationsHasBeenSet = true;
223 m_associations.emplace_back(std::forward<AssociationsT>(value));
224 return *this;
225 }
227
229
232 inline const ExperimentalCapabilities& GetExperimentalCapabilities() const { return m_experimentalCapabilities; }
233 inline bool ExperimentalCapabilitiesHasBeenSet() const { return m_experimentalCapabilitiesHasBeenSet; }
234 template <typename ExperimentalCapabilitiesT = ExperimentalCapabilities>
235 void SetExperimentalCapabilities(ExperimentalCapabilitiesT&& value) {
236 m_experimentalCapabilitiesHasBeenSet = true;
237 m_experimentalCapabilities = std::forward<ExperimentalCapabilitiesT>(value);
238 }
239 template <typename ExperimentalCapabilitiesT = ExperimentalCapabilities>
240 CreateQuantumTaskRequest& WithExperimentalCapabilities(ExperimentalCapabilitiesT&& value) {
241 SetExperimentalCapabilities(std::forward<ExperimentalCapabilitiesT>(value));
242 return *this;
243 }
245 private:
247
248 Aws::String m_deviceArn;
249
250 Aws::String m_deviceParameters;
251
252 long long m_shots{0};
253
254 Aws::String m_outputS3Bucket;
255
256 Aws::String m_outputS3KeyPrefix;
257
258 Aws::String m_action;
259
261
262 Aws::String m_jobToken;
263
264 Aws::Vector<Association> m_associations;
265
266 ExperimentalCapabilities m_experimentalCapabilities;
267 bool m_clientTokenHasBeenSet = true;
268 bool m_deviceArnHasBeenSet = false;
269 bool m_deviceParametersHasBeenSet = false;
270 bool m_shotsHasBeenSet = false;
271 bool m_outputS3BucketHasBeenSet = false;
272 bool m_outputS3KeyPrefixHasBeenSet = false;
273 bool m_actionHasBeenSet = false;
274 bool m_tagsHasBeenSet = false;
275 bool m_jobTokenHasBeenSet = false;
276 bool m_associationsHasBeenSet = false;
277 bool m_experimentalCapabilitiesHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace Braket
282} // namespace Aws
CreateQuantumTaskRequest & WithAction(ActionT &&value)
AWS_BRAKET_API CreateQuantumTaskRequest()=default
virtual const char * GetServiceRequestName() const override
CreateQuantumTaskRequest & AddAssociations(AssociationsT &&value)
const Aws::Vector< Association > & GetAssociations() const
CreateQuantumTaskRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQuantumTaskRequest & WithJobToken(JobTokenT &&value)
CreateQuantumTaskRequest & WithDeviceParameters(DeviceParametersT &&value)
const ExperimentalCapabilities & GetExperimentalCapabilities() const
CreateQuantumTaskRequest & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
CreateQuantumTaskRequest & WithTags(TagsT &&value)
void SetExperimentalCapabilities(ExperimentalCapabilitiesT &&value)
CreateQuantumTaskRequest & WithShots(long long value)
void SetOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
AWS_BRAKET_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuantumTaskRequest & WithOutputS3Bucket(OutputS3BucketT &&value)
CreateQuantumTaskRequest & WithAssociations(AssociationsT &&value)
CreateQuantumTaskRequest & WithClientToken(ClientTokenT &&value)
CreateQuantumTaskRequest & WithExperimentalCapabilities(ExperimentalCapabilitiesT &&value)
CreateQuantumTaskRequest & WithDeviceArn(DeviceArnT &&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