AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/KeyspacesStreamsServiceClientModel.h>
12#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
13
14namespace Aws {
15namespace KeyspacesStreams {
38class AWS_KEYSPACESSTREAMS_API KeyspacesStreamsClient : public Aws::Client::AWSJsonClient,
39 public Aws::Client::ClientWithAsyncTemplateMethods<KeyspacesStreamsClient> {
40 public:
42 static const char* GetServiceName();
43 static const char* GetAllocationTag();
44
47
54 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr);
55
61 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
64
69 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
70 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> endpointProvider = nullptr,
73
74 /* Legacy constructors due deprecation */
80
86
91 KeyspacesStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
92 const Aws::Client::ClientConfiguration& clientConfiguration);
93
94 /* End of legacy constructors due deprecation */
96
108
112 template <typename GetRecordsRequestT = Model::GetRecordsRequest>
113 Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT& request) const {
114 return SubmitCallable(&KeyspacesStreamsClient::GetRecords, request);
115 }
116
121 template <typename GetRecordsRequestT = Model::GetRecordsRequest>
122 void GetRecordsAsync(const GetRecordsRequestT& request, const GetRecordsResponseReceivedHandler& handler,
123 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
124 return SubmitAsync(&KeyspacesStreamsClient::GetRecords, request, handler, context);
125 }
126
138
143 template <typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
144 Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT& request) const {
145 return SubmitCallable(&KeyspacesStreamsClient::GetShardIterator, request);
146 }
147
152 template <typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
153 void GetShardIteratorAsync(const GetShardIteratorRequestT& request, const GetShardIteratorResponseReceivedHandler& handler,
154 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
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 return SubmitCallable(&KeyspacesStreamsClient::GetStream, request);
176 }
177
182 template <typename GetStreamRequestT = Model::GetStreamRequest>
183 void GetStreamAsync(const GetStreamRequestT& request, const GetStreamResponseReceivedHandler& handler,
184 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
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 return SubmitCallable(&KeyspacesStreamsClient::ListStreams, request);
205 }
206
211 template <typename ListStreamsRequestT = Model::ListStreamsRequest>
213 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
214 const ListStreamsRequestT& request = {}) const {
215 return SubmitAsync(&KeyspacesStreamsClient::ListStreams, request, handler, context);
216 }
217
218 void OverrideEndpoint(const Aws::String& endpoint);
219 std::shared_ptr<KeyspacesStreamsEndpointProviderBase>& accessEndpointProvider();
220
221 private:
223 void init(const KeyspacesStreamsClientConfiguration& clientConfiguration);
224
225 KeyspacesStreamsClientConfiguration m_clientConfiguration;
226 std::shared_ptr<KeyspacesStreamsEndpointProviderBase> m_endpointProvider;
227};
228
229} // namespace KeyspacesStreams
230} // 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::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