AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BraketClient.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/braket/BraketServiceClientModel.h>
13
14namespace Aws
15{
16namespace Braket
17{
26 {
27 public:
29 static const char* GetServiceName();
30 static const char* GetAllocationTag();
31
34
40 std::shared_ptr<BraketEndpointProviderBase> endpointProvider = nullptr);
41
47 std::shared_ptr<BraketEndpointProviderBase> endpointProvider = nullptr,
49
54 BraketClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
55 std::shared_ptr<BraketEndpointProviderBase> endpointProvider = nullptr,
57
58
59 /* Legacy constructors due deprecation */
65
71 const Aws::Client::ClientConfiguration& clientConfiguration);
72
77 BraketClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
78 const Aws::Client::ClientConfiguration& clientConfiguration);
79
80 /* End of legacy constructors due deprecation */
81 virtual ~BraketClient();
82
89
93 template<typename CancelJobRequestT = Model::CancelJobRequest>
94 Model::CancelJobOutcomeCallable CancelJobCallable(const CancelJobRequestT& request) const
95 {
96 return SubmitCallable(&BraketClient::CancelJob, request);
97 }
98
102 template<typename CancelJobRequestT = Model::CancelJobRequest>
103 void CancelJobAsync(const CancelJobRequestT& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
104 {
105 return SubmitAsync(&BraketClient::CancelJob, request, handler, context);
106 }
107
114
118 template<typename CancelQuantumTaskRequestT = Model::CancelQuantumTaskRequest>
119 Model::CancelQuantumTaskOutcomeCallable CancelQuantumTaskCallable(const CancelQuantumTaskRequestT& request) const
120 {
121 return SubmitCallable(&BraketClient::CancelQuantumTask, request);
122 }
123
127 template<typename CancelQuantumTaskRequestT = Model::CancelQuantumTaskRequest>
128 void CancelQuantumTaskAsync(const CancelQuantumTaskRequestT& request, const CancelQuantumTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
129 {
130 return SubmitAsync(&BraketClient::CancelQuantumTask, request, handler, context);
131 }
132
139
143 template<typename CreateJobRequestT = Model::CreateJobRequest>
144 Model::CreateJobOutcomeCallable CreateJobCallable(const CreateJobRequestT& request) const
145 {
146 return SubmitCallable(&BraketClient::CreateJob, request);
147 }
148
152 template<typename CreateJobRequestT = Model::CreateJobRequest>
153 void CreateJobAsync(const CreateJobRequestT& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
154 {
155 return SubmitAsync(&BraketClient::CreateJob, request, handler, context);
156 }
157
164
168 template<typename CreateQuantumTaskRequestT = Model::CreateQuantumTaskRequest>
169 Model::CreateQuantumTaskOutcomeCallable CreateQuantumTaskCallable(const CreateQuantumTaskRequestT& request) const
170 {
171 return SubmitCallable(&BraketClient::CreateQuantumTask, request);
172 }
173
177 template<typename CreateQuantumTaskRequestT = Model::CreateQuantumTaskRequest>
178 void CreateQuantumTaskAsync(const CreateQuantumTaskRequestT& request, const CreateQuantumTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
179 {
180 return SubmitAsync(&BraketClient::CreateQuantumTask, request, handler, context);
181 }
182
197
201 template<typename GetDeviceRequestT = Model::GetDeviceRequest>
202 Model::GetDeviceOutcomeCallable GetDeviceCallable(const GetDeviceRequestT& request) const
203 {
204 return SubmitCallable(&BraketClient::GetDevice, request);
205 }
206
210 template<typename GetDeviceRequestT = Model::GetDeviceRequest>
211 void GetDeviceAsync(const GetDeviceRequestT& request, const GetDeviceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
212 {
213 return SubmitAsync(&BraketClient::GetDevice, request, handler, context);
214 }
215
221 virtual Model::GetJobOutcome GetJob(const Model::GetJobRequest& request) const;
222
226 template<typename GetJobRequestT = Model::GetJobRequest>
227 Model::GetJobOutcomeCallable GetJobCallable(const GetJobRequestT& request) const
228 {
229 return SubmitCallable(&BraketClient::GetJob, request);
230 }
231
235 template<typename GetJobRequestT = Model::GetJobRequest>
236 void GetJobAsync(const GetJobRequestT& request, const GetJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
237 {
238 return SubmitAsync(&BraketClient::GetJob, request, handler, context);
239 }
240
247
251 template<typename GetQuantumTaskRequestT = Model::GetQuantumTaskRequest>
252 Model::GetQuantumTaskOutcomeCallable GetQuantumTaskCallable(const GetQuantumTaskRequestT& request) const
253 {
254 return SubmitCallable(&BraketClient::GetQuantumTask, request);
255 }
256
260 template<typename GetQuantumTaskRequestT = Model::GetQuantumTaskRequest>
261 void GetQuantumTaskAsync(const GetQuantumTaskRequestT& request, const GetQuantumTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
262 {
263 return SubmitAsync(&BraketClient::GetQuantumTask, request, handler, context);
264 }
265
272
276 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
277 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
278 {
279 return SubmitCallable(&BraketClient::ListTagsForResource, request);
280 }
281
285 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
286 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
287 {
288 return SubmitAsync(&BraketClient::ListTagsForResource, request, handler, context);
289 }
290
298
302 template<typename SearchDevicesRequestT = Model::SearchDevicesRequest>
303 Model::SearchDevicesOutcomeCallable SearchDevicesCallable(const SearchDevicesRequestT& request) const
304 {
305 return SubmitCallable(&BraketClient::SearchDevices, request);
306 }
307
311 template<typename SearchDevicesRequestT = Model::SearchDevicesRequest>
312 void SearchDevicesAsync(const SearchDevicesRequestT& request, const SearchDevicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
313 {
314 return SubmitAsync(&BraketClient::SearchDevices, request, handler, context);
315 }
316
324
328 template<typename SearchJobsRequestT = Model::SearchJobsRequest>
329 Model::SearchJobsOutcomeCallable SearchJobsCallable(const SearchJobsRequestT& request) const
330 {
331 return SubmitCallable(&BraketClient::SearchJobs, request);
332 }
333
337 template<typename SearchJobsRequestT = Model::SearchJobsRequest>
338 void SearchJobsAsync(const SearchJobsRequestT& request, const SearchJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
339 {
340 return SubmitAsync(&BraketClient::SearchJobs, request, handler, context);
341 }
342
350
354 template<typename SearchQuantumTasksRequestT = Model::SearchQuantumTasksRequest>
355 Model::SearchQuantumTasksOutcomeCallable SearchQuantumTasksCallable(const SearchQuantumTasksRequestT& request) const
356 {
357 return SubmitCallable(&BraketClient::SearchQuantumTasks, request);
358 }
359
363 template<typename SearchQuantumTasksRequestT = Model::SearchQuantumTasksRequest>
364 void SearchQuantumTasksAsync(const SearchQuantumTasksRequestT& request, const SearchQuantumTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
365 {
366 return SubmitAsync(&BraketClient::SearchQuantumTasks, request, handler, context);
367 }
368
375
379 template<typename TagResourceRequestT = Model::TagResourceRequest>
380 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
381 {
382 return SubmitCallable(&BraketClient::TagResource, request);
383 }
384
388 template<typename TagResourceRequestT = Model::TagResourceRequest>
389 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
390 {
391 return SubmitAsync(&BraketClient::TagResource, request, handler, context);
392 }
393
400
404 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
405 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
406 {
407 return SubmitCallable(&BraketClient::UntagResource, request);
408 }
409
413 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
414 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
415 {
416 return SubmitAsync(&BraketClient::UntagResource, request, handler, context);
417 }
418
419
420 void OverrideEndpoint(const Aws::String& endpoint);
421 std::shared_ptr<BraketEndpointProviderBase>& accessEndpointProvider();
422 private:
424 void init(const BraketClientConfiguration& clientConfiguration);
425
426 BraketClientConfiguration m_clientConfiguration;
427 std::shared_ptr<BraketEndpointProviderBase> m_endpointProvider;
428 };
429
430} // namespace Braket
431} // namespace Aws
Model::CreateQuantumTaskOutcomeCallable CreateQuantumTaskCallable(const CreateQuantumTaskRequestT &request) const
BraketClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
static const char * GetAllocationTag()
Model::CancelJobOutcomeCallable CancelJobCallable(const CancelJobRequestT &request) const
virtual Model::CancelQuantumTaskOutcome CancelQuantumTask(const Model::CancelQuantumTaskRequest &request) const
void GetQuantumTaskAsync(const GetQuantumTaskRequestT &request, const GetQuantumTaskResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::CreateJobOutcome CreateJob(const Model::CreateJobRequest &request) const
void SearchJobsAsync(const SearchJobsRequestT &request, const SearchJobsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
BraketClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< BraketEndpointProviderBase > endpointProvider=nullptr, const Aws::Braket::BraketClientConfiguration &clientConfiguration=Aws::Braket::BraketClientConfiguration())
BraketClient(const Aws::Braket::BraketClientConfiguration &clientConfiguration=Aws::Braket::BraketClientConfiguration(), std::shared_ptr< BraketEndpointProviderBase > endpointProvider=nullptr)
void OverrideEndpoint(const Aws::String &endpoint)
void GetJobAsync(const GetJobRequestT &request, const GetJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetDeviceOutcomeCallable GetDeviceCallable(const GetDeviceRequestT &request) const
BraketClient(const Aws::Client::ClientConfiguration &clientConfiguration)
BraketClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetJobOutcome GetJob(const Model::GetJobRequest &request) const
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
virtual Model::SearchQuantumTasksOutcome SearchQuantumTasks(const Model::SearchQuantumTasksRequest &request) const
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
std::shared_ptr< BraketEndpointProviderBase > & accessEndpointProvider()
BraketClientConfiguration ClientConfigurationType
Model::CreateJobOutcomeCallable CreateJobCallable(const CreateJobRequestT &request) const
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void CreateQuantumTaskAsync(const CreateQuantumTaskRequestT &request, const CreateQuantumTaskResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
static const char * GetServiceName()
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
Model::SearchQuantumTasksOutcomeCallable SearchQuantumTasksCallable(const SearchQuantumTasksRequestT &request) const
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::CreateQuantumTaskOutcome CreateQuantumTask(const Model::CreateQuantumTaskRequest &request) const
void CreateJobAsync(const CreateJobRequestT &request, const CreateJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void SearchDevicesAsync(const SearchDevicesRequestT &request, const SearchDevicesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetDeviceAsync(const GetDeviceRequestT &request, const GetDeviceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
BraketEndpointProvider EndpointProviderType
Aws::Client::AWSJsonClient BASECLASS
Model::CancelQuantumTaskOutcomeCallable CancelQuantumTaskCallable(const CancelQuantumTaskRequestT &request) const
BraketClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< BraketEndpointProviderBase > endpointProvider=nullptr, const Aws::Braket::BraketClientConfiguration &clientConfiguration=Aws::Braket::BraketClientConfiguration())
void CancelQuantumTaskAsync(const CancelQuantumTaskRequestT &request, const CancelQuantumTaskResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void SearchQuantumTasksAsync(const SearchQuantumTasksRequestT &request, const SearchQuantumTasksResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetDeviceOutcome GetDevice(const Model::GetDeviceRequest &request) const
virtual Model::GetQuantumTaskOutcome GetQuantumTask(const Model::GetQuantumTaskRequest &request) const
Model::GetJobOutcomeCallable GetJobCallable(const GetJobRequestT &request) const
Model::GetQuantumTaskOutcomeCallable GetQuantumTaskCallable(const GetQuantumTaskRequestT &request) const
Model::SearchDevicesOutcomeCallable SearchDevicesCallable(const SearchDevicesRequestT &request) const
virtual Model::CancelJobOutcome CancelJob(const Model::CancelJobRequest &request) const
virtual Model::SearchDevicesOutcome SearchDevices(const Model::SearchDevicesRequest &request) const
virtual Model::SearchJobsOutcome SearchJobs(const Model::SearchJobsRequest &request) const
void CancelJobAsync(const CancelJobRequestT &request, const CancelJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::SearchJobsOutcomeCallable SearchJobsCallable(const SearchJobsRequestT &request) const
std::future< CancelQuantumTaskOutcome > CancelQuantumTaskOutcomeCallable
std::future< SearchDevicesOutcome > SearchDevicesOutcomeCallable
std::future< CreateJobOutcome > CreateJobOutcomeCallable
std::future< CreateQuantumTaskOutcome > CreateQuantumTaskOutcomeCallable
std::future< SearchQuantumTasksOutcome > SearchQuantumTasksOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< GetJobOutcome > GetJobOutcomeCallable
std::future< CancelJobOutcome > CancelJobOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< GetDeviceOutcome > GetDeviceOutcomeCallable
std::future< SearchJobsOutcome > SearchJobsOutcomeCallable
std::future< GetQuantumTaskOutcome > GetQuantumTaskOutcomeCallable
std::function< void(const BraketClient *, const Model::SearchJobsRequest &, const Model::SearchJobsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchJobsResponseReceivedHandler
std::function< void(const BraketClient *, const Model::SearchQuantumTasksRequest &, const Model::SearchQuantumTasksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchQuantumTasksResponseReceivedHandler
std::function< void(const BraketClient *, const Model::CancelJobRequest &, const Model::CancelJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CancelJobResponseReceivedHandler
std::function< void(const BraketClient *, const Model::GetDeviceRequest &, const Model::GetDeviceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetDeviceResponseReceivedHandler
std::function< void(const BraketClient *, const Model::SearchDevicesRequest &, const Model::SearchDevicesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchDevicesResponseReceivedHandler
std::function< void(const BraketClient *, const Model::CreateJobRequest &, const Model::CreateJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateJobResponseReceivedHandler
std::function< void(const BraketClient *, const Model::CancelQuantumTaskRequest &, const Model::CancelQuantumTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CancelQuantumTaskResponseReceivedHandler
std::function< void(const BraketClient *, const Model::CreateQuantumTaskRequest &, const Model::CreateQuantumTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateQuantumTaskResponseReceivedHandler
std::function< void(const BraketClient *, const Model::GetJobRequest &, const Model::GetJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetJobResponseReceivedHandler
std::function< void(const BraketClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const BraketClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const BraketClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::function< void(const BraketClient *, const Model::GetQuantumTaskRequest &, const Model::GetQuantumTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetQuantumTaskResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String