AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApiGatewayManagementApiClient.h
1
6#pragma once
7#include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_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/apigatewaymanagementapi/ApiGatewayManagementApiServiceClientModel.h>
13
14namespace Aws
15{
16namespace ApiGatewayManagementApi
17{
26 class AWS_APIGATEWAYMANAGEMENTAPI_API ApiGatewayManagementApiClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<ApiGatewayManagementApiClient>
27 {
28 public:
30 static const char* GetServiceName();
31 static const char* GetAllocationTag();
32
35
41 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr);
42
48 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
50
55 ApiGatewayManagementApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
56 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
58
59
60 /* Legacy constructors due deprecation */
66
72 const Aws::Client::ClientConfiguration& clientConfiguration);
73
78 ApiGatewayManagementApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
79 const Aws::Client::ClientConfiguration& clientConfiguration);
80
81 /* End of legacy constructors due deprecation */
83
90
94 template<typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
95 Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT& request) const
96 {
97 return SubmitCallable(&ApiGatewayManagementApiClient::DeleteConnection, request);
98 }
99
103 template<typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
104 void DeleteConnectionAsync(const DeleteConnectionRequestT& request, const DeleteConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
105 {
106 return SubmitAsync(&ApiGatewayManagementApiClient::DeleteConnection, request, handler, context);
107 }
108
116
120 template<typename GetConnectionRequestT = Model::GetConnectionRequest>
121 Model::GetConnectionOutcomeCallable GetConnectionCallable(const GetConnectionRequestT& request) const
122 {
123 return SubmitCallable(&ApiGatewayManagementApiClient::GetConnection, request);
124 }
125
129 template<typename GetConnectionRequestT = Model::GetConnectionRequest>
130 void GetConnectionAsync(const GetConnectionRequestT& request, const GetConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
131 {
132 return SubmitAsync(&ApiGatewayManagementApiClient::GetConnection, request, handler, context);
133 }
134
142
146 template<typename PostToConnectionRequestT = Model::PostToConnectionRequest>
147 Model::PostToConnectionOutcomeCallable PostToConnectionCallable(const PostToConnectionRequestT& request) const
148 {
149 return SubmitCallable(&ApiGatewayManagementApiClient::PostToConnection, request);
150 }
151
155 template<typename PostToConnectionRequestT = Model::PostToConnectionRequest>
156 void PostToConnectionAsync(const PostToConnectionRequestT& request, const PostToConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
157 {
158 return SubmitAsync(&ApiGatewayManagementApiClient::PostToConnection, request, handler, context);
159 }
160
161
162 void OverrideEndpoint(const Aws::String& endpoint);
163 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase>& accessEndpointProvider();
164 private:
166 void init(const ApiGatewayManagementApiClientConfiguration& clientConfiguration);
167
168 ApiGatewayManagementApiClientConfiguration m_clientConfiguration;
169 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> m_endpointProvider;
170 };
171
172} // namespace ApiGatewayManagementApi
173} // namespace Aws
virtual Model::GetConnectionOutcome GetConnection(const Model::GetConnectionRequest &request) const
ApiGatewayManagementApiClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT &request) const
ApiGatewayManagementApiClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< ApiGatewayManagementApiEndpointProviderBase > endpointProvider=nullptr, const Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration &clientConfiguration=Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration())
void DeleteConnectionAsync(const DeleteConnectionRequestT &request, const DeleteConnectionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::PostToConnectionOutcomeCallable PostToConnectionCallable(const PostToConnectionRequestT &request) const
ApiGatewayManagementApiClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< ApiGatewayManagementApiEndpointProviderBase > endpointProvider=nullptr, const Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration &clientConfiguration=Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration())
ApiGatewayManagementApiClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetConnectionOutcomeCallable GetConnectionCallable(const GetConnectionRequestT &request) const
void PostToConnectionAsync(const PostToConnectionRequestT &request, const PostToConnectionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
ApiGatewayManagementApiClient(const Aws::Client::ClientConfiguration &clientConfiguration)
std::shared_ptr< ApiGatewayManagementApiEndpointProviderBase > & accessEndpointProvider()
void GetConnectionAsync(const GetConnectionRequestT &request, const GetConnectionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::DeleteConnectionOutcome DeleteConnection(const Model::DeleteConnectionRequest &request) const
ApiGatewayManagementApiClient(const Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration &clientConfiguration=Aws::ApiGatewayManagementApi::ApiGatewayManagementApiClientConfiguration(), std::shared_ptr< ApiGatewayManagementApiEndpointProviderBase > endpointProvider=nullptr)
virtual Model::PostToConnectionOutcome PostToConnection(const Model::PostToConnectionRequest &request) const
std::future< DeleteConnectionOutcome > DeleteConnectionOutcomeCallable
std::future< PostToConnectionOutcome > PostToConnectionOutcomeCallable
std::future< GetConnectionOutcome > GetConnectionOutcomeCallable
std::function< void(const ApiGatewayManagementApiClient *, const Model::GetConnectionRequest &, const Model::GetConnectionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetConnectionResponseReceivedHandler
std::function< void(const ApiGatewayManagementApiClient *, const Model::PostToConnectionRequest &, const Model::PostToConnectionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PostToConnectionResponseReceivedHandler
std::function< void(const ApiGatewayManagementApiClient *, const Model::DeleteConnectionRequest &, const Model::DeleteConnectionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteConnectionResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String