AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudControlApiClient.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_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/cloudcontrol/CloudControlApiServiceClientModel.h>
13
14namespace Aws
15{
16namespace CloudControlApi
17{
23 class AWS_CLOUDCONTROLAPI_API CloudControlApiClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CloudControlApiClient>
24 {
25 public:
27 static const char* GetServiceName();
28 static const char* GetAllocationTag();
29
32
38 std::shared_ptr<CloudControlApiEndpointProviderBase> endpointProvider = nullptr);
39
45 std::shared_ptr<CloudControlApiEndpointProviderBase> endpointProvider = nullptr,
47
52 CloudControlApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
53 std::shared_ptr<CloudControlApiEndpointProviderBase> endpointProvider = nullptr,
55
56
57 /* Legacy constructors due deprecation */
63
69 const Aws::Client::ClientConfiguration& clientConfiguration);
70
75 CloudControlApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
76 const Aws::Client::ClientConfiguration& clientConfiguration);
77
78 /* End of legacy constructors due deprecation */
80
93
97 template<typename CancelResourceRequestRequestT = Model::CancelResourceRequestRequest>
98 Model::CancelResourceRequestOutcomeCallable CancelResourceRequestCallable(const CancelResourceRequestRequestT& request) const
99 {
100 return SubmitCallable(&CloudControlApiClient::CancelResourceRequest, request);
101 }
102
106 template<typename CancelResourceRequestRequestT = Model::CancelResourceRequestRequest>
107 void CancelResourceRequestAsync(const CancelResourceRequestRequestT& request, const CancelResourceRequestResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
108 {
109 return SubmitAsync(&CloudControlApiClient::CancelResourceRequest, request, handler, context);
110 }
111
125
129 template<typename CreateResourceRequestT = Model::CreateResourceRequest>
130 Model::CreateResourceOutcomeCallable CreateResourceCallable(const CreateResourceRequestT& request) const
131 {
132 return SubmitCallable(&CloudControlApiClient::CreateResource, request);
133 }
134
138 template<typename CreateResourceRequestT = Model::CreateResourceRequest>
139 void CreateResourceAsync(const CreateResourceRequestT& request, const CreateResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
140 {
141 return SubmitAsync(&CloudControlApiClient::CreateResource, request, handler, context);
142 }
143
157
161 template<typename DeleteResourceRequestT = Model::DeleteResourceRequest>
162 Model::DeleteResourceOutcomeCallable DeleteResourceCallable(const DeleteResourceRequestT& request) const
163 {
164 return SubmitCallable(&CloudControlApiClient::DeleteResource, request);
165 }
166
170 template<typename DeleteResourceRequestT = Model::DeleteResourceRequest>
171 void DeleteResourceAsync(const DeleteResourceRequestT& request, const DeleteResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
172 {
173 return SubmitAsync(&CloudControlApiClient::DeleteResource, request, handler, context);
174 }
175
188
192 template<typename GetResourceRequestT = Model::GetResourceRequest>
193 Model::GetResourceOutcomeCallable GetResourceCallable(const GetResourceRequestT& request) const
194 {
195 return SubmitCallable(&CloudControlApiClient::GetResource, request);
196 }
197
201 template<typename GetResourceRequestT = Model::GetResourceRequest>
202 void GetResourceAsync(const GetResourceRequestT& request, const GetResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
203 {
204 return SubmitAsync(&CloudControlApiClient::GetResource, request, handler, context);
205 }
206
217
221 template<typename GetResourceRequestStatusRequestT = Model::GetResourceRequestStatusRequest>
222 Model::GetResourceRequestStatusOutcomeCallable GetResourceRequestStatusCallable(const GetResourceRequestStatusRequestT& request) const
223 {
224 return SubmitCallable(&CloudControlApiClient::GetResourceRequestStatus, request);
225 }
226
230 template<typename GetResourceRequestStatusRequestT = Model::GetResourceRequestStatusRequest>
231 void GetResourceRequestStatusAsync(const GetResourceRequestStatusRequestT& request, const GetResourceRequestStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
232 {
233 return SubmitAsync(&CloudControlApiClient::GetResourceRequestStatus, request, handler, context);
234 }
235
247
251 template<typename ListResourceRequestsRequestT = Model::ListResourceRequestsRequest>
252 Model::ListResourceRequestsOutcomeCallable ListResourceRequestsCallable(const ListResourceRequestsRequestT& request = {}) const
253 {
254 return SubmitCallable(&CloudControlApiClient::ListResourceRequests, request);
255 }
256
260 template<typename ListResourceRequestsRequestT = Model::ListResourceRequestsRequest>
261 void ListResourceRequestsAsync(const ListResourceRequestsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListResourceRequestsRequestT& request = {}) const
262 {
263 return SubmitAsync(&CloudControlApiClient::ListResourceRequests, request, handler, context);
264 }
265
279
283 template<typename ListResourcesRequestT = Model::ListResourcesRequest>
284 Model::ListResourcesOutcomeCallable ListResourcesCallable(const ListResourcesRequestT& request) const
285 {
286 return SubmitCallable(&CloudControlApiClient::ListResources, request);
287 }
288
292 template<typename ListResourcesRequestT = Model::ListResourcesRequest>
293 void ListResourcesAsync(const ListResourcesRequestT& request, const ListResourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
294 {
295 return SubmitAsync(&CloudControlApiClient::ListResources, request, handler, context);
296 }
297
320
324 template<typename UpdateResourceRequestT = Model::UpdateResourceRequest>
325 Model::UpdateResourceOutcomeCallable UpdateResourceCallable(const UpdateResourceRequestT& request) const
326 {
327 return SubmitCallable(&CloudControlApiClient::UpdateResource, request);
328 }
329
333 template<typename UpdateResourceRequestT = Model::UpdateResourceRequest>
334 void UpdateResourceAsync(const UpdateResourceRequestT& request, const UpdateResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
335 {
336 return SubmitAsync(&CloudControlApiClient::UpdateResource, request, handler, context);
337 }
338
339
340 void OverrideEndpoint(const Aws::String& endpoint);
341 std::shared_ptr<CloudControlApiEndpointProviderBase>& accessEndpointProvider();
342 private:
344 void init(const CloudControlApiClientConfiguration& clientConfiguration);
345
346 CloudControlApiClientConfiguration m_clientConfiguration;
347 std::shared_ptr<CloudControlApiEndpointProviderBase> m_endpointProvider;
348 };
349
350} // namespace CloudControlApi
351} // namespace Aws
virtual Model::CreateResourceOutcome CreateResource(const Model::CreateResourceRequest &request) const
CloudControlApiClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
CloudControlApiClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ListResourcesOutcomeCallable ListResourcesCallable(const ListResourcesRequestT &request) const
void GetResourceAsync(const GetResourceRequestT &request, const GetResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void UpdateResourceAsync(const UpdateResourceRequestT &request, const UpdateResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListResourcesAsync(const ListResourcesRequestT &request, const ListResourcesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListResourceRequestsOutcome ListResourceRequests(const Model::ListResourceRequestsRequest &request={}) const
virtual Model::GetResourceOutcome GetResource(const Model::GetResourceRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
void ListResourceRequestsAsync(const ListResourceRequestsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListResourceRequestsRequestT &request={}) const
CloudControlApiClientConfiguration ClientConfigurationType
Model::CancelResourceRequestOutcomeCallable CancelResourceRequestCallable(const CancelResourceRequestRequestT &request) const
virtual Model::GetResourceRequestStatusOutcome GetResourceRequestStatus(const Model::GetResourceRequestStatusRequest &request) const
CloudControlApiClient(const Aws::CloudControlApi::CloudControlApiClientConfiguration &clientConfiguration=Aws::CloudControlApi::CloudControlApiClientConfiguration(), std::shared_ptr< CloudControlApiEndpointProviderBase > endpointProvider=nullptr)
Model::CreateResourceOutcomeCallable CreateResourceCallable(const CreateResourceRequestT &request) const
Model::GetResourceRequestStatusOutcomeCallable GetResourceRequestStatusCallable(const GetResourceRequestStatusRequestT &request) const
virtual Model::UpdateResourceOutcome UpdateResource(const Model::UpdateResourceRequest &request) const
Model::GetResourceOutcomeCallable GetResourceCallable(const GetResourceRequestT &request) const
virtual Model::DeleteResourceOutcome DeleteResource(const Model::DeleteResourceRequest &request) const
Model::UpdateResourceOutcomeCallable UpdateResourceCallable(const UpdateResourceRequestT &request) const
virtual Model::CancelResourceRequestOutcome CancelResourceRequest(const Model::CancelResourceRequestRequest &request) const
void DeleteResourceAsync(const DeleteResourceRequestT &request, const DeleteResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
CloudControlApiClient(const Aws::Client::ClientConfiguration &clientConfiguration)
CloudControlApiEndpointProvider EndpointProviderType
CloudControlApiClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< CloudControlApiEndpointProviderBase > endpointProvider=nullptr, const Aws::CloudControlApi::CloudControlApiClientConfiguration &clientConfiguration=Aws::CloudControlApi::CloudControlApiClientConfiguration())
Model::ListResourceRequestsOutcomeCallable ListResourceRequestsCallable(const ListResourceRequestsRequestT &request={}) const
void CancelResourceRequestAsync(const CancelResourceRequestRequestT &request, const CancelResourceRequestResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::DeleteResourceOutcomeCallable DeleteResourceCallable(const DeleteResourceRequestT &request) const
std::shared_ptr< CloudControlApiEndpointProviderBase > & accessEndpointProvider()
CloudControlApiClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< CloudControlApiEndpointProviderBase > endpointProvider=nullptr, const Aws::CloudControlApi::CloudControlApiClientConfiguration &clientConfiguration=Aws::CloudControlApi::CloudControlApiClientConfiguration())
void CreateResourceAsync(const CreateResourceRequestT &request, const CreateResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListResourcesOutcome ListResources(const Model::ListResourcesRequest &request) const
void GetResourceRequestStatusAsync(const GetResourceRequestStatusRequestT &request, const GetResourceRequestStatusResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::future< ListResourceRequestsOutcome > ListResourceRequestsOutcomeCallable
std::future< UpdateResourceOutcome > UpdateResourceOutcomeCallable
std::future< ListResourcesOutcome > ListResourcesOutcomeCallable
std::future< CancelResourceRequestOutcome > CancelResourceRequestOutcomeCallable
std::future< GetResourceOutcome > GetResourceOutcomeCallable
std::future< CreateResourceOutcome > CreateResourceOutcomeCallable
std::future< DeleteResourceOutcome > DeleteResourceOutcomeCallable
std::future< GetResourceRequestStatusOutcome > GetResourceRequestStatusOutcomeCallable
std::function< void(const CloudControlApiClient *, const Model::ListResourcesRequest &, const Model::ListResourcesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListResourcesResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::CancelResourceRequestRequest &, const Model::CancelResourceRequestOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CancelResourceRequestResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::UpdateResourceRequest &, const Model::UpdateResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateResourceResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::GetResourceRequestStatusRequest &, const Model::GetResourceRequestStatusOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetResourceRequestStatusResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::GetResourceRequest &, const Model::GetResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetResourceResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::CreateResourceRequest &, const Model::CreateResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateResourceResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::ListResourceRequestsRequest &, const Model::ListResourceRequestsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListResourceRequestsResponseReceivedHandler
std::function< void(const CloudControlApiClient *, const Model::DeleteResourceRequest &, const Model::DeleteResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteResourceResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String