AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CostOptimizationHubClient.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_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/cost-optimization-hub/CostOptimizationHubServiceClientModel.h>
13
14namespace Aws
15{
16namespace CostOptimizationHub
17{
26 class AWS_COSTOPTIMIZATIONHUB_API CostOptimizationHubClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CostOptimizationHubClient>
27 {
28 public:
30 static const char* GetServiceName();
31 static const char* GetAllocationTag();
32
35
41 std::shared_ptr<CostOptimizationHubEndpointProviderBase> endpointProvider = nullptr);
42
48 std::shared_ptr<CostOptimizationHubEndpointProviderBase> endpointProvider = nullptr,
50
55 CostOptimizationHubClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
56 std::shared_ptr<CostOptimizationHubEndpointProviderBase> endpointProvider = nullptr,
58
59
60 /* Legacy constructors due deprecation */
66
72 const Aws::Client::ClientConfiguration& clientConfiguration);
73
78 CostOptimizationHubClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
79 const Aws::Client::ClientConfiguration& clientConfiguration);
80
81 /* End of legacy constructors due deprecation */
83
94
98 template<typename GetPreferencesRequestT = Model::GetPreferencesRequest>
99 Model::GetPreferencesOutcomeCallable GetPreferencesCallable(const GetPreferencesRequestT& request = {}) const
100 {
101 return SubmitCallable(&CostOptimizationHubClient::GetPreferences, request);
102 }
103
107 template<typename GetPreferencesRequestT = Model::GetPreferencesRequest>
108 void GetPreferencesAsync(const GetPreferencesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetPreferencesRequestT& request = {}) const
109 {
110 return SubmitAsync(&CostOptimizationHubClient::GetPreferences, request, handler, context);
111 }
112
124
128 template<typename GetRecommendationRequestT = Model::GetRecommendationRequest>
129 Model::GetRecommendationOutcomeCallable GetRecommendationCallable(const GetRecommendationRequestT& request) const
130 {
131 return SubmitCallable(&CostOptimizationHubClient::GetRecommendation, request);
132 }
133
137 template<typename GetRecommendationRequestT = Model::GetRecommendationRequest>
138 void GetRecommendationAsync(const GetRecommendationRequestT& request, const GetRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
139 {
140 return SubmitAsync(&CostOptimizationHubClient::GetRecommendation, request, handler, context);
141 }
142
151
155 template<typename ListEnrollmentStatusesRequestT = Model::ListEnrollmentStatusesRequest>
156 Model::ListEnrollmentStatusesOutcomeCallable ListEnrollmentStatusesCallable(const ListEnrollmentStatusesRequestT& request = {}) const
157 {
158 return SubmitCallable(&CostOptimizationHubClient::ListEnrollmentStatuses, request);
159 }
160
164 template<typename ListEnrollmentStatusesRequestT = Model::ListEnrollmentStatusesRequest>
165 void ListEnrollmentStatusesAsync(const ListEnrollmentStatusesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListEnrollmentStatusesRequestT& request = {}) const
166 {
167 return SubmitAsync(&CostOptimizationHubClient::ListEnrollmentStatuses, request, handler, context);
168 }
169
180
184 template<typename ListRecommendationSummariesRequestT = Model::ListRecommendationSummariesRequest>
185 Model::ListRecommendationSummariesOutcomeCallable ListRecommendationSummariesCallable(const ListRecommendationSummariesRequestT& request) const
186 {
187 return SubmitCallable(&CostOptimizationHubClient::ListRecommendationSummaries, request);
188 }
189
193 template<typename ListRecommendationSummariesRequestT = Model::ListRecommendationSummariesRequest>
194 void ListRecommendationSummariesAsync(const ListRecommendationSummariesRequestT& request, const ListRecommendationSummariesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
195 {
196 return SubmitAsync(&CostOptimizationHubClient::ListRecommendationSummaries, request, handler, context);
197 }
198
205
209 template<typename ListRecommendationsRequestT = Model::ListRecommendationsRequest>
210 Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const ListRecommendationsRequestT& request = {}) const
211 {
212 return SubmitCallable(&CostOptimizationHubClient::ListRecommendations, request);
213 }
214
218 template<typename ListRecommendationsRequestT = Model::ListRecommendationsRequest>
219 void ListRecommendationsAsync(const ListRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListRecommendationsRequestT& request = {}) const
220 {
221 return SubmitAsync(&CostOptimizationHubClient::ListRecommendations, request, handler, context);
222 }
223
236
240 template<typename UpdateEnrollmentStatusRequestT = Model::UpdateEnrollmentStatusRequest>
241 Model::UpdateEnrollmentStatusOutcomeCallable UpdateEnrollmentStatusCallable(const UpdateEnrollmentStatusRequestT& request) const
242 {
243 return SubmitCallable(&CostOptimizationHubClient::UpdateEnrollmentStatus, request);
244 }
245
249 template<typename UpdateEnrollmentStatusRequestT = Model::UpdateEnrollmentStatusRequest>
250 void UpdateEnrollmentStatusAsync(const UpdateEnrollmentStatusRequestT& request, const UpdateEnrollmentStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
251 {
252 return SubmitAsync(&CostOptimizationHubClient::UpdateEnrollmentStatus, request, handler, context);
253 }
254
263
267 template<typename UpdatePreferencesRequestT = Model::UpdatePreferencesRequest>
268 Model::UpdatePreferencesOutcomeCallable UpdatePreferencesCallable(const UpdatePreferencesRequestT& request = {}) const
269 {
270 return SubmitCallable(&CostOptimizationHubClient::UpdatePreferences, request);
271 }
272
276 template<typename UpdatePreferencesRequestT = Model::UpdatePreferencesRequest>
277 void UpdatePreferencesAsync(const UpdatePreferencesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const UpdatePreferencesRequestT& request = {}) const
278 {
279 return SubmitAsync(&CostOptimizationHubClient::UpdatePreferences, request, handler, context);
280 }
281
282
283 void OverrideEndpoint(const Aws::String& endpoint);
284 std::shared_ptr<CostOptimizationHubEndpointProviderBase>& accessEndpointProvider();
285 private:
287 void init(const CostOptimizationHubClientConfiguration& clientConfiguration);
288
289 CostOptimizationHubClientConfiguration m_clientConfiguration;
290 std::shared_ptr<CostOptimizationHubEndpointProviderBase> m_endpointProvider;
291 };
292
293} // namespace CostOptimizationHub
294} // namespace Aws
CostOptimizationHubClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< CostOptimizationHubEndpointProviderBase > endpointProvider=nullptr, const Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration &clientConfiguration=Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration())
Model::UpdateEnrollmentStatusOutcomeCallable UpdateEnrollmentStatusCallable(const UpdateEnrollmentStatusRequestT &request) const
CostOptimizationHubClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
CostOptimizationHubClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< CostOptimizationHubEndpointProviderBase > endpointProvider=nullptr, const Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration &clientConfiguration=Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration())
void ListRecommendationsAsync(const ListRecommendationsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListRecommendationsRequestT &request={}) const
void UpdateEnrollmentStatusAsync(const UpdateEnrollmentStatusRequestT &request, const UpdateEnrollmentStatusResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< CostOptimizationHubEndpointProviderBase > & accessEndpointProvider()
void GetRecommendationAsync(const GetRecommendationRequestT &request, const GetRecommendationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetRecommendationOutcomeCallable GetRecommendationCallable(const GetRecommendationRequestT &request) const
virtual Model::UpdatePreferencesOutcome UpdatePreferences(const Model::UpdatePreferencesRequest &request={}) const
void UpdatePreferencesAsync(const UpdatePreferencesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const UpdatePreferencesRequestT &request={}) const
void ListRecommendationSummariesAsync(const ListRecommendationSummariesRequestT &request, const ListRecommendationSummariesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetRecommendationOutcome GetRecommendation(const Model::GetRecommendationRequest &request) const
virtual Model::GetPreferencesOutcome GetPreferences(const Model::GetPreferencesRequest &request={}) const
void GetPreferencesAsync(const GetPreferencesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetPreferencesRequestT &request={}) const
virtual Model::UpdateEnrollmentStatusOutcome UpdateEnrollmentStatus(const Model::UpdateEnrollmentStatusRequest &request) const
Model::UpdatePreferencesOutcomeCallable UpdatePreferencesCallable(const UpdatePreferencesRequestT &request={}) const
CostOptimizationHubClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ListEnrollmentStatusesOutcomeCallable ListEnrollmentStatusesCallable(const ListEnrollmentStatusesRequestT &request={}) const
CostOptimizationHubClient(const Aws::Client::ClientConfiguration &clientConfiguration)
CostOptimizationHubClientConfiguration ClientConfigurationType
virtual Model::ListEnrollmentStatusesOutcome ListEnrollmentStatuses(const Model::ListEnrollmentStatusesRequest &request={}) const
virtual Model::ListRecommendationSummariesOutcome ListRecommendationSummaries(const Model::ListRecommendationSummariesRequest &request) const
Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const ListRecommendationsRequestT &request={}) const
virtual Model::ListRecommendationsOutcome ListRecommendations(const Model::ListRecommendationsRequest &request={}) const
void OverrideEndpoint(const Aws::String &endpoint)
void ListEnrollmentStatusesAsync(const ListEnrollmentStatusesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListEnrollmentStatusesRequestT &request={}) const
Model::ListRecommendationSummariesOutcomeCallable ListRecommendationSummariesCallable(const ListRecommendationSummariesRequestT &request) const
CostOptimizationHubClient(const Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration &clientConfiguration=Aws::CostOptimizationHub::CostOptimizationHubClientConfiguration(), std::shared_ptr< CostOptimizationHubEndpointProviderBase > endpointProvider=nullptr)
Model::GetPreferencesOutcomeCallable GetPreferencesCallable(const GetPreferencesRequestT &request={}) const
std::future< ListRecommendationSummariesOutcome > ListRecommendationSummariesOutcomeCallable
std::future< ListRecommendationsOutcome > ListRecommendationsOutcomeCallable
std::future< UpdateEnrollmentStatusOutcome > UpdateEnrollmentStatusOutcomeCallable
std::future< UpdatePreferencesOutcome > UpdatePreferencesOutcomeCallable
std::future< GetRecommendationOutcome > GetRecommendationOutcomeCallable
std::future< GetPreferencesOutcome > GetPreferencesOutcomeCallable
std::future< ListEnrollmentStatusesOutcome > ListEnrollmentStatusesOutcomeCallable
std::function< void(const CostOptimizationHubClient *, const Model::GetRecommendationRequest &, const Model::GetRecommendationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRecommendationResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::UpdatePreferencesRequest &, const Model::UpdatePreferencesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdatePreferencesResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::ListRecommendationSummariesRequest &, const Model::ListRecommendationSummariesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRecommendationSummariesResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::GetPreferencesRequest &, const Model::GetPreferencesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPreferencesResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::UpdateEnrollmentStatusRequest &, const Model::UpdateEnrollmentStatusOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateEnrollmentStatusResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::ListEnrollmentStatusesRequest &, const Model::ListEnrollmentStatusesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListEnrollmentStatusesResponseReceivedHandler
std::function< void(const CostOptimizationHubClient *, const Model::ListRecommendationsRequest &, const Model::ListRecommendationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRecommendationsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String