AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrustedAdvisorClient.h
1
6#pragma once
7#include <aws/trustedadvisor/TrustedAdvisor_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/trustedadvisor/TrustedAdvisorServiceClientModel.h>
13
14namespace Aws
15{
16namespace TrustedAdvisor
17{
21 class AWS_TRUSTEDADVISOR_API TrustedAdvisorClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<TrustedAdvisorClient>
22 {
23 public:
25 static const char* GetServiceName();
26 static const char* GetAllocationTag();
27
30
36 std::shared_ptr<TrustedAdvisorEndpointProviderBase> endpointProvider = nullptr);
37
43 std::shared_ptr<TrustedAdvisorEndpointProviderBase> endpointProvider = nullptr,
45
50 TrustedAdvisorClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<TrustedAdvisorEndpointProviderBase> endpointProvider = nullptr,
53
54
55 /* Legacy constructors due deprecation */
61
67 const Aws::Client::ClientConfiguration& clientConfiguration);
68
73 TrustedAdvisorClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
76 /* End of legacy constructors due deprecation */
78
86
90 template<typename BatchUpdateRecommendationResourceExclusionRequestT = Model::BatchUpdateRecommendationResourceExclusionRequest>
92 {
93 return SubmitCallable(&TrustedAdvisorClient::BatchUpdateRecommendationResourceExclusion, request);
94 }
95
99 template<typename BatchUpdateRecommendationResourceExclusionRequestT = Model::BatchUpdateRecommendationResourceExclusionRequest>
100 void BatchUpdateRecommendationResourceExclusionAsync(const BatchUpdateRecommendationResourceExclusionRequestT& request, const BatchUpdateRecommendationResourceExclusionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
101 {
102 return SubmitAsync(&TrustedAdvisorClient::BatchUpdateRecommendationResourceExclusion, request, handler, context);
103 }
104
112
116 template<typename GetOrganizationRecommendationRequestT = Model::GetOrganizationRecommendationRequest>
117 Model::GetOrganizationRecommendationOutcomeCallable GetOrganizationRecommendationCallable(const GetOrganizationRecommendationRequestT& request) const
118 {
119 return SubmitCallable(&TrustedAdvisorClient::GetOrganizationRecommendation, request);
120 }
121
125 template<typename GetOrganizationRecommendationRequestT = Model::GetOrganizationRecommendationRequest>
126 void GetOrganizationRecommendationAsync(const GetOrganizationRecommendationRequestT& request, const GetOrganizationRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
127 {
128 return SubmitAsync(&TrustedAdvisorClient::GetOrganizationRecommendation, request, handler, context);
129 }
130
137
141 template<typename GetRecommendationRequestT = Model::GetRecommendationRequest>
142 Model::GetRecommendationOutcomeCallable GetRecommendationCallable(const GetRecommendationRequestT& request) const
143 {
144 return SubmitCallable(&TrustedAdvisorClient::GetRecommendation, request);
145 }
146
150 template<typename GetRecommendationRequestT = Model::GetRecommendationRequest>
151 void GetRecommendationAsync(const GetRecommendationRequestT& request, const GetRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
152 {
153 return SubmitAsync(&TrustedAdvisorClient::GetRecommendation, request, handler, context);
154 }
155
162
166 template<typename ListChecksRequestT = Model::ListChecksRequest>
167 Model::ListChecksOutcomeCallable ListChecksCallable(const ListChecksRequestT& request = {}) const
168 {
169 return SubmitCallable(&TrustedAdvisorClient::ListChecks, request);
170 }
171
175 template<typename ListChecksRequestT = Model::ListChecksRequest>
176 void ListChecksAsync(const ListChecksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListChecksRequestT& request = {}) const
177 {
178 return SubmitAsync(&TrustedAdvisorClient::ListChecks, request, handler, context);
179 }
180
189
193 template<typename ListOrganizationRecommendationAccountsRequestT = Model::ListOrganizationRecommendationAccountsRequest>
195 {
196 return SubmitCallable(&TrustedAdvisorClient::ListOrganizationRecommendationAccounts, request);
197 }
198
202 template<typename ListOrganizationRecommendationAccountsRequestT = Model::ListOrganizationRecommendationAccountsRequest>
203 void ListOrganizationRecommendationAccountsAsync(const ListOrganizationRecommendationAccountsRequestT& request, const ListOrganizationRecommendationAccountsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
204 {
205 return SubmitAsync(&TrustedAdvisorClient::ListOrganizationRecommendationAccounts, request, handler, context);
206 }
207
215
219 template<typename ListOrganizationRecommendationResourcesRequestT = Model::ListOrganizationRecommendationResourcesRequest>
221 {
222 return SubmitCallable(&TrustedAdvisorClient::ListOrganizationRecommendationResources, request);
223 }
224
228 template<typename ListOrganizationRecommendationResourcesRequestT = Model::ListOrganizationRecommendationResourcesRequest>
229 void ListOrganizationRecommendationResourcesAsync(const ListOrganizationRecommendationResourcesRequestT& request, const ListOrganizationRecommendationResourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
230 {
231 return SubmitAsync(&TrustedAdvisorClient::ListOrganizationRecommendationResources, request, handler, context);
232 }
233
241
245 template<typename ListOrganizationRecommendationsRequestT = Model::ListOrganizationRecommendationsRequest>
246 Model::ListOrganizationRecommendationsOutcomeCallable ListOrganizationRecommendationsCallable(const ListOrganizationRecommendationsRequestT& request = {}) const
247 {
248 return SubmitCallable(&TrustedAdvisorClient::ListOrganizationRecommendations, request);
249 }
250
254 template<typename ListOrganizationRecommendationsRequestT = Model::ListOrganizationRecommendationsRequest>
255 void ListOrganizationRecommendationsAsync(const ListOrganizationRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListOrganizationRecommendationsRequestT& request = {}) const
256 {
257 return SubmitAsync(&TrustedAdvisorClient::ListOrganizationRecommendations, request, handler, context);
258 }
259
266
270 template<typename ListRecommendationResourcesRequestT = Model::ListRecommendationResourcesRequest>
271 Model::ListRecommendationResourcesOutcomeCallable ListRecommendationResourcesCallable(const ListRecommendationResourcesRequestT& request) const
272 {
273 return SubmitCallable(&TrustedAdvisorClient::ListRecommendationResources, request);
274 }
275
279 template<typename ListRecommendationResourcesRequestT = Model::ListRecommendationResourcesRequest>
280 void ListRecommendationResourcesAsync(const ListRecommendationResourcesRequestT& request, const ListRecommendationResourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
281 {
282 return SubmitAsync(&TrustedAdvisorClient::ListRecommendationResources, request, handler, context);
283 }
284
291
295 template<typename ListRecommendationsRequestT = Model::ListRecommendationsRequest>
296 Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const ListRecommendationsRequestT& request = {}) const
297 {
298 return SubmitCallable(&TrustedAdvisorClient::ListRecommendations, request);
299 }
300
304 template<typename ListRecommendationsRequestT = Model::ListRecommendationsRequest>
305 void ListRecommendationsAsync(const ListRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListRecommendationsRequestT& request = {}) const
306 {
307 return SubmitAsync(&TrustedAdvisorClient::ListRecommendations, request, handler, context);
308 }
309
317
321 template<typename UpdateOrganizationRecommendationLifecycleRequestT = Model::UpdateOrganizationRecommendationLifecycleRequest>
323 {
324 return SubmitCallable(&TrustedAdvisorClient::UpdateOrganizationRecommendationLifecycle, request);
325 }
326
330 template<typename UpdateOrganizationRecommendationLifecycleRequestT = Model::UpdateOrganizationRecommendationLifecycleRequest>
331 void UpdateOrganizationRecommendationLifecycleAsync(const UpdateOrganizationRecommendationLifecycleRequestT& request, const UpdateOrganizationRecommendationLifecycleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
332 {
333 return SubmitAsync(&TrustedAdvisorClient::UpdateOrganizationRecommendationLifecycle, request, handler, context);
334 }
335
343
347 template<typename UpdateRecommendationLifecycleRequestT = Model::UpdateRecommendationLifecycleRequest>
348 Model::UpdateRecommendationLifecycleOutcomeCallable UpdateRecommendationLifecycleCallable(const UpdateRecommendationLifecycleRequestT& request) const
349 {
350 return SubmitCallable(&TrustedAdvisorClient::UpdateRecommendationLifecycle, request);
351 }
352
356 template<typename UpdateRecommendationLifecycleRequestT = Model::UpdateRecommendationLifecycleRequest>
357 void UpdateRecommendationLifecycleAsync(const UpdateRecommendationLifecycleRequestT& request, const UpdateRecommendationLifecycleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
358 {
359 return SubmitAsync(&TrustedAdvisorClient::UpdateRecommendationLifecycle, request, handler, context);
360 }
361
362
363 void OverrideEndpoint(const Aws::String& endpoint);
364 std::shared_ptr<TrustedAdvisorEndpointProviderBase>& accessEndpointProvider();
365 private:
367 void init(const TrustedAdvisorClientConfiguration& clientConfiguration);
368
369 TrustedAdvisorClientConfiguration m_clientConfiguration;
370 std::shared_ptr<TrustedAdvisorEndpointProviderBase> m_endpointProvider;
371 };
372
373} // namespace TrustedAdvisor
374} // namespace Aws
Model::GetOrganizationRecommendationOutcomeCallable GetOrganizationRecommendationCallable(const GetOrganizationRecommendationRequestT &request) const
void UpdateOrganizationRecommendationLifecycleAsync(const UpdateOrganizationRecommendationLifecycleRequestT &request, const UpdateOrganizationRecommendationLifecycleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListOrganizationRecommendationAccountsAsync(const ListOrganizationRecommendationAccountsRequestT &request, const ListOrganizationRecommendationAccountsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListOrganizationRecommendationResourcesAsync(const ListOrganizationRecommendationResourcesRequestT &request, const ListOrganizationRecommendationResourcesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListChecksOutcomeCallable ListChecksCallable(const ListChecksRequestT &request={}) const
void ListOrganizationRecommendationsAsync(const ListOrganizationRecommendationsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListOrganizationRecommendationsRequestT &request={}) const
virtual Model::ListOrganizationRecommendationsOutcome ListOrganizationRecommendations(const Model::ListOrganizationRecommendationsRequest &request={}) const
Model::ListOrganizationRecommendationsOutcomeCallable ListOrganizationRecommendationsCallable(const ListOrganizationRecommendationsRequestT &request={}) const
TrustedAdvisorClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< TrustedAdvisorEndpointProviderBase > endpointProvider=nullptr, const Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration &clientConfiguration=Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration())
virtual Model::ListRecommendationResourcesOutcome ListRecommendationResources(const Model::ListRecommendationResourcesRequest &request) const
Model::BatchUpdateRecommendationResourceExclusionOutcomeCallable BatchUpdateRecommendationResourceExclusionCallable(const BatchUpdateRecommendationResourceExclusionRequestT &request) const
virtual Model::GetOrganizationRecommendationOutcome GetOrganizationRecommendation(const Model::GetOrganizationRecommendationRequest &request) const
void GetOrganizationRecommendationAsync(const GetOrganizationRecommendationRequestT &request, const GetOrganizationRecommendationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::UpdateOrganizationRecommendationLifecycleOutcomeCallable UpdateOrganizationRecommendationLifecycleCallable(const UpdateOrganizationRecommendationLifecycleRequestT &request) const
Model::ListRecommendationResourcesOutcomeCallable ListRecommendationResourcesCallable(const ListRecommendationResourcesRequestT &request) const
TrustedAdvisorClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListChecksOutcome ListChecks(const Model::ListChecksRequest &request={}) const
virtual Model::ListOrganizationRecommendationAccountsOutcome ListOrganizationRecommendationAccounts(const Model::ListOrganizationRecommendationAccountsRequest &request) const
TrustedAdvisorClientConfiguration ClientConfigurationType
virtual Model::ListOrganizationRecommendationResourcesOutcome ListOrganizationRecommendationResources(const Model::ListOrganizationRecommendationResourcesRequest &request) const
TrustedAdvisorClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< TrustedAdvisorEndpointProviderBase > endpointProvider=nullptr, const Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration &clientConfiguration=Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration())
void ListRecommendationsAsync(const ListRecommendationsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListRecommendationsRequestT &request={}) const
Model::ListOrganizationRecommendationResourcesOutcomeCallable ListOrganizationRecommendationResourcesCallable(const ListOrganizationRecommendationResourcesRequestT &request) const
void BatchUpdateRecommendationResourceExclusionAsync(const BatchUpdateRecommendationResourceExclusionRequestT &request, const BatchUpdateRecommendationResourceExclusionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::UpdateRecommendationLifecycleOutcomeCallable UpdateRecommendationLifecycleCallable(const UpdateRecommendationLifecycleRequestT &request) const
void UpdateRecommendationLifecycleAsync(const UpdateRecommendationLifecycleRequestT &request, const UpdateRecommendationLifecycleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
TrustedAdvisorClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void OverrideEndpoint(const Aws::String &endpoint)
Model::ListOrganizationRecommendationAccountsOutcomeCallable ListOrganizationRecommendationAccountsCallable(const ListOrganizationRecommendationAccountsRequestT &request) const
void GetRecommendationAsync(const GetRecommendationRequestT &request, const GetRecommendationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::UpdateRecommendationLifecycleOutcome UpdateRecommendationLifecycle(const Model::UpdateRecommendationLifecycleRequest &request) const
virtual Model::ListRecommendationsOutcome ListRecommendations(const Model::ListRecommendationsRequest &request={}) const
virtual Model::UpdateOrganizationRecommendationLifecycleOutcome UpdateOrganizationRecommendationLifecycle(const Model::UpdateOrganizationRecommendationLifecycleRequest &request) const
std::shared_ptr< TrustedAdvisorEndpointProviderBase > & accessEndpointProvider()
void ListChecksAsync(const ListChecksResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListChecksRequestT &request={}) const
TrustedAdvisorEndpointProvider EndpointProviderType
virtual Model::GetRecommendationOutcome GetRecommendation(const Model::GetRecommendationRequest &request) const
TrustedAdvisorClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const ListRecommendationsRequestT &request={}) const
void ListRecommendationResourcesAsync(const ListRecommendationResourcesRequestT &request, const ListRecommendationResourcesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::BatchUpdateRecommendationResourceExclusionOutcome BatchUpdateRecommendationResourceExclusion(const Model::BatchUpdateRecommendationResourceExclusionRequest &request) const
Model::GetRecommendationOutcomeCallable GetRecommendationCallable(const GetRecommendationRequestT &request) const
TrustedAdvisorClient(const Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration &clientConfiguration=Aws::TrustedAdvisor::TrustedAdvisorClientConfiguration(), std::shared_ptr< TrustedAdvisorEndpointProviderBase > endpointProvider=nullptr)
std::future< ListOrganizationRecommendationResourcesOutcome > ListOrganizationRecommendationResourcesOutcomeCallable
std::future< BatchUpdateRecommendationResourceExclusionOutcome > BatchUpdateRecommendationResourceExclusionOutcomeCallable
std::future< UpdateOrganizationRecommendationLifecycleOutcome > UpdateOrganizationRecommendationLifecycleOutcomeCallable
std::future< ListOrganizationRecommendationsOutcome > ListOrganizationRecommendationsOutcomeCallable
std::future< ListRecommendationsOutcome > ListRecommendationsOutcomeCallable
std::future< GetOrganizationRecommendationOutcome > GetOrganizationRecommendationOutcomeCallable
std::future< ListOrganizationRecommendationAccountsOutcome > ListOrganizationRecommendationAccountsOutcomeCallable
std::future< GetRecommendationOutcome > GetRecommendationOutcomeCallable
std::future< UpdateRecommendationLifecycleOutcome > UpdateRecommendationLifecycleOutcomeCallable
std::future< ListRecommendationResourcesOutcome > ListRecommendationResourcesOutcomeCallable
std::future< ListChecksOutcome > ListChecksOutcomeCallable
std::function< void(const TrustedAdvisorClient *, const Model::ListOrganizationRecommendationAccountsRequest &, const Model::ListOrganizationRecommendationAccountsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListOrganizationRecommendationAccountsResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::ListOrganizationRecommendationsRequest &, const Model::ListOrganizationRecommendationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListOrganizationRecommendationsResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::ListRecommendationsRequest &, const Model::ListRecommendationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRecommendationsResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::GetRecommendationRequest &, const Model::GetRecommendationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRecommendationResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::GetOrganizationRecommendationRequest &, const Model::GetOrganizationRecommendationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetOrganizationRecommendationResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::UpdateOrganizationRecommendationLifecycleRequest &, const Model::UpdateOrganizationRecommendationLifecycleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateOrganizationRecommendationLifecycleResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::ListRecommendationResourcesRequest &, const Model::ListRecommendationResourcesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRecommendationResourcesResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::UpdateRecommendationLifecycleRequest &, const Model::UpdateRecommendationLifecycleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateRecommendationLifecycleResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::ListChecksRequest &, const Model::ListChecksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListChecksResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::BatchUpdateRecommendationResourceExclusionRequest &, const Model::BatchUpdateRecommendationResourceExclusionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchUpdateRecommendationResourceExclusionResponseReceivedHandler
std::function< void(const TrustedAdvisorClient *, const Model::ListOrganizationRecommendationResourcesRequest &, const Model::ListOrganizationRecommendationResourcesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListOrganizationRecommendationResourcesResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String