AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
KeyspacesStreamsClient.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/keyspacesstreams/KeyspacesStreamsPaginationBase.h>
12#include <aws/keyspacesstreams/KeyspacesStreamsServiceClientModel.h>
13#include <aws/keyspacesstreams/KeyspacesStreamsWaiter.h>
14#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
15
16namespace Aws {
17namespace KeyspacesStreams {
40class AWS_KEYSPACESSTREAMS_API KeyspacesStreamsClient : public Aws::Client::AWSJsonClient,
41 public Aws::Client::ClientWithAsyncTemplateMethods<KeyspacesStreamsClient>,
42 public KeyspacesStreamsPaginationBase<KeyspacesStreamsClient>,
43 public KeyspacesStreamsWaiter<KeyspacesStreamsClient> {
44 public:
46 static const char* GetServiceName();
47 static const char* GetAllocationTag();
48
51
58 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr);
59
65 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
68
73 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
77
78 /* Legacy constructors due deprecation */
84
90
95 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
96 const Aws::Client::ClientConfiguration& clientConfiguration);
97
98 /* End of legacy constructors due deprecation */
100
112
116 template <typename GetRecordsRequestT = Model::GetRecordsRequest>
117 Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT& request) const {
118 return SubmitCallable(&KeyspacesStreamsClient::GetRecords, request);
119 }
120
125 template <typename GetRecordsRequestT = Model::GetRecordsRequest>
126 void GetRecordsAsync(const GetRecordsRequestT& request, const GetRecordsResponseReceivedHandler& handler,
127 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
128 return SubmitAsync(&KeyspacesStreamsClient::GetRecords, request, handler, context);
129 }
130
142
147 template <typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
148 Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT& request) const {
149 return SubmitCallable(&KeyspacesStreamsClient::GetShardIterator, request);
150 }
151
156 template <typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
157 void GetShardIteratorAsync(const GetShardIteratorRequestT& request, const GetShardIteratorResponseReceivedHandler& handler,
158 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
159 return SubmitAsync(&KeyspacesStreamsClient::GetShardIterator, request, handler, context);
160 }
161
173
177 template <typename GetStreamRequestT = Model::GetStreamRequest>
178 Model::GetStreamOutcomeCallable GetStreamCallable(const GetStreamRequestT& request) const {
179 return SubmitCallable(&KeyspacesStreamsClient::GetStream, request);
180 }
181
186 template <typename GetStreamRequestT = Model::GetStreamRequest>
187 void GetStreamAsync(const GetStreamRequestT& request, const GetStreamResponseReceivedHandler& handler,
188 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
189 return SubmitAsync(&KeyspacesStreamsClient::GetStream, request, handler, context);
190 }
191
202
206 template <typename ListStreamsRequestT = Model::ListStreamsRequest>
207 Model::ListStreamsOutcomeCallable ListStreamsCallable(const ListStreamsRequestT& request = {}) const {
208 return SubmitCallable(&KeyspacesStreamsClient::ListStreams, request);
209 }
210
215 template <typename ListStreamsRequestT = Model::ListStreamsRequest>
217 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
218 const ListStreamsRequestT& request = {}) const {
219 return SubmitAsync(&KeyspacesStreamsClient::ListStreams, request, handler, context);
220 }
221
222 virtual void OverrideEndpoint(const Aws::String& endpoint);
223 virtual std::shared_ptr<KeyspacesStreamsEndpointProviderBase>& accessEndpointProvider();
224
225 private:
227 void init(const KeyspacesStreamsClientConfiguration& clientConfiguration);
228
230
231 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request, Aws::Http::HttpMethod httpMethod) const;
232
233 KeyspacesStreamsClientConfiguration m_clientConfiguration;
234 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> m_endpointProvider;
235};
236
237} // namespace KeyspacesStreams
238} // namespace Aws
KeyspacesStreamsEndpointProvider EndpointProviderType
KeyspacesStreamsClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetStreamOutcome GetStream(const Model::GetStreamRequest &request) const
void GetRecordsAsync(const GetRecordsRequestT &request, const GetRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListStreamsOutcomeCallable ListStreamsCallable(const ListStreamsRequestT &request={}) const
virtual Model::GetShardIteratorOutcome GetShardIterator(const Model::GetShardIteratorRequest &request) const
void ListStreamsAsync(const ListStreamsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListStreamsRequestT &request={}) const
KeyspacesStreamsClient(const Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration &clientConfiguration=Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration(), std::shared_ptr< KeyspacesStreamsEndpointProviderBase > endpointProvider=nullptr)
Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT &request) const
KeyspacesStreamsClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void GetShardIteratorAsync(const GetShardIteratorRequestT &request, const GetShardIteratorResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual std::shared_ptr< KeyspacesStreamsEndpointProviderBase > & accessEndpointProvider()
virtual Model::ListStreamsOutcome ListStreams(const Model::ListStreamsRequest &request={}) const
KeyspacesStreamsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
KeyspacesStreamsClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< KeyspacesStreamsEndpointProviderBase > endpointProvider=nullptr, const Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration &clientConfiguration=Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration())
virtual void OverrideEndpoint(const Aws::String &endpoint)
KeyspacesStreamsClientConfiguration ClientConfigurationType
KeyspacesStreamsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< KeyspacesStreamsEndpointProviderBase > endpointProvider=nullptr, const Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration &clientConfiguration=Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration())
void GetStreamAsync(const GetStreamRequestT &request, const GetStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GetRecordsOutcome GetRecords(const Model::GetRecordsRequest &request) const
Model::GetStreamOutcomeCallable GetStreamCallable(const GetStreamRequestT &request) const
Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT &request) const
std::future< GetShardIteratorOutcome > GetShardIteratorOutcomeCallable
std::future< ListStreamsOutcome > ListStreamsOutcomeCallable
std::future< GetRecordsOutcome > GetRecordsOutcomeCallable
std::future< GetStreamOutcome > GetStreamOutcomeCallable
std::function< void(const KeyspacesStreamsClient *, const Model::GetStreamRequest &, const Model::GetStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetStreamResponseReceivedHandler
std::function< void(const KeyspacesStreamsClient *, const Model::ListStreamsRequest &, const Model::ListStreamsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListStreamsResponseReceivedHandler
std::function< void(const KeyspacesStreamsClient *, const Model::GetShardIteratorRequest &, const Model::GetShardIteratorOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetShardIteratorResponseReceivedHandler
std::function< void(const KeyspacesStreamsClient *, const Model::GetRecordsRequest &, const Model::GetRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetRecordsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String