AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ApiGatewayManagementApiClient.h
1
6#pragma once
7#include <aws/apigatewaymanagementapi/ApiGatewayManagementApiPaginationBase.h>
8#include <aws/apigatewaymanagementapi/ApiGatewayManagementApiServiceClientModel.h>
9#include <aws/apigatewaymanagementapi/ApiGatewayManagementApiWaiter.h>
10#include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_EXPORTS.h>
11#include <aws/core/client/AWSClient.h>
12#include <aws/core/client/AWSClientAsyncCRTP.h>
13#include <aws/core/client/ClientConfiguration.h>
14#include <aws/core/utils/json/JsonSerializer.h>
15
16namespace Aws {
17namespace ApiGatewayManagementApi {
26class AWS_APIGATEWAYMANAGEMENTAPI_API ApiGatewayManagementApiClient
28 public Aws::Client::ClientWithAsyncTemplateMethods<ApiGatewayManagementApiClient>,
29 public ApiGatewayManagementApiPaginationBase<ApiGatewayManagementApiClient>,
30 public ApiGatewayManagementApiWaiter<ApiGatewayManagementApiClient> {
31 public:
33 static const char* GetServiceName();
34 static const char* GetAllocationTag();
35
38
45 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr);
46
52 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
55
60 ApiGatewayManagementApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
61 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> endpointProvider = nullptr,
64
65 /* Legacy constructors due deprecation */
71
77
82 ApiGatewayManagementApiClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
83 const Aws::Client::ClientConfiguration& clientConfiguration);
84
85 /* End of legacy constructors due deprecation */
87
94
99 template <typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
100 Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT& request) const {
101 return SubmitCallable(&ApiGatewayManagementApiClient::DeleteConnection, request);
102 }
103
108 template <typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
109 void DeleteConnectionAsync(const DeleteConnectionRequestT& request, const DeleteConnectionResponseReceivedHandler& handler,
110 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
111 return SubmitAsync(&ApiGatewayManagementApiClient::DeleteConnection, request, handler, context);
112 }
113
121
125 template <typename GetConnectionRequestT = Model::GetConnectionRequest>
126 Model::GetConnectionOutcomeCallable GetConnectionCallable(const GetConnectionRequestT& request) const {
127 return SubmitCallable(&ApiGatewayManagementApiClient::GetConnection, request);
128 }
129
134 template <typename GetConnectionRequestT = Model::GetConnectionRequest>
135 void GetConnectionAsync(const GetConnectionRequestT& request, const GetConnectionResponseReceivedHandler& handler,
136 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
137 return SubmitAsync(&ApiGatewayManagementApiClient::GetConnection, request, handler, context);
138 }
139
147
152 template <typename PostToConnectionRequestT = Model::PostToConnectionRequest>
153 Model::PostToConnectionOutcomeCallable PostToConnectionCallable(const PostToConnectionRequestT& request) const {
154 return SubmitCallable(&ApiGatewayManagementApiClient::PostToConnection, request);
155 }
156
161 template <typename PostToConnectionRequestT = Model::PostToConnectionRequest>
162 void PostToConnectionAsync(const PostToConnectionRequestT& request, const PostToConnectionResponseReceivedHandler& handler,
163 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
164 return SubmitAsync(&ApiGatewayManagementApiClient::PostToConnection, request, handler, context);
165 }
166
167 virtual void OverrideEndpoint(const Aws::String& endpoint);
168 virtual std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase>& accessEndpointProvider();
169
170 private:
172 void init(const ApiGatewayManagementApiClientConfiguration& clientConfiguration);
173
175
176 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
177 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
178 Aws::Http::HttpMethod httpMethod) const;
179
180 ApiGatewayManagementApiClientConfiguration m_clientConfiguration;
181 std::shared_ptr<ApiGatewayManagementApiEndpointProviderBase> m_endpointProvider;
182};
183
184} // namespace ApiGatewayManagementApi
185} // 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
virtual std::shared_ptr< ApiGatewayManagementApiEndpointProviderBase > & accessEndpointProvider()
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)
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
virtual void OverrideEndpoint(const Aws::String &endpoint)
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