AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ApiGatewayManagementApiClient.h
1
6#pragma once
7#include <aws/apigatewaymanagementapi/ApiGatewayManagementApiServiceClientModel.h>
8#include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_EXPORTS.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/client/ClientConfiguration.h>
12#include <aws/core/utils/json/JsonSerializer.h>
13
14namespace Aws {
15namespace ApiGatewayManagementApi {
24class AWS_APIGATEWAYMANAGEMENTAPI_API ApiGatewayManagementApiClient
26 public Aws::Client::ClientWithAsyncTemplateMethods<ApiGatewayManagementApiClient> {
27 public:
29 static const char* GetServiceName();
30 static const char* GetAllocationTag();
31
34
41 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr);
42
48 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
51
56 ApiGatewayManagementApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
57 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
60
61 /* Legacy constructors due deprecation */
67
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
95 template <typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
96 Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT& request) const {
97 return SubmitCallable(&ApiGatewayManagementApiClient::DeleteConnection, request);
98 }
99
104 template <typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
105 void DeleteConnectionAsync(const DeleteConnectionRequestT& request, const DeleteConnectionResponseReceivedHandler& handler,
106 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
107 return SubmitAsync(&ApiGatewayManagementApiClient::DeleteConnection, request, handler, context);
108 }
109
117
121 template <typename GetConnectionRequestT = Model::GetConnectionRequest>
122 Model::GetConnectionOutcomeCallable GetConnectionCallable(const GetConnectionRequestT& request) const {
123 return SubmitCallable(&ApiGatewayManagementApiClient::GetConnection, request);
124 }
125
130 template <typename GetConnectionRequestT = Model::GetConnectionRequest>
131 void GetConnectionAsync(const GetConnectionRequestT& request, const GetConnectionResponseReceivedHandler& handler,
132 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
133 return SubmitAsync(&ApiGatewayManagementApiClient::GetConnection, request, handler, context);
134 }
135
143
148 template <typename PostToConnectionRequestT = Model::PostToConnectionRequest>
149 Model::PostToConnectionOutcomeCallable PostToConnectionCallable(const PostToConnectionRequestT& request) const {
150 return SubmitCallable(&ApiGatewayManagementApiClient::PostToConnection, request);
151 }
152
157 template <typename PostToConnectionRequestT = Model::PostToConnectionRequest>
158 void PostToConnectionAsync(const PostToConnectionRequestT& request, const PostToConnectionResponseReceivedHandler& handler,
159 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
160 return SubmitAsync(&ApiGatewayManagementApiClient::PostToConnection, request, handler, context);
161 }
162
163 void OverrideEndpoint(const Aws::String& endpoint);
164 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase>& accessEndpointProvider();
165
166 private:
168 void init(const ApiGatewayManagementApiClientConfiguration& clientConfiguration);
169
170 ApiGatewayManagementApiClientConfiguration m_clientConfiguration;
171 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> m_endpointProvider;
172};
173
174} // namespace ApiGatewayManagementApi
175} // 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::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::function< void(const ApiGatewayManagementApiClient *, const Model::GetConnectionRequest &, const Model::GetConnectionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetConnectionResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String