1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/core/utils/Outcome.h>
7 #include <aws/core/auth/AWSAuthSigner.h>
8 #include <aws/core/client/CoreErrors.h>
9 #include <aws/core/client/RetryStrategy.h>
10 #include <aws/core/http/HttpClient.h>
11 #include <aws/core/http/HttpResponse.h>
12 #include <aws/core/http/HttpClientFactory.h>
13 #include <aws/core/auth/AWSCredentialsProviderChain.h>
14 #include <aws/core/utils/json/JsonSerializer.h>
15 #include <aws/core/utils/memory/stl/AWSStringStream.h>
16 #include <aws/core/utils/threading/Executor.h>
17 #include <aws/core/utils/DNS.h>
18 #include <aws/core/utils/logging/LogMacros.h>
19 
20 #include <aws/ce/CostExplorerClient.h>
21 #include <aws/ce/CostExplorerEndpoint.h>
22 #include <aws/ce/CostExplorerErrorMarshaller.h>
23 #include <aws/ce/model/CreateAnomalyMonitorRequest.h>
24 #include <aws/ce/model/CreateAnomalySubscriptionRequest.h>
25 #include <aws/ce/model/CreateCostCategoryDefinitionRequest.h>
26 #include <aws/ce/model/DeleteAnomalyMonitorRequest.h>
27 #include <aws/ce/model/DeleteAnomalySubscriptionRequest.h>
28 #include <aws/ce/model/DeleteCostCategoryDefinitionRequest.h>
29 #include <aws/ce/model/DescribeCostCategoryDefinitionRequest.h>
30 #include <aws/ce/model/GetAnomaliesRequest.h>
31 #include <aws/ce/model/GetAnomalyMonitorsRequest.h>
32 #include <aws/ce/model/GetAnomalySubscriptionsRequest.h>
33 #include <aws/ce/model/GetCostAndUsageRequest.h>
34 #include <aws/ce/model/GetCostAndUsageWithResourcesRequest.h>
35 #include <aws/ce/model/GetCostCategoriesRequest.h>
36 #include <aws/ce/model/GetCostForecastRequest.h>
37 #include <aws/ce/model/GetDimensionValuesRequest.h>
38 #include <aws/ce/model/GetReservationCoverageRequest.h>
39 #include <aws/ce/model/GetReservationPurchaseRecommendationRequest.h>
40 #include <aws/ce/model/GetReservationUtilizationRequest.h>
41 #include <aws/ce/model/GetRightsizingRecommendationRequest.h>
42 #include <aws/ce/model/GetSavingsPlansCoverageRequest.h>
43 #include <aws/ce/model/GetSavingsPlansPurchaseRecommendationRequest.h>
44 #include <aws/ce/model/GetSavingsPlansUtilizationRequest.h>
45 #include <aws/ce/model/GetSavingsPlansUtilizationDetailsRequest.h>
46 #include <aws/ce/model/GetTagsRequest.h>
47 #include <aws/ce/model/GetUsageForecastRequest.h>
48 #include <aws/ce/model/ListCostCategoryDefinitionsRequest.h>
49 #include <aws/ce/model/ProvideAnomalyFeedbackRequest.h>
50 #include <aws/ce/model/UpdateAnomalyMonitorRequest.h>
51 #include <aws/ce/model/UpdateAnomalySubscriptionRequest.h>
52 #include <aws/ce/model/UpdateCostCategoryDefinitionRequest.h>
53 
54 using namespace Aws;
55 using namespace Aws::Auth;
56 using namespace Aws::Client;
57 using namespace Aws::CostExplorer;
58 using namespace Aws::CostExplorer::Model;
59 using namespace Aws::Http;
60 using namespace Aws::Utils::Json;
61 
62 static const char* SERVICE_NAME = "ce";
63 static const char* ALLOCATION_TAG = "CostExplorerClient";
64 
65 
CostExplorerClient(const Client::ClientConfiguration & clientConfiguration)66 CostExplorerClient::CostExplorerClient(const Client::ClientConfiguration& clientConfiguration) :
67   BASECLASS(clientConfiguration,
68     Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
69         SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
70     Aws::MakeShared<CostExplorerErrorMarshaller>(ALLOCATION_TAG)),
71     m_executor(clientConfiguration.executor)
72 {
73   init(clientConfiguration);
74 }
75 
CostExplorerClient(const AWSCredentials & credentials,const Client::ClientConfiguration & clientConfiguration)76 CostExplorerClient::CostExplorerClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
77   BASECLASS(clientConfiguration,
78     Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
79          SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
80     Aws::MakeShared<CostExplorerErrorMarshaller>(ALLOCATION_TAG)),
81     m_executor(clientConfiguration.executor)
82 {
83   init(clientConfiguration);
84 }
85 
CostExplorerClient(const std::shared_ptr<AWSCredentialsProvider> & credentialsProvider,const Client::ClientConfiguration & clientConfiguration)86 CostExplorerClient::CostExplorerClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
87   const Client::ClientConfiguration& clientConfiguration) :
88   BASECLASS(clientConfiguration,
89     Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
90          SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
91     Aws::MakeShared<CostExplorerErrorMarshaller>(ALLOCATION_TAG)),
92     m_executor(clientConfiguration.executor)
93 {
94   init(clientConfiguration);
95 }
96 
~CostExplorerClient()97 CostExplorerClient::~CostExplorerClient()
98 {
99 }
100 
init(const Client::ClientConfiguration & config)101 void CostExplorerClient::init(const Client::ClientConfiguration& config)
102 {
103   SetServiceClientName("Cost Explorer");
104   m_configScheme = SchemeMapper::ToString(config.scheme);
105   if (config.endpointOverride.empty())
106   {
107       m_uri = m_configScheme + "://" + CostExplorerEndpoint::ForRegion(config.region, config.useDualStack);
108   }
109   else
110   {
111       OverrideEndpoint(config.endpointOverride);
112   }
113 }
114 
OverrideEndpoint(const Aws::String & endpoint)115 void CostExplorerClient::OverrideEndpoint(const Aws::String& endpoint)
116 {
117   if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
118   {
119       m_uri = endpoint;
120   }
121   else
122   {
123       m_uri = m_configScheme + "://" + endpoint;
124   }
125 }
126 
CreateAnomalyMonitor(const CreateAnomalyMonitorRequest & request) const127 CreateAnomalyMonitorOutcome CostExplorerClient::CreateAnomalyMonitor(const CreateAnomalyMonitorRequest& request) const
128 {
129   Aws::Http::URI uri = m_uri;
130   return CreateAnomalyMonitorOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
131 }
132 
CreateAnomalyMonitorCallable(const CreateAnomalyMonitorRequest & request) const133 CreateAnomalyMonitorOutcomeCallable CostExplorerClient::CreateAnomalyMonitorCallable(const CreateAnomalyMonitorRequest& request) const
134 {
135   auto task = Aws::MakeShared< std::packaged_task< CreateAnomalyMonitorOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateAnomalyMonitor(request); } );
136   auto packagedFunction = [task]() { (*task)(); };
137   m_executor->Submit(packagedFunction);
138   return task->get_future();
139 }
140 
CreateAnomalyMonitorAsync(const CreateAnomalyMonitorRequest & request,const CreateAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const141 void CostExplorerClient::CreateAnomalyMonitorAsync(const CreateAnomalyMonitorRequest& request, const CreateAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
142 {
143   m_executor->Submit( [this, request, handler, context](){ this->CreateAnomalyMonitorAsyncHelper( request, handler, context ); } );
144 }
145 
CreateAnomalyMonitorAsyncHelper(const CreateAnomalyMonitorRequest & request,const CreateAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const146 void CostExplorerClient::CreateAnomalyMonitorAsyncHelper(const CreateAnomalyMonitorRequest& request, const CreateAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
147 {
148   handler(this, request, CreateAnomalyMonitor(request), context);
149 }
150 
CreateAnomalySubscription(const CreateAnomalySubscriptionRequest & request) const151 CreateAnomalySubscriptionOutcome CostExplorerClient::CreateAnomalySubscription(const CreateAnomalySubscriptionRequest& request) const
152 {
153   Aws::Http::URI uri = m_uri;
154   return CreateAnomalySubscriptionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
155 }
156 
CreateAnomalySubscriptionCallable(const CreateAnomalySubscriptionRequest & request) const157 CreateAnomalySubscriptionOutcomeCallable CostExplorerClient::CreateAnomalySubscriptionCallable(const CreateAnomalySubscriptionRequest& request) const
158 {
159   auto task = Aws::MakeShared< std::packaged_task< CreateAnomalySubscriptionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateAnomalySubscription(request); } );
160   auto packagedFunction = [task]() { (*task)(); };
161   m_executor->Submit(packagedFunction);
162   return task->get_future();
163 }
164 
CreateAnomalySubscriptionAsync(const CreateAnomalySubscriptionRequest & request,const CreateAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const165 void CostExplorerClient::CreateAnomalySubscriptionAsync(const CreateAnomalySubscriptionRequest& request, const CreateAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
166 {
167   m_executor->Submit( [this, request, handler, context](){ this->CreateAnomalySubscriptionAsyncHelper( request, handler, context ); } );
168 }
169 
CreateAnomalySubscriptionAsyncHelper(const CreateAnomalySubscriptionRequest & request,const CreateAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const170 void CostExplorerClient::CreateAnomalySubscriptionAsyncHelper(const CreateAnomalySubscriptionRequest& request, const CreateAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
171 {
172   handler(this, request, CreateAnomalySubscription(request), context);
173 }
174 
CreateCostCategoryDefinition(const CreateCostCategoryDefinitionRequest & request) const175 CreateCostCategoryDefinitionOutcome CostExplorerClient::CreateCostCategoryDefinition(const CreateCostCategoryDefinitionRequest& request) const
176 {
177   Aws::Http::URI uri = m_uri;
178   return CreateCostCategoryDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
179 }
180 
CreateCostCategoryDefinitionCallable(const CreateCostCategoryDefinitionRequest & request) const181 CreateCostCategoryDefinitionOutcomeCallable CostExplorerClient::CreateCostCategoryDefinitionCallable(const CreateCostCategoryDefinitionRequest& request) const
182 {
183   auto task = Aws::MakeShared< std::packaged_task< CreateCostCategoryDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateCostCategoryDefinition(request); } );
184   auto packagedFunction = [task]() { (*task)(); };
185   m_executor->Submit(packagedFunction);
186   return task->get_future();
187 }
188 
CreateCostCategoryDefinitionAsync(const CreateCostCategoryDefinitionRequest & request,const CreateCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const189 void CostExplorerClient::CreateCostCategoryDefinitionAsync(const CreateCostCategoryDefinitionRequest& request, const CreateCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
190 {
191   m_executor->Submit( [this, request, handler, context](){ this->CreateCostCategoryDefinitionAsyncHelper( request, handler, context ); } );
192 }
193 
CreateCostCategoryDefinitionAsyncHelper(const CreateCostCategoryDefinitionRequest & request,const CreateCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const194 void CostExplorerClient::CreateCostCategoryDefinitionAsyncHelper(const CreateCostCategoryDefinitionRequest& request, const CreateCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
195 {
196   handler(this, request, CreateCostCategoryDefinition(request), context);
197 }
198 
DeleteAnomalyMonitor(const DeleteAnomalyMonitorRequest & request) const199 DeleteAnomalyMonitorOutcome CostExplorerClient::DeleteAnomalyMonitor(const DeleteAnomalyMonitorRequest& request) const
200 {
201   Aws::Http::URI uri = m_uri;
202   return DeleteAnomalyMonitorOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
203 }
204 
DeleteAnomalyMonitorCallable(const DeleteAnomalyMonitorRequest & request) const205 DeleteAnomalyMonitorOutcomeCallable CostExplorerClient::DeleteAnomalyMonitorCallable(const DeleteAnomalyMonitorRequest& request) const
206 {
207   auto task = Aws::MakeShared< std::packaged_task< DeleteAnomalyMonitorOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteAnomalyMonitor(request); } );
208   auto packagedFunction = [task]() { (*task)(); };
209   m_executor->Submit(packagedFunction);
210   return task->get_future();
211 }
212 
DeleteAnomalyMonitorAsync(const DeleteAnomalyMonitorRequest & request,const DeleteAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const213 void CostExplorerClient::DeleteAnomalyMonitorAsync(const DeleteAnomalyMonitorRequest& request, const DeleteAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
214 {
215   m_executor->Submit( [this, request, handler, context](){ this->DeleteAnomalyMonitorAsyncHelper( request, handler, context ); } );
216 }
217 
DeleteAnomalyMonitorAsyncHelper(const DeleteAnomalyMonitorRequest & request,const DeleteAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const218 void CostExplorerClient::DeleteAnomalyMonitorAsyncHelper(const DeleteAnomalyMonitorRequest& request, const DeleteAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
219 {
220   handler(this, request, DeleteAnomalyMonitor(request), context);
221 }
222 
DeleteAnomalySubscription(const DeleteAnomalySubscriptionRequest & request) const223 DeleteAnomalySubscriptionOutcome CostExplorerClient::DeleteAnomalySubscription(const DeleteAnomalySubscriptionRequest& request) const
224 {
225   Aws::Http::URI uri = m_uri;
226   return DeleteAnomalySubscriptionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
227 }
228 
DeleteAnomalySubscriptionCallable(const DeleteAnomalySubscriptionRequest & request) const229 DeleteAnomalySubscriptionOutcomeCallable CostExplorerClient::DeleteAnomalySubscriptionCallable(const DeleteAnomalySubscriptionRequest& request) const
230 {
231   auto task = Aws::MakeShared< std::packaged_task< DeleteAnomalySubscriptionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteAnomalySubscription(request); } );
232   auto packagedFunction = [task]() { (*task)(); };
233   m_executor->Submit(packagedFunction);
234   return task->get_future();
235 }
236 
DeleteAnomalySubscriptionAsync(const DeleteAnomalySubscriptionRequest & request,const DeleteAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const237 void CostExplorerClient::DeleteAnomalySubscriptionAsync(const DeleteAnomalySubscriptionRequest& request, const DeleteAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
238 {
239   m_executor->Submit( [this, request, handler, context](){ this->DeleteAnomalySubscriptionAsyncHelper( request, handler, context ); } );
240 }
241 
DeleteAnomalySubscriptionAsyncHelper(const DeleteAnomalySubscriptionRequest & request,const DeleteAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const242 void CostExplorerClient::DeleteAnomalySubscriptionAsyncHelper(const DeleteAnomalySubscriptionRequest& request, const DeleteAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
243 {
244   handler(this, request, DeleteAnomalySubscription(request), context);
245 }
246 
DeleteCostCategoryDefinition(const DeleteCostCategoryDefinitionRequest & request) const247 DeleteCostCategoryDefinitionOutcome CostExplorerClient::DeleteCostCategoryDefinition(const DeleteCostCategoryDefinitionRequest& request) const
248 {
249   Aws::Http::URI uri = m_uri;
250   return DeleteCostCategoryDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
251 }
252 
DeleteCostCategoryDefinitionCallable(const DeleteCostCategoryDefinitionRequest & request) const253 DeleteCostCategoryDefinitionOutcomeCallable CostExplorerClient::DeleteCostCategoryDefinitionCallable(const DeleteCostCategoryDefinitionRequest& request) const
254 {
255   auto task = Aws::MakeShared< std::packaged_task< DeleteCostCategoryDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteCostCategoryDefinition(request); } );
256   auto packagedFunction = [task]() { (*task)(); };
257   m_executor->Submit(packagedFunction);
258   return task->get_future();
259 }
260 
DeleteCostCategoryDefinitionAsync(const DeleteCostCategoryDefinitionRequest & request,const DeleteCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const261 void CostExplorerClient::DeleteCostCategoryDefinitionAsync(const DeleteCostCategoryDefinitionRequest& request, const DeleteCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
262 {
263   m_executor->Submit( [this, request, handler, context](){ this->DeleteCostCategoryDefinitionAsyncHelper( request, handler, context ); } );
264 }
265 
DeleteCostCategoryDefinitionAsyncHelper(const DeleteCostCategoryDefinitionRequest & request,const DeleteCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const266 void CostExplorerClient::DeleteCostCategoryDefinitionAsyncHelper(const DeleteCostCategoryDefinitionRequest& request, const DeleteCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
267 {
268   handler(this, request, DeleteCostCategoryDefinition(request), context);
269 }
270 
DescribeCostCategoryDefinition(const DescribeCostCategoryDefinitionRequest & request) const271 DescribeCostCategoryDefinitionOutcome CostExplorerClient::DescribeCostCategoryDefinition(const DescribeCostCategoryDefinitionRequest& request) const
272 {
273   Aws::Http::URI uri = m_uri;
274   return DescribeCostCategoryDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
275 }
276 
DescribeCostCategoryDefinitionCallable(const DescribeCostCategoryDefinitionRequest & request) const277 DescribeCostCategoryDefinitionOutcomeCallable CostExplorerClient::DescribeCostCategoryDefinitionCallable(const DescribeCostCategoryDefinitionRequest& request) const
278 {
279   auto task = Aws::MakeShared< std::packaged_task< DescribeCostCategoryDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeCostCategoryDefinition(request); } );
280   auto packagedFunction = [task]() { (*task)(); };
281   m_executor->Submit(packagedFunction);
282   return task->get_future();
283 }
284 
DescribeCostCategoryDefinitionAsync(const DescribeCostCategoryDefinitionRequest & request,const DescribeCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const285 void CostExplorerClient::DescribeCostCategoryDefinitionAsync(const DescribeCostCategoryDefinitionRequest& request, const DescribeCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
286 {
287   m_executor->Submit( [this, request, handler, context](){ this->DescribeCostCategoryDefinitionAsyncHelper( request, handler, context ); } );
288 }
289 
DescribeCostCategoryDefinitionAsyncHelper(const DescribeCostCategoryDefinitionRequest & request,const DescribeCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const290 void CostExplorerClient::DescribeCostCategoryDefinitionAsyncHelper(const DescribeCostCategoryDefinitionRequest& request, const DescribeCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
291 {
292   handler(this, request, DescribeCostCategoryDefinition(request), context);
293 }
294 
GetAnomalies(const GetAnomaliesRequest & request) const295 GetAnomaliesOutcome CostExplorerClient::GetAnomalies(const GetAnomaliesRequest& request) const
296 {
297   Aws::Http::URI uri = m_uri;
298   return GetAnomaliesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
299 }
300 
GetAnomaliesCallable(const GetAnomaliesRequest & request) const301 GetAnomaliesOutcomeCallable CostExplorerClient::GetAnomaliesCallable(const GetAnomaliesRequest& request) const
302 {
303   auto task = Aws::MakeShared< std::packaged_task< GetAnomaliesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAnomalies(request); } );
304   auto packagedFunction = [task]() { (*task)(); };
305   m_executor->Submit(packagedFunction);
306   return task->get_future();
307 }
308 
GetAnomaliesAsync(const GetAnomaliesRequest & request,const GetAnomaliesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const309 void CostExplorerClient::GetAnomaliesAsync(const GetAnomaliesRequest& request, const GetAnomaliesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
310 {
311   m_executor->Submit( [this, request, handler, context](){ this->GetAnomaliesAsyncHelper( request, handler, context ); } );
312 }
313 
GetAnomaliesAsyncHelper(const GetAnomaliesRequest & request,const GetAnomaliesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const314 void CostExplorerClient::GetAnomaliesAsyncHelper(const GetAnomaliesRequest& request, const GetAnomaliesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
315 {
316   handler(this, request, GetAnomalies(request), context);
317 }
318 
GetAnomalyMonitors(const GetAnomalyMonitorsRequest & request) const319 GetAnomalyMonitorsOutcome CostExplorerClient::GetAnomalyMonitors(const GetAnomalyMonitorsRequest& request) const
320 {
321   Aws::Http::URI uri = m_uri;
322   return GetAnomalyMonitorsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
323 }
324 
GetAnomalyMonitorsCallable(const GetAnomalyMonitorsRequest & request) const325 GetAnomalyMonitorsOutcomeCallable CostExplorerClient::GetAnomalyMonitorsCallable(const GetAnomalyMonitorsRequest& request) const
326 {
327   auto task = Aws::MakeShared< std::packaged_task< GetAnomalyMonitorsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAnomalyMonitors(request); } );
328   auto packagedFunction = [task]() { (*task)(); };
329   m_executor->Submit(packagedFunction);
330   return task->get_future();
331 }
332 
GetAnomalyMonitorsAsync(const GetAnomalyMonitorsRequest & request,const GetAnomalyMonitorsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const333 void CostExplorerClient::GetAnomalyMonitorsAsync(const GetAnomalyMonitorsRequest& request, const GetAnomalyMonitorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
334 {
335   m_executor->Submit( [this, request, handler, context](){ this->GetAnomalyMonitorsAsyncHelper( request, handler, context ); } );
336 }
337 
GetAnomalyMonitorsAsyncHelper(const GetAnomalyMonitorsRequest & request,const GetAnomalyMonitorsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const338 void CostExplorerClient::GetAnomalyMonitorsAsyncHelper(const GetAnomalyMonitorsRequest& request, const GetAnomalyMonitorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
339 {
340   handler(this, request, GetAnomalyMonitors(request), context);
341 }
342 
GetAnomalySubscriptions(const GetAnomalySubscriptionsRequest & request) const343 GetAnomalySubscriptionsOutcome CostExplorerClient::GetAnomalySubscriptions(const GetAnomalySubscriptionsRequest& request) const
344 {
345   Aws::Http::URI uri = m_uri;
346   return GetAnomalySubscriptionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
347 }
348 
GetAnomalySubscriptionsCallable(const GetAnomalySubscriptionsRequest & request) const349 GetAnomalySubscriptionsOutcomeCallable CostExplorerClient::GetAnomalySubscriptionsCallable(const GetAnomalySubscriptionsRequest& request) const
350 {
351   auto task = Aws::MakeShared< std::packaged_task< GetAnomalySubscriptionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAnomalySubscriptions(request); } );
352   auto packagedFunction = [task]() { (*task)(); };
353   m_executor->Submit(packagedFunction);
354   return task->get_future();
355 }
356 
GetAnomalySubscriptionsAsync(const GetAnomalySubscriptionsRequest & request,const GetAnomalySubscriptionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const357 void CostExplorerClient::GetAnomalySubscriptionsAsync(const GetAnomalySubscriptionsRequest& request, const GetAnomalySubscriptionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
358 {
359   m_executor->Submit( [this, request, handler, context](){ this->GetAnomalySubscriptionsAsyncHelper( request, handler, context ); } );
360 }
361 
GetAnomalySubscriptionsAsyncHelper(const GetAnomalySubscriptionsRequest & request,const GetAnomalySubscriptionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const362 void CostExplorerClient::GetAnomalySubscriptionsAsyncHelper(const GetAnomalySubscriptionsRequest& request, const GetAnomalySubscriptionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
363 {
364   handler(this, request, GetAnomalySubscriptions(request), context);
365 }
366 
GetCostAndUsage(const GetCostAndUsageRequest & request) const367 GetCostAndUsageOutcome CostExplorerClient::GetCostAndUsage(const GetCostAndUsageRequest& request) const
368 {
369   Aws::Http::URI uri = m_uri;
370   return GetCostAndUsageOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
371 }
372 
GetCostAndUsageCallable(const GetCostAndUsageRequest & request) const373 GetCostAndUsageOutcomeCallable CostExplorerClient::GetCostAndUsageCallable(const GetCostAndUsageRequest& request) const
374 {
375   auto task = Aws::MakeShared< std::packaged_task< GetCostAndUsageOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCostAndUsage(request); } );
376   auto packagedFunction = [task]() { (*task)(); };
377   m_executor->Submit(packagedFunction);
378   return task->get_future();
379 }
380 
GetCostAndUsageAsync(const GetCostAndUsageRequest & request,const GetCostAndUsageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const381 void CostExplorerClient::GetCostAndUsageAsync(const GetCostAndUsageRequest& request, const GetCostAndUsageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
382 {
383   m_executor->Submit( [this, request, handler, context](){ this->GetCostAndUsageAsyncHelper( request, handler, context ); } );
384 }
385 
GetCostAndUsageAsyncHelper(const GetCostAndUsageRequest & request,const GetCostAndUsageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const386 void CostExplorerClient::GetCostAndUsageAsyncHelper(const GetCostAndUsageRequest& request, const GetCostAndUsageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
387 {
388   handler(this, request, GetCostAndUsage(request), context);
389 }
390 
GetCostAndUsageWithResources(const GetCostAndUsageWithResourcesRequest & request) const391 GetCostAndUsageWithResourcesOutcome CostExplorerClient::GetCostAndUsageWithResources(const GetCostAndUsageWithResourcesRequest& request) const
392 {
393   Aws::Http::URI uri = m_uri;
394   return GetCostAndUsageWithResourcesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
395 }
396 
GetCostAndUsageWithResourcesCallable(const GetCostAndUsageWithResourcesRequest & request) const397 GetCostAndUsageWithResourcesOutcomeCallable CostExplorerClient::GetCostAndUsageWithResourcesCallable(const GetCostAndUsageWithResourcesRequest& request) const
398 {
399   auto task = Aws::MakeShared< std::packaged_task< GetCostAndUsageWithResourcesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCostAndUsageWithResources(request); } );
400   auto packagedFunction = [task]() { (*task)(); };
401   m_executor->Submit(packagedFunction);
402   return task->get_future();
403 }
404 
GetCostAndUsageWithResourcesAsync(const GetCostAndUsageWithResourcesRequest & request,const GetCostAndUsageWithResourcesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const405 void CostExplorerClient::GetCostAndUsageWithResourcesAsync(const GetCostAndUsageWithResourcesRequest& request, const GetCostAndUsageWithResourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
406 {
407   m_executor->Submit( [this, request, handler, context](){ this->GetCostAndUsageWithResourcesAsyncHelper( request, handler, context ); } );
408 }
409 
GetCostAndUsageWithResourcesAsyncHelper(const GetCostAndUsageWithResourcesRequest & request,const GetCostAndUsageWithResourcesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const410 void CostExplorerClient::GetCostAndUsageWithResourcesAsyncHelper(const GetCostAndUsageWithResourcesRequest& request, const GetCostAndUsageWithResourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
411 {
412   handler(this, request, GetCostAndUsageWithResources(request), context);
413 }
414 
GetCostCategories(const GetCostCategoriesRequest & request) const415 GetCostCategoriesOutcome CostExplorerClient::GetCostCategories(const GetCostCategoriesRequest& request) const
416 {
417   Aws::Http::URI uri = m_uri;
418   return GetCostCategoriesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
419 }
420 
GetCostCategoriesCallable(const GetCostCategoriesRequest & request) const421 GetCostCategoriesOutcomeCallable CostExplorerClient::GetCostCategoriesCallable(const GetCostCategoriesRequest& request) const
422 {
423   auto task = Aws::MakeShared< std::packaged_task< GetCostCategoriesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCostCategories(request); } );
424   auto packagedFunction = [task]() { (*task)(); };
425   m_executor->Submit(packagedFunction);
426   return task->get_future();
427 }
428 
GetCostCategoriesAsync(const GetCostCategoriesRequest & request,const GetCostCategoriesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const429 void CostExplorerClient::GetCostCategoriesAsync(const GetCostCategoriesRequest& request, const GetCostCategoriesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
430 {
431   m_executor->Submit( [this, request, handler, context](){ this->GetCostCategoriesAsyncHelper( request, handler, context ); } );
432 }
433 
GetCostCategoriesAsyncHelper(const GetCostCategoriesRequest & request,const GetCostCategoriesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const434 void CostExplorerClient::GetCostCategoriesAsyncHelper(const GetCostCategoriesRequest& request, const GetCostCategoriesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
435 {
436   handler(this, request, GetCostCategories(request), context);
437 }
438 
GetCostForecast(const GetCostForecastRequest & request) const439 GetCostForecastOutcome CostExplorerClient::GetCostForecast(const GetCostForecastRequest& request) const
440 {
441   Aws::Http::URI uri = m_uri;
442   return GetCostForecastOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
443 }
444 
GetCostForecastCallable(const GetCostForecastRequest & request) const445 GetCostForecastOutcomeCallable CostExplorerClient::GetCostForecastCallable(const GetCostForecastRequest& request) const
446 {
447   auto task = Aws::MakeShared< std::packaged_task< GetCostForecastOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCostForecast(request); } );
448   auto packagedFunction = [task]() { (*task)(); };
449   m_executor->Submit(packagedFunction);
450   return task->get_future();
451 }
452 
GetCostForecastAsync(const GetCostForecastRequest & request,const GetCostForecastResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const453 void CostExplorerClient::GetCostForecastAsync(const GetCostForecastRequest& request, const GetCostForecastResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
454 {
455   m_executor->Submit( [this, request, handler, context](){ this->GetCostForecastAsyncHelper( request, handler, context ); } );
456 }
457 
GetCostForecastAsyncHelper(const GetCostForecastRequest & request,const GetCostForecastResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const458 void CostExplorerClient::GetCostForecastAsyncHelper(const GetCostForecastRequest& request, const GetCostForecastResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
459 {
460   handler(this, request, GetCostForecast(request), context);
461 }
462 
GetDimensionValues(const GetDimensionValuesRequest & request) const463 GetDimensionValuesOutcome CostExplorerClient::GetDimensionValues(const GetDimensionValuesRequest& request) const
464 {
465   Aws::Http::URI uri = m_uri;
466   return GetDimensionValuesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
467 }
468 
GetDimensionValuesCallable(const GetDimensionValuesRequest & request) const469 GetDimensionValuesOutcomeCallable CostExplorerClient::GetDimensionValuesCallable(const GetDimensionValuesRequest& request) const
470 {
471   auto task = Aws::MakeShared< std::packaged_task< GetDimensionValuesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDimensionValues(request); } );
472   auto packagedFunction = [task]() { (*task)(); };
473   m_executor->Submit(packagedFunction);
474   return task->get_future();
475 }
476 
GetDimensionValuesAsync(const GetDimensionValuesRequest & request,const GetDimensionValuesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const477 void CostExplorerClient::GetDimensionValuesAsync(const GetDimensionValuesRequest& request, const GetDimensionValuesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
478 {
479   m_executor->Submit( [this, request, handler, context](){ this->GetDimensionValuesAsyncHelper( request, handler, context ); } );
480 }
481 
GetDimensionValuesAsyncHelper(const GetDimensionValuesRequest & request,const GetDimensionValuesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const482 void CostExplorerClient::GetDimensionValuesAsyncHelper(const GetDimensionValuesRequest& request, const GetDimensionValuesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
483 {
484   handler(this, request, GetDimensionValues(request), context);
485 }
486 
GetReservationCoverage(const GetReservationCoverageRequest & request) const487 GetReservationCoverageOutcome CostExplorerClient::GetReservationCoverage(const GetReservationCoverageRequest& request) const
488 {
489   Aws::Http::URI uri = m_uri;
490   return GetReservationCoverageOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
491 }
492 
GetReservationCoverageCallable(const GetReservationCoverageRequest & request) const493 GetReservationCoverageOutcomeCallable CostExplorerClient::GetReservationCoverageCallable(const GetReservationCoverageRequest& request) const
494 {
495   auto task = Aws::MakeShared< std::packaged_task< GetReservationCoverageOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetReservationCoverage(request); } );
496   auto packagedFunction = [task]() { (*task)(); };
497   m_executor->Submit(packagedFunction);
498   return task->get_future();
499 }
500 
GetReservationCoverageAsync(const GetReservationCoverageRequest & request,const GetReservationCoverageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const501 void CostExplorerClient::GetReservationCoverageAsync(const GetReservationCoverageRequest& request, const GetReservationCoverageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
502 {
503   m_executor->Submit( [this, request, handler, context](){ this->GetReservationCoverageAsyncHelper( request, handler, context ); } );
504 }
505 
GetReservationCoverageAsyncHelper(const GetReservationCoverageRequest & request,const GetReservationCoverageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const506 void CostExplorerClient::GetReservationCoverageAsyncHelper(const GetReservationCoverageRequest& request, const GetReservationCoverageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
507 {
508   handler(this, request, GetReservationCoverage(request), context);
509 }
510 
GetReservationPurchaseRecommendation(const GetReservationPurchaseRecommendationRequest & request) const511 GetReservationPurchaseRecommendationOutcome CostExplorerClient::GetReservationPurchaseRecommendation(const GetReservationPurchaseRecommendationRequest& request) const
512 {
513   Aws::Http::URI uri = m_uri;
514   return GetReservationPurchaseRecommendationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
515 }
516 
GetReservationPurchaseRecommendationCallable(const GetReservationPurchaseRecommendationRequest & request) const517 GetReservationPurchaseRecommendationOutcomeCallable CostExplorerClient::GetReservationPurchaseRecommendationCallable(const GetReservationPurchaseRecommendationRequest& request) const
518 {
519   auto task = Aws::MakeShared< std::packaged_task< GetReservationPurchaseRecommendationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetReservationPurchaseRecommendation(request); } );
520   auto packagedFunction = [task]() { (*task)(); };
521   m_executor->Submit(packagedFunction);
522   return task->get_future();
523 }
524 
GetReservationPurchaseRecommendationAsync(const GetReservationPurchaseRecommendationRequest & request,const GetReservationPurchaseRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const525 void CostExplorerClient::GetReservationPurchaseRecommendationAsync(const GetReservationPurchaseRecommendationRequest& request, const GetReservationPurchaseRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
526 {
527   m_executor->Submit( [this, request, handler, context](){ this->GetReservationPurchaseRecommendationAsyncHelper( request, handler, context ); } );
528 }
529 
GetReservationPurchaseRecommendationAsyncHelper(const GetReservationPurchaseRecommendationRequest & request,const GetReservationPurchaseRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const530 void CostExplorerClient::GetReservationPurchaseRecommendationAsyncHelper(const GetReservationPurchaseRecommendationRequest& request, const GetReservationPurchaseRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
531 {
532   handler(this, request, GetReservationPurchaseRecommendation(request), context);
533 }
534 
GetReservationUtilization(const GetReservationUtilizationRequest & request) const535 GetReservationUtilizationOutcome CostExplorerClient::GetReservationUtilization(const GetReservationUtilizationRequest& request) const
536 {
537   Aws::Http::URI uri = m_uri;
538   return GetReservationUtilizationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
539 }
540 
GetReservationUtilizationCallable(const GetReservationUtilizationRequest & request) const541 GetReservationUtilizationOutcomeCallable CostExplorerClient::GetReservationUtilizationCallable(const GetReservationUtilizationRequest& request) const
542 {
543   auto task = Aws::MakeShared< std::packaged_task< GetReservationUtilizationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetReservationUtilization(request); } );
544   auto packagedFunction = [task]() { (*task)(); };
545   m_executor->Submit(packagedFunction);
546   return task->get_future();
547 }
548 
GetReservationUtilizationAsync(const GetReservationUtilizationRequest & request,const GetReservationUtilizationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const549 void CostExplorerClient::GetReservationUtilizationAsync(const GetReservationUtilizationRequest& request, const GetReservationUtilizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
550 {
551   m_executor->Submit( [this, request, handler, context](){ this->GetReservationUtilizationAsyncHelper( request, handler, context ); } );
552 }
553 
GetReservationUtilizationAsyncHelper(const GetReservationUtilizationRequest & request,const GetReservationUtilizationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const554 void CostExplorerClient::GetReservationUtilizationAsyncHelper(const GetReservationUtilizationRequest& request, const GetReservationUtilizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
555 {
556   handler(this, request, GetReservationUtilization(request), context);
557 }
558 
GetRightsizingRecommendation(const GetRightsizingRecommendationRequest & request) const559 GetRightsizingRecommendationOutcome CostExplorerClient::GetRightsizingRecommendation(const GetRightsizingRecommendationRequest& request) const
560 {
561   Aws::Http::URI uri = m_uri;
562   return GetRightsizingRecommendationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
563 }
564 
GetRightsizingRecommendationCallable(const GetRightsizingRecommendationRequest & request) const565 GetRightsizingRecommendationOutcomeCallable CostExplorerClient::GetRightsizingRecommendationCallable(const GetRightsizingRecommendationRequest& request) const
566 {
567   auto task = Aws::MakeShared< std::packaged_task< GetRightsizingRecommendationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetRightsizingRecommendation(request); } );
568   auto packagedFunction = [task]() { (*task)(); };
569   m_executor->Submit(packagedFunction);
570   return task->get_future();
571 }
572 
GetRightsizingRecommendationAsync(const GetRightsizingRecommendationRequest & request,const GetRightsizingRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const573 void CostExplorerClient::GetRightsizingRecommendationAsync(const GetRightsizingRecommendationRequest& request, const GetRightsizingRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
574 {
575   m_executor->Submit( [this, request, handler, context](){ this->GetRightsizingRecommendationAsyncHelper( request, handler, context ); } );
576 }
577 
GetRightsizingRecommendationAsyncHelper(const GetRightsizingRecommendationRequest & request,const GetRightsizingRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const578 void CostExplorerClient::GetRightsizingRecommendationAsyncHelper(const GetRightsizingRecommendationRequest& request, const GetRightsizingRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
579 {
580   handler(this, request, GetRightsizingRecommendation(request), context);
581 }
582 
GetSavingsPlansCoverage(const GetSavingsPlansCoverageRequest & request) const583 GetSavingsPlansCoverageOutcome CostExplorerClient::GetSavingsPlansCoverage(const GetSavingsPlansCoverageRequest& request) const
584 {
585   Aws::Http::URI uri = m_uri;
586   return GetSavingsPlansCoverageOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
587 }
588 
GetSavingsPlansCoverageCallable(const GetSavingsPlansCoverageRequest & request) const589 GetSavingsPlansCoverageOutcomeCallable CostExplorerClient::GetSavingsPlansCoverageCallable(const GetSavingsPlansCoverageRequest& request) const
590 {
591   auto task = Aws::MakeShared< std::packaged_task< GetSavingsPlansCoverageOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSavingsPlansCoverage(request); } );
592   auto packagedFunction = [task]() { (*task)(); };
593   m_executor->Submit(packagedFunction);
594   return task->get_future();
595 }
596 
GetSavingsPlansCoverageAsync(const GetSavingsPlansCoverageRequest & request,const GetSavingsPlansCoverageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const597 void CostExplorerClient::GetSavingsPlansCoverageAsync(const GetSavingsPlansCoverageRequest& request, const GetSavingsPlansCoverageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
598 {
599   m_executor->Submit( [this, request, handler, context](){ this->GetSavingsPlansCoverageAsyncHelper( request, handler, context ); } );
600 }
601 
GetSavingsPlansCoverageAsyncHelper(const GetSavingsPlansCoverageRequest & request,const GetSavingsPlansCoverageResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const602 void CostExplorerClient::GetSavingsPlansCoverageAsyncHelper(const GetSavingsPlansCoverageRequest& request, const GetSavingsPlansCoverageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
603 {
604   handler(this, request, GetSavingsPlansCoverage(request), context);
605 }
606 
GetSavingsPlansPurchaseRecommendation(const GetSavingsPlansPurchaseRecommendationRequest & request) const607 GetSavingsPlansPurchaseRecommendationOutcome CostExplorerClient::GetSavingsPlansPurchaseRecommendation(const GetSavingsPlansPurchaseRecommendationRequest& request) const
608 {
609   Aws::Http::URI uri = m_uri;
610   return GetSavingsPlansPurchaseRecommendationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
611 }
612 
GetSavingsPlansPurchaseRecommendationCallable(const GetSavingsPlansPurchaseRecommendationRequest & request) const613 GetSavingsPlansPurchaseRecommendationOutcomeCallable CostExplorerClient::GetSavingsPlansPurchaseRecommendationCallable(const GetSavingsPlansPurchaseRecommendationRequest& request) const
614 {
615   auto task = Aws::MakeShared< std::packaged_task< GetSavingsPlansPurchaseRecommendationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSavingsPlansPurchaseRecommendation(request); } );
616   auto packagedFunction = [task]() { (*task)(); };
617   m_executor->Submit(packagedFunction);
618   return task->get_future();
619 }
620 
GetSavingsPlansPurchaseRecommendationAsync(const GetSavingsPlansPurchaseRecommendationRequest & request,const GetSavingsPlansPurchaseRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const621 void CostExplorerClient::GetSavingsPlansPurchaseRecommendationAsync(const GetSavingsPlansPurchaseRecommendationRequest& request, const GetSavingsPlansPurchaseRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
622 {
623   m_executor->Submit( [this, request, handler, context](){ this->GetSavingsPlansPurchaseRecommendationAsyncHelper( request, handler, context ); } );
624 }
625 
GetSavingsPlansPurchaseRecommendationAsyncHelper(const GetSavingsPlansPurchaseRecommendationRequest & request,const GetSavingsPlansPurchaseRecommendationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const626 void CostExplorerClient::GetSavingsPlansPurchaseRecommendationAsyncHelper(const GetSavingsPlansPurchaseRecommendationRequest& request, const GetSavingsPlansPurchaseRecommendationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
627 {
628   handler(this, request, GetSavingsPlansPurchaseRecommendation(request), context);
629 }
630 
GetSavingsPlansUtilization(const GetSavingsPlansUtilizationRequest & request) const631 GetSavingsPlansUtilizationOutcome CostExplorerClient::GetSavingsPlansUtilization(const GetSavingsPlansUtilizationRequest& request) const
632 {
633   Aws::Http::URI uri = m_uri;
634   return GetSavingsPlansUtilizationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
635 }
636 
GetSavingsPlansUtilizationCallable(const GetSavingsPlansUtilizationRequest & request) const637 GetSavingsPlansUtilizationOutcomeCallable CostExplorerClient::GetSavingsPlansUtilizationCallable(const GetSavingsPlansUtilizationRequest& request) const
638 {
639   auto task = Aws::MakeShared< std::packaged_task< GetSavingsPlansUtilizationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSavingsPlansUtilization(request); } );
640   auto packagedFunction = [task]() { (*task)(); };
641   m_executor->Submit(packagedFunction);
642   return task->get_future();
643 }
644 
GetSavingsPlansUtilizationAsync(const GetSavingsPlansUtilizationRequest & request,const GetSavingsPlansUtilizationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const645 void CostExplorerClient::GetSavingsPlansUtilizationAsync(const GetSavingsPlansUtilizationRequest& request, const GetSavingsPlansUtilizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
646 {
647   m_executor->Submit( [this, request, handler, context](){ this->GetSavingsPlansUtilizationAsyncHelper( request, handler, context ); } );
648 }
649 
GetSavingsPlansUtilizationAsyncHelper(const GetSavingsPlansUtilizationRequest & request,const GetSavingsPlansUtilizationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const650 void CostExplorerClient::GetSavingsPlansUtilizationAsyncHelper(const GetSavingsPlansUtilizationRequest& request, const GetSavingsPlansUtilizationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
651 {
652   handler(this, request, GetSavingsPlansUtilization(request), context);
653 }
654 
GetSavingsPlansUtilizationDetails(const GetSavingsPlansUtilizationDetailsRequest & request) const655 GetSavingsPlansUtilizationDetailsOutcome CostExplorerClient::GetSavingsPlansUtilizationDetails(const GetSavingsPlansUtilizationDetailsRequest& request) const
656 {
657   Aws::Http::URI uri = m_uri;
658   return GetSavingsPlansUtilizationDetailsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
659 }
660 
GetSavingsPlansUtilizationDetailsCallable(const GetSavingsPlansUtilizationDetailsRequest & request) const661 GetSavingsPlansUtilizationDetailsOutcomeCallable CostExplorerClient::GetSavingsPlansUtilizationDetailsCallable(const GetSavingsPlansUtilizationDetailsRequest& request) const
662 {
663   auto task = Aws::MakeShared< std::packaged_task< GetSavingsPlansUtilizationDetailsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSavingsPlansUtilizationDetails(request); } );
664   auto packagedFunction = [task]() { (*task)(); };
665   m_executor->Submit(packagedFunction);
666   return task->get_future();
667 }
668 
GetSavingsPlansUtilizationDetailsAsync(const GetSavingsPlansUtilizationDetailsRequest & request,const GetSavingsPlansUtilizationDetailsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const669 void CostExplorerClient::GetSavingsPlansUtilizationDetailsAsync(const GetSavingsPlansUtilizationDetailsRequest& request, const GetSavingsPlansUtilizationDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
670 {
671   m_executor->Submit( [this, request, handler, context](){ this->GetSavingsPlansUtilizationDetailsAsyncHelper( request, handler, context ); } );
672 }
673 
GetSavingsPlansUtilizationDetailsAsyncHelper(const GetSavingsPlansUtilizationDetailsRequest & request,const GetSavingsPlansUtilizationDetailsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const674 void CostExplorerClient::GetSavingsPlansUtilizationDetailsAsyncHelper(const GetSavingsPlansUtilizationDetailsRequest& request, const GetSavingsPlansUtilizationDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
675 {
676   handler(this, request, GetSavingsPlansUtilizationDetails(request), context);
677 }
678 
GetTags(const GetTagsRequest & request) const679 GetTagsOutcome CostExplorerClient::GetTags(const GetTagsRequest& request) const
680 {
681   Aws::Http::URI uri = m_uri;
682   return GetTagsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
683 }
684 
GetTagsCallable(const GetTagsRequest & request) const685 GetTagsOutcomeCallable CostExplorerClient::GetTagsCallable(const GetTagsRequest& request) const
686 {
687   auto task = Aws::MakeShared< std::packaged_task< GetTagsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetTags(request); } );
688   auto packagedFunction = [task]() { (*task)(); };
689   m_executor->Submit(packagedFunction);
690   return task->get_future();
691 }
692 
GetTagsAsync(const GetTagsRequest & request,const GetTagsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const693 void CostExplorerClient::GetTagsAsync(const GetTagsRequest& request, const GetTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
694 {
695   m_executor->Submit( [this, request, handler, context](){ this->GetTagsAsyncHelper( request, handler, context ); } );
696 }
697 
GetTagsAsyncHelper(const GetTagsRequest & request,const GetTagsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const698 void CostExplorerClient::GetTagsAsyncHelper(const GetTagsRequest& request, const GetTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
699 {
700   handler(this, request, GetTags(request), context);
701 }
702 
GetUsageForecast(const GetUsageForecastRequest & request) const703 GetUsageForecastOutcome CostExplorerClient::GetUsageForecast(const GetUsageForecastRequest& request) const
704 {
705   Aws::Http::URI uri = m_uri;
706   return GetUsageForecastOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
707 }
708 
GetUsageForecastCallable(const GetUsageForecastRequest & request) const709 GetUsageForecastOutcomeCallable CostExplorerClient::GetUsageForecastCallable(const GetUsageForecastRequest& request) const
710 {
711   auto task = Aws::MakeShared< std::packaged_task< GetUsageForecastOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetUsageForecast(request); } );
712   auto packagedFunction = [task]() { (*task)(); };
713   m_executor->Submit(packagedFunction);
714   return task->get_future();
715 }
716 
GetUsageForecastAsync(const GetUsageForecastRequest & request,const GetUsageForecastResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const717 void CostExplorerClient::GetUsageForecastAsync(const GetUsageForecastRequest& request, const GetUsageForecastResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
718 {
719   m_executor->Submit( [this, request, handler, context](){ this->GetUsageForecastAsyncHelper( request, handler, context ); } );
720 }
721 
GetUsageForecastAsyncHelper(const GetUsageForecastRequest & request,const GetUsageForecastResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const722 void CostExplorerClient::GetUsageForecastAsyncHelper(const GetUsageForecastRequest& request, const GetUsageForecastResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
723 {
724   handler(this, request, GetUsageForecast(request), context);
725 }
726 
ListCostCategoryDefinitions(const ListCostCategoryDefinitionsRequest & request) const727 ListCostCategoryDefinitionsOutcome CostExplorerClient::ListCostCategoryDefinitions(const ListCostCategoryDefinitionsRequest& request) const
728 {
729   Aws::Http::URI uri = m_uri;
730   return ListCostCategoryDefinitionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
731 }
732 
ListCostCategoryDefinitionsCallable(const ListCostCategoryDefinitionsRequest & request) const733 ListCostCategoryDefinitionsOutcomeCallable CostExplorerClient::ListCostCategoryDefinitionsCallable(const ListCostCategoryDefinitionsRequest& request) const
734 {
735   auto task = Aws::MakeShared< std::packaged_task< ListCostCategoryDefinitionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListCostCategoryDefinitions(request); } );
736   auto packagedFunction = [task]() { (*task)(); };
737   m_executor->Submit(packagedFunction);
738   return task->get_future();
739 }
740 
ListCostCategoryDefinitionsAsync(const ListCostCategoryDefinitionsRequest & request,const ListCostCategoryDefinitionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const741 void CostExplorerClient::ListCostCategoryDefinitionsAsync(const ListCostCategoryDefinitionsRequest& request, const ListCostCategoryDefinitionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
742 {
743   m_executor->Submit( [this, request, handler, context](){ this->ListCostCategoryDefinitionsAsyncHelper( request, handler, context ); } );
744 }
745 
ListCostCategoryDefinitionsAsyncHelper(const ListCostCategoryDefinitionsRequest & request,const ListCostCategoryDefinitionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const746 void CostExplorerClient::ListCostCategoryDefinitionsAsyncHelper(const ListCostCategoryDefinitionsRequest& request, const ListCostCategoryDefinitionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
747 {
748   handler(this, request, ListCostCategoryDefinitions(request), context);
749 }
750 
ProvideAnomalyFeedback(const ProvideAnomalyFeedbackRequest & request) const751 ProvideAnomalyFeedbackOutcome CostExplorerClient::ProvideAnomalyFeedback(const ProvideAnomalyFeedbackRequest& request) const
752 {
753   Aws::Http::URI uri = m_uri;
754   return ProvideAnomalyFeedbackOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
755 }
756 
ProvideAnomalyFeedbackCallable(const ProvideAnomalyFeedbackRequest & request) const757 ProvideAnomalyFeedbackOutcomeCallable CostExplorerClient::ProvideAnomalyFeedbackCallable(const ProvideAnomalyFeedbackRequest& request) const
758 {
759   auto task = Aws::MakeShared< std::packaged_task< ProvideAnomalyFeedbackOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ProvideAnomalyFeedback(request); } );
760   auto packagedFunction = [task]() { (*task)(); };
761   m_executor->Submit(packagedFunction);
762   return task->get_future();
763 }
764 
ProvideAnomalyFeedbackAsync(const ProvideAnomalyFeedbackRequest & request,const ProvideAnomalyFeedbackResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const765 void CostExplorerClient::ProvideAnomalyFeedbackAsync(const ProvideAnomalyFeedbackRequest& request, const ProvideAnomalyFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
766 {
767   m_executor->Submit( [this, request, handler, context](){ this->ProvideAnomalyFeedbackAsyncHelper( request, handler, context ); } );
768 }
769 
ProvideAnomalyFeedbackAsyncHelper(const ProvideAnomalyFeedbackRequest & request,const ProvideAnomalyFeedbackResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const770 void CostExplorerClient::ProvideAnomalyFeedbackAsyncHelper(const ProvideAnomalyFeedbackRequest& request, const ProvideAnomalyFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
771 {
772   handler(this, request, ProvideAnomalyFeedback(request), context);
773 }
774 
UpdateAnomalyMonitor(const UpdateAnomalyMonitorRequest & request) const775 UpdateAnomalyMonitorOutcome CostExplorerClient::UpdateAnomalyMonitor(const UpdateAnomalyMonitorRequest& request) const
776 {
777   Aws::Http::URI uri = m_uri;
778   return UpdateAnomalyMonitorOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
779 }
780 
UpdateAnomalyMonitorCallable(const UpdateAnomalyMonitorRequest & request) const781 UpdateAnomalyMonitorOutcomeCallable CostExplorerClient::UpdateAnomalyMonitorCallable(const UpdateAnomalyMonitorRequest& request) const
782 {
783   auto task = Aws::MakeShared< std::packaged_task< UpdateAnomalyMonitorOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateAnomalyMonitor(request); } );
784   auto packagedFunction = [task]() { (*task)(); };
785   m_executor->Submit(packagedFunction);
786   return task->get_future();
787 }
788 
UpdateAnomalyMonitorAsync(const UpdateAnomalyMonitorRequest & request,const UpdateAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const789 void CostExplorerClient::UpdateAnomalyMonitorAsync(const UpdateAnomalyMonitorRequest& request, const UpdateAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
790 {
791   m_executor->Submit( [this, request, handler, context](){ this->UpdateAnomalyMonitorAsyncHelper( request, handler, context ); } );
792 }
793 
UpdateAnomalyMonitorAsyncHelper(const UpdateAnomalyMonitorRequest & request,const UpdateAnomalyMonitorResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const794 void CostExplorerClient::UpdateAnomalyMonitorAsyncHelper(const UpdateAnomalyMonitorRequest& request, const UpdateAnomalyMonitorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
795 {
796   handler(this, request, UpdateAnomalyMonitor(request), context);
797 }
798 
UpdateAnomalySubscription(const UpdateAnomalySubscriptionRequest & request) const799 UpdateAnomalySubscriptionOutcome CostExplorerClient::UpdateAnomalySubscription(const UpdateAnomalySubscriptionRequest& request) const
800 {
801   Aws::Http::URI uri = m_uri;
802   return UpdateAnomalySubscriptionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
803 }
804 
UpdateAnomalySubscriptionCallable(const UpdateAnomalySubscriptionRequest & request) const805 UpdateAnomalySubscriptionOutcomeCallable CostExplorerClient::UpdateAnomalySubscriptionCallable(const UpdateAnomalySubscriptionRequest& request) const
806 {
807   auto task = Aws::MakeShared< std::packaged_task< UpdateAnomalySubscriptionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateAnomalySubscription(request); } );
808   auto packagedFunction = [task]() { (*task)(); };
809   m_executor->Submit(packagedFunction);
810   return task->get_future();
811 }
812 
UpdateAnomalySubscriptionAsync(const UpdateAnomalySubscriptionRequest & request,const UpdateAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const813 void CostExplorerClient::UpdateAnomalySubscriptionAsync(const UpdateAnomalySubscriptionRequest& request, const UpdateAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
814 {
815   m_executor->Submit( [this, request, handler, context](){ this->UpdateAnomalySubscriptionAsyncHelper( request, handler, context ); } );
816 }
817 
UpdateAnomalySubscriptionAsyncHelper(const UpdateAnomalySubscriptionRequest & request,const UpdateAnomalySubscriptionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const818 void CostExplorerClient::UpdateAnomalySubscriptionAsyncHelper(const UpdateAnomalySubscriptionRequest& request, const UpdateAnomalySubscriptionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
819 {
820   handler(this, request, UpdateAnomalySubscription(request), context);
821 }
822 
UpdateCostCategoryDefinition(const UpdateCostCategoryDefinitionRequest & request) const823 UpdateCostCategoryDefinitionOutcome CostExplorerClient::UpdateCostCategoryDefinition(const UpdateCostCategoryDefinitionRequest& request) const
824 {
825   Aws::Http::URI uri = m_uri;
826   return UpdateCostCategoryDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
827 }
828 
UpdateCostCategoryDefinitionCallable(const UpdateCostCategoryDefinitionRequest & request) const829 UpdateCostCategoryDefinitionOutcomeCallable CostExplorerClient::UpdateCostCategoryDefinitionCallable(const UpdateCostCategoryDefinitionRequest& request) const
830 {
831   auto task = Aws::MakeShared< std::packaged_task< UpdateCostCategoryDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateCostCategoryDefinition(request); } );
832   auto packagedFunction = [task]() { (*task)(); };
833   m_executor->Submit(packagedFunction);
834   return task->get_future();
835 }
836 
UpdateCostCategoryDefinitionAsync(const UpdateCostCategoryDefinitionRequest & request,const UpdateCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const837 void CostExplorerClient::UpdateCostCategoryDefinitionAsync(const UpdateCostCategoryDefinitionRequest& request, const UpdateCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
838 {
839   m_executor->Submit( [this, request, handler, context](){ this->UpdateCostCategoryDefinitionAsyncHelper( request, handler, context ); } );
840 }
841 
UpdateCostCategoryDefinitionAsyncHelper(const UpdateCostCategoryDefinitionRequest & request,const UpdateCostCategoryDefinitionResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const842 void CostExplorerClient::UpdateCostCategoryDefinitionAsyncHelper(const UpdateCostCategoryDefinitionRequest& request, const UpdateCostCategoryDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
843 {
844   handler(this, request, UpdateCostCategoryDefinition(request), context);
845 }
846 
847