AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
SustainabilityClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/sustainability/SustainabilityPaginationBase.h>
12#include <aws/sustainability/SustainabilityServiceClientModel.h>
13#include <aws/sustainability/SustainabilityWaiter.h>
14#include <aws/sustainability/Sustainability_EXPORTS.h>
15
16namespace Aws {
17namespace Sustainability {
35class AWS_SUSTAINABILITY_API SustainabilityClient : public Aws::Client::AWSJsonClient,
36 public Aws::Client::ClientWithAsyncTemplateMethods<SustainabilityClient>,
37 public SustainabilityPaginationBase<SustainabilityClient>,
38 public SustainabilityWaiter<SustainabilityClient> {
39 public:
41 static const char* GetServiceName();
42 static const char* GetAllocationTag();
43
46
53 std::shared_ptr<SustainabilityEndpointProviderBase> endpointProvider = nullptr);
54
60 std::shared_ptr<SustainabilityEndpointProviderBase> endpointProvider = nullptr,
63
68 SustainabilityClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
69 std::shared_ptr<SustainabilityEndpointProviderBase> endpointProvider = nullptr,
72
73 /* Legacy constructors due deprecation */
79
85
90 SustainabilityClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
91 const Aws::Client::ClientConfiguration& clientConfiguration);
92
93 /* End of legacy constructors due deprecation */
95
104 const Model::GetEstimatedCarbonEmissionsRequest& request) const;
105
110 template <typename GetEstimatedCarbonEmissionsRequestT = Model::GetEstimatedCarbonEmissionsRequest>
112 const GetEstimatedCarbonEmissionsRequestT& request) const {
113 return SubmitCallable(&SustainabilityClient::GetEstimatedCarbonEmissions, request);
114 }
115
120 template <typename GetEstimatedCarbonEmissionsRequestT = Model::GetEstimatedCarbonEmissionsRequest>
121 void GetEstimatedCarbonEmissionsAsync(const GetEstimatedCarbonEmissionsRequestT& request,
123 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
124 return SubmitAsync(&SustainabilityClient::GetEstimatedCarbonEmissions, request, handler, context);
125 }
126
136
141 template <typename GetEstimatedCarbonEmissionsDimensionValuesRequestT = Model::GetEstimatedCarbonEmissionsDimensionValuesRequest>
143 const GetEstimatedCarbonEmissionsDimensionValuesRequestT& request) const {
144 return SubmitCallable(&SustainabilityClient::GetEstimatedCarbonEmissionsDimensionValues, request);
145 }
146
151 template <typename GetEstimatedCarbonEmissionsDimensionValuesRequestT = Model::GetEstimatedCarbonEmissionsDimensionValuesRequest>
153 const GetEstimatedCarbonEmissionsDimensionValuesRequestT& request,
155 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
156 return SubmitAsync(&SustainabilityClient::GetEstimatedCarbonEmissionsDimensionValues, request, handler, context);
157 }
158
167 const Model::GetEstimatedWaterAllocationRequest& request) const;
168
173 template <typename GetEstimatedWaterAllocationRequestT = Model::GetEstimatedWaterAllocationRequest>
175 const GetEstimatedWaterAllocationRequestT& request) const {
176 return SubmitCallable(&SustainabilityClient::GetEstimatedWaterAllocation, request);
177 }
178
183 template <typename GetEstimatedWaterAllocationRequestT = Model::GetEstimatedWaterAllocationRequest>
184 void GetEstimatedWaterAllocationAsync(const GetEstimatedWaterAllocationRequestT& request,
186 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
187 return SubmitAsync(&SustainabilityClient::GetEstimatedWaterAllocation, request, handler, context);
188 }
189
199
204 template <typename GetEstimatedWaterAllocationDimensionValuesRequestT = Model::GetEstimatedWaterAllocationDimensionValuesRequest>
206 const GetEstimatedWaterAllocationDimensionValuesRequestT& request) const {
207 return SubmitCallable(&SustainabilityClient::GetEstimatedWaterAllocationDimensionValues, request);
208 }
209
214 template <typename GetEstimatedWaterAllocationDimensionValuesRequestT = Model::GetEstimatedWaterAllocationDimensionValuesRequest>
216 const GetEstimatedWaterAllocationDimensionValuesRequestT& request,
218 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
219 return SubmitAsync(&SustainabilityClient::GetEstimatedWaterAllocationDimensionValues, request, handler, context);
220 }
221
222 virtual void OverrideEndpoint(const Aws::String& endpoint);
223 virtual std::shared_ptr<SustainabilityEndpointProviderBase>& accessEndpointProvider();
224
225 private:
227 void init(const SustainabilityClientConfiguration& clientConfiguration);
228
230
231 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
232 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
233 Aws::Http::HttpMethod httpMethod) const;
234
235 SustainabilityClientConfiguration m_clientConfiguration;
236 std::shared_ptr<SustainabilityEndpointProviderBase> m_endpointProvider;
237};
238
239} // namespace Sustainability
240} // namespace Aws
SustainabilityClientConfiguration ClientConfigurationType
void GetEstimatedCarbonEmissionsDimensionValuesAsync(const GetEstimatedCarbonEmissionsDimensionValuesRequestT &request, const GetEstimatedCarbonEmissionsDimensionValuesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SustainabilityEndpointProvider EndpointProviderType
SustainabilityClient(const Aws::Sustainability::SustainabilityClientConfiguration &clientConfiguration=Aws::Sustainability::SustainabilityClientConfiguration(), std::shared_ptr< SustainabilityEndpointProviderBase > endpointProvider=nullptr)
Model::GetEstimatedWaterAllocationDimensionValuesOutcomeCallable GetEstimatedWaterAllocationDimensionValuesCallable(const GetEstimatedWaterAllocationDimensionValuesRequestT &request) const
SustainabilityClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< SustainabilityEndpointProviderBase > endpointProvider=nullptr, const Aws::Sustainability::SustainabilityClientConfiguration &clientConfiguration=Aws::Sustainability::SustainabilityClientConfiguration())
virtual void OverrideEndpoint(const Aws::String &endpoint)
SustainabilityClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SustainabilityEndpointProviderBase > endpointProvider=nullptr, const Aws::Sustainability::SustainabilityClientConfiguration &clientConfiguration=Aws::Sustainability::SustainabilityClientConfiguration())
virtual Model::GetEstimatedCarbonEmissionsOutcome GetEstimatedCarbonEmissions(const Model::GetEstimatedCarbonEmissionsRequest &request) const
Model::GetEstimatedCarbonEmissionsDimensionValuesOutcomeCallable GetEstimatedCarbonEmissionsDimensionValuesCallable(const GetEstimatedCarbonEmissionsDimensionValuesRequestT &request) const
void GetEstimatedWaterAllocationDimensionValuesAsync(const GetEstimatedWaterAllocationDimensionValuesRequestT &request, const GetEstimatedWaterAllocationDimensionValuesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetEstimatedCarbonEmissionsDimensionValuesOutcome GetEstimatedCarbonEmissionsDimensionValues(const Model::GetEstimatedCarbonEmissionsDimensionValuesRequest &request) const
SustainabilityClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetEstimatedWaterAllocationOutcomeCallable GetEstimatedWaterAllocationCallable(const GetEstimatedWaterAllocationRequestT &request) const
void GetEstimatedWaterAllocationAsync(const GetEstimatedWaterAllocationRequestT &request, const GetEstimatedWaterAllocationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetEstimatedWaterAllocationOutcome GetEstimatedWaterAllocation(const Model::GetEstimatedWaterAllocationRequest &request) const
virtual Model::GetEstimatedWaterAllocationDimensionValuesOutcome GetEstimatedWaterAllocationDimensionValues(const Model::GetEstimatedWaterAllocationDimensionValuesRequest &request) const
void GetEstimatedCarbonEmissionsAsync(const GetEstimatedCarbonEmissionsRequestT &request, const GetEstimatedCarbonEmissionsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetEstimatedCarbonEmissionsOutcomeCallable GetEstimatedCarbonEmissionsCallable(const GetEstimatedCarbonEmissionsRequestT &request) const
SustainabilityClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
SustainabilityClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual std::shared_ptr< SustainabilityEndpointProviderBase > & accessEndpointProvider()
std::future< GetEstimatedCarbonEmissionsOutcome > GetEstimatedCarbonEmissionsOutcomeCallable
std::future< GetEstimatedWaterAllocationOutcome > GetEstimatedWaterAllocationOutcomeCallable
std::future< GetEstimatedWaterAllocationDimensionValuesOutcome > GetEstimatedWaterAllocationDimensionValuesOutcomeCallable
std::future< GetEstimatedCarbonEmissionsDimensionValuesOutcome > GetEstimatedCarbonEmissionsDimensionValuesOutcomeCallable
std::function< void(const SustainabilityClient *, const Model::GetEstimatedWaterAllocationRequest &, const Model::GetEstimatedWaterAllocationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetEstimatedWaterAllocationResponseReceivedHandler
std::function< void(const SustainabilityClient *, const Model::GetEstimatedWaterAllocationDimensionValuesRequest &, const Model::GetEstimatedWaterAllocationDimensionValuesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetEstimatedWaterAllocationDimensionValuesResponseReceivedHandler
std::function< void(const SustainabilityClient *, const Model::GetEstimatedCarbonEmissionsDimensionValuesRequest &, const Model::GetEstimatedCarbonEmissionsDimensionValuesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetEstimatedCarbonEmissionsDimensionValuesResponseReceivedHandler
std::function< void(const SustainabilityClient *, const Model::GetEstimatedCarbonEmissionsRequest &, const Model::GetEstimatedCarbonEmissionsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetEstimatedCarbonEmissionsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String