AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KeyspacesStreamsClient.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_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/keyspacesstreams/KeyspacesStreamsServiceClientModel.h>
13
14namespace Aws
15{
16namespace KeyspacesStreams
17{
40 class AWS_KEYSPACESSTREAMS_API KeyspacesStreamsClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<KeyspacesStreamsClient>
41 {
42 public:
44 static const char* GetServiceName();
45 static const char* GetAllocationTag();
46
49
55 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr);
56
62 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
64
69 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
70 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
72
73
74 /* Legacy constructors due deprecation */
80
86 const Aws::Client::ClientConfiguration& clientConfiguration);
87
92 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
93 const Aws::Client::ClientConfiguration& clientConfiguration);
94
95 /* End of legacy constructors due deprecation */
97
109
113 template<typename GetRecordsRequestT = Model::GetRecordsRequest>
114 Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT& request) const
115 {
116 return SubmitCallable(&KeyspacesStreamsClient::GetRecords, request);
117 }
118
122 template<typename GetRecordsRequestT = Model::GetRecordsRequest>
123 void GetRecordsAsync(const GetRecordsRequestT& request, const GetRecordsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
124 {
125 return SubmitAsync(&KeyspacesStreamsClient::GetRecords, request, handler, context);
126 }
127
139
143 template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
144 Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT& request) const
145 {
146 return SubmitCallable(&KeyspacesStreamsClient::GetShardIterator, request);
147 }
148
152 template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
153 void GetShardIteratorAsync(const GetShardIteratorRequestT& request, const GetShardIteratorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
154 {
155 return SubmitAsync(&KeyspacesStreamsClient::GetShardIterator, request, handler, context);
156 }
157
169
173 template<typename GetStreamRequestT = Model::GetStreamRequest>
174 Model::GetStreamOutcomeCallable GetStreamCallable(const GetStreamRequestT& request) const
175 {
176 return SubmitCallable(&KeyspacesStreamsClient::GetStream, request);
177 }
178
182 template<typename GetStreamRequestT = Model::GetStreamRequest>
183 void GetStreamAsync(const GetStreamRequestT& request, const GetStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
184 {
185 return SubmitAsync(&KeyspacesStreamsClient::GetStream, request, handler, context);
186 }
187
198
202 template<typename ListStreamsRequestT = Model::ListStreamsRequest>
203 Model::ListStreamsOutcomeCallable ListStreamsCallable(const ListStreamsRequestT& request = {}) const
204 {
205 return SubmitCallable(&KeyspacesStreamsClient::ListStreams, request);
206 }
207
211 template<typename ListStreamsRequestT = Model::ListStreamsRequest>
212 void ListStreamsAsync(const ListStreamsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListStreamsRequestT& request = {}) const
213 {
214 return SubmitAsync(&KeyspacesStreamsClient::ListStreams, request, handler, context);
215 }
216
217
218 void OverrideEndpoint(const Aws::String& endpoint);
219 std::shared_ptr<KeyspacesStreamsEndpointProviderBase>& accessEndpointProvider();
220 private:
222 void init(const KeyspacesStreamsClientConfiguration& clientConfiguration);
223
224 KeyspacesStreamsClientConfiguration m_clientConfiguration;
225 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> m_endpointProvider;
226 };
227
228} // namespace KeyspacesStreams
229} // namespace Aws
void OverrideEndpoint(const Aws::String &endpoint)
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 Model::ListStreamsOutcome ListStreams(const Model::ListStreamsRequest &request={}) const
KeyspacesStreamsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
std::shared_ptr< KeyspacesStreamsEndpointProviderBase > & accessEndpointProvider()
KeyspacesStreamsClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< KeyspacesStreamsEndpointProviderBase > endpointProvider=nullptr, const Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration &clientConfiguration=Aws::KeyspacesStreams::KeyspacesStreamsClientConfiguration())
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::GetRecordsRequest &, const Model::GetRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRecordsResponseReceivedHandler
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String