AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FreeTierClient.h
1
6#pragma once
7#include <aws/freetier/FreeTier_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/freetier/FreeTierServiceClientModel.h>
13
14namespace Aws
15{
16namespace FreeTier
17{
29 class AWS_FREETIER_API FreeTierClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<FreeTierClient>
30 {
31 public:
33 static const char* GetServiceName();
34 static const char* GetAllocationTag();
35
38
44 std::shared_ptr<FreeTierEndpointProviderBase> endpointProvider = nullptr);
45
51 std::shared_ptr<FreeTierEndpointProviderBase> endpointProvider = nullptr,
53
58 FreeTierClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
59 std::shared_ptr<FreeTierEndpointProviderBase> endpointProvider = nullptr,
61
62
63 /* Legacy constructors due deprecation */
69
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
81 FreeTierClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
82 const Aws::Client::ClientConfiguration& clientConfiguration);
83
84 /* End of legacy constructors due deprecation */
85 virtual ~FreeTierClient();
86
94
98 template<typename GetFreeTierUsageRequestT = Model::GetFreeTierUsageRequest>
99 Model::GetFreeTierUsageOutcomeCallable GetFreeTierUsageCallable(const GetFreeTierUsageRequestT& request = {}) const
100 {
101 return SubmitCallable(&FreeTierClient::GetFreeTierUsage, request);
102 }
103
107 template<typename GetFreeTierUsageRequestT = Model::GetFreeTierUsageRequest>
108 void GetFreeTierUsageAsync(const GetFreeTierUsageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetFreeTierUsageRequestT& request = {}) const
109 {
110 return SubmitAsync(&FreeTierClient::GetFreeTierUsage, request, handler, context);
111 }
112
113
114 void OverrideEndpoint(const Aws::String& endpoint);
115 std::shared_ptr<FreeTierEndpointProviderBase>& accessEndpointProvider();
116 private:
118 void init(const FreeTierClientConfiguration& clientConfiguration);
119
120 FreeTierClientConfiguration m_clientConfiguration;
121 std::shared_ptr<FreeTierEndpointProviderBase> m_endpointProvider;
122 };
123
124} // namespace FreeTier
125} // namespace Aws
FreeTierClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
FreeTierEndpointProvider EndpointProviderType
static const char * GetServiceName()
FreeTierClientConfiguration ClientConfigurationType
std::shared_ptr< FreeTierEndpointProviderBase > & accessEndpointProvider()
void GetFreeTierUsageAsync(const GetFreeTierUsageResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetFreeTierUsageRequestT &request={}) const
Aws::Client::AWSJsonClient BASECLASS
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::GetFreeTierUsageOutcome GetFreeTierUsage(const Model::GetFreeTierUsageRequest &request={}) const
FreeTierClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< FreeTierEndpointProviderBase > endpointProvider=nullptr, const Aws::FreeTier::FreeTierClientConfiguration &clientConfiguration=Aws::FreeTier::FreeTierClientConfiguration())
FreeTierClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< FreeTierEndpointProviderBase > endpointProvider=nullptr, const Aws::FreeTier::FreeTierClientConfiguration &clientConfiguration=Aws::FreeTier::FreeTierClientConfiguration())
static const char * GetAllocationTag()
Model::GetFreeTierUsageOutcomeCallable GetFreeTierUsageCallable(const GetFreeTierUsageRequestT &request={}) const
FreeTierClient(const Aws::Client::ClientConfiguration &clientConfiguration)
FreeTierClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
FreeTierClient(const Aws::FreeTier::FreeTierClientConfiguration &clientConfiguration=Aws::FreeTier::FreeTierClientConfiguration(), std::shared_ptr< FreeTierEndpointProviderBase > endpointProvider=nullptr)
std::future< GetFreeTierUsageOutcome > GetFreeTierUsageOutcomeCallable
std::function< void(const FreeTierClient *, const Model::GetFreeTierUsageRequest &, const Model::GetFreeTierUsageOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetFreeTierUsageResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String