AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimpleDBClient.h
1
6#pragma once
7#include <aws/sdb/SimpleDB_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/AmazonSerializableWebServiceRequest.h>
10#include <aws/core/client/AWSClient.h>
11#include <aws/core/client/AWSClientAsyncCRTP.h>
12#include <aws/core/utils/xml/XmlSerializer.h>
13#include <aws/sdb/SimpleDBServiceClientModel.h>
14
15namespace Aws
16{
17namespace SimpleDB
18{
35 class AWS_SIMPLEDB_API SimpleDBClient : public Aws::Client::AWSXMLClient, public Aws::Client::ClientWithAsyncTemplateMethods<SimpleDBClient>
36 {
37 public:
39 static const char* GetServiceName();
40 static const char* GetAllocationTag();
41
44
50 std::shared_ptr<SimpleDBEndpointProviderBase> endpointProvider = nullptr);
51
57 std::shared_ptr<SimpleDBEndpointProviderBase> endpointProvider = nullptr,
59
64 SimpleDBClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
65 std::shared_ptr<SimpleDBEndpointProviderBase> endpointProvider = nullptr,
67
68
69 /* Legacy constructors due deprecation */
75
81 const Aws::Client::ClientConfiguration& clientConfiguration);
82
87 SimpleDBClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
88 const Aws::Client::ClientConfiguration& clientConfiguration);
89
90 /* End of legacy constructors due deprecation */
91 virtual ~SimpleDBClient();
92
93
97 Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest& requestToConvert, const char* region) const;
98
99
111
115 template<typename BatchDeleteAttributesRequestT = Model::BatchDeleteAttributesRequest>
116 Model::BatchDeleteAttributesOutcomeCallable BatchDeleteAttributesCallable(const BatchDeleteAttributesRequestT& request) const
117 {
118 return SubmitCallable(&SimpleDBClient::BatchDeleteAttributes, request);
119 }
120
124 template<typename BatchDeleteAttributesRequestT = Model::BatchDeleteAttributesRequest>
125 void BatchDeleteAttributesAsync(const BatchDeleteAttributesRequestT& request, const BatchDeleteAttributesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
126 {
127 return SubmitAsync(&SimpleDBClient::BatchDeleteAttributes, request, handler, context);
128 }
129
173
177 template<typename BatchPutAttributesRequestT = Model::BatchPutAttributesRequest>
178 Model::BatchPutAttributesOutcomeCallable BatchPutAttributesCallable(const BatchPutAttributesRequestT& request) const
179 {
180 return SubmitCallable(&SimpleDBClient::BatchPutAttributes, request);
181 }
182
186 template<typename BatchPutAttributesRequestT = Model::BatchPutAttributesRequest>
187 void BatchPutAttributesAsync(const BatchPutAttributesRequestT& request, const BatchPutAttributesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
188 {
189 return SubmitAsync(&SimpleDBClient::BatchPutAttributes, request, handler, context);
190 }
191
205
209 template<typename CreateDomainRequestT = Model::CreateDomainRequest>
210 Model::CreateDomainOutcomeCallable CreateDomainCallable(const CreateDomainRequestT& request) const
211 {
212 return SubmitCallable(&SimpleDBClient::CreateDomain, request);
213 }
214
218 template<typename CreateDomainRequestT = Model::CreateDomainRequest>
219 void CreateDomainAsync(const CreateDomainRequestT& request, const CreateDomainResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
220 {
221 return SubmitAsync(&SimpleDBClient::CreateDomain, request, handler, context);
222 }
223
238
242 template<typename DeleteAttributesRequestT = Model::DeleteAttributesRequest>
243 Model::DeleteAttributesOutcomeCallable DeleteAttributesCallable(const DeleteAttributesRequestT& request) const
244 {
245 return SubmitCallable(&SimpleDBClient::DeleteAttributes, request);
246 }
247
251 template<typename DeleteAttributesRequestT = Model::DeleteAttributesRequest>
252 void DeleteAttributesAsync(const DeleteAttributesRequestT& request, const DeleteAttributesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
253 {
254 return SubmitAsync(&SimpleDBClient::DeleteAttributes, request, handler, context);
255 }
256
266
270 template<typename DeleteDomainRequestT = Model::DeleteDomainRequest>
271 Model::DeleteDomainOutcomeCallable DeleteDomainCallable(const DeleteDomainRequestT& request) const
272 {
273 return SubmitCallable(&SimpleDBClient::DeleteDomain, request);
274 }
275
279 template<typename DeleteDomainRequestT = Model::DeleteDomainRequest>
280 void DeleteDomainAsync(const DeleteDomainRequestT& request, const DeleteDomainResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
281 {
282 return SubmitAsync(&SimpleDBClient::DeleteDomain, request, handler, context);
283 }
284
293
297 template<typename DomainMetadataRequestT = Model::DomainMetadataRequest>
298 Model::DomainMetadataOutcomeCallable DomainMetadataCallable(const DomainMetadataRequestT& request) const
299 {
300 return SubmitCallable(&SimpleDBClient::DomainMetadata, request);
301 }
302
306 template<typename DomainMetadataRequestT = Model::DomainMetadataRequest>
307 void DomainMetadataAsync(const DomainMetadataRequestT& request, const DomainMetadataResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
308 {
309 return SubmitAsync(&SimpleDBClient::DomainMetadata, request, handler, context);
310 }
311
323
327 template<typename GetAttributesRequestT = Model::GetAttributesRequest>
328 Model::GetAttributesOutcomeCallable GetAttributesCallable(const GetAttributesRequestT& request) const
329 {
330 return SubmitCallable(&SimpleDBClient::GetAttributes, request);
331 }
332
336 template<typename GetAttributesRequestT = Model::GetAttributesRequest>
337 void GetAttributesAsync(const GetAttributesRequestT& request, const GetAttributesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
338 {
339 return SubmitAsync(&SimpleDBClient::GetAttributes, request, handler, context);
340 }
341
355
359 template<typename ListDomainsRequestT = Model::ListDomainsRequest>
360 Model::ListDomainsOutcomeCallable ListDomainsCallable(const ListDomainsRequestT& request = {}) const
361 {
362 return SubmitCallable(&SimpleDBClient::ListDomains, request);
363 }
364
368 template<typename ListDomainsRequestT = Model::ListDomainsRequest>
369 void ListDomainsAsync(const ListDomainsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListDomainsRequestT& request = {}) const
370 {
371 return SubmitAsync(&SimpleDBClient::ListDomains, request, handler, context);
372 }
373
408
412 template<typename PutAttributesRequestT = Model::PutAttributesRequest>
413 Model::PutAttributesOutcomeCallable PutAttributesCallable(const PutAttributesRequestT& request) const
414 {
415 return SubmitCallable(&SimpleDBClient::PutAttributes, request);
416 }
417
421 template<typename PutAttributesRequestT = Model::PutAttributesRequest>
422 void PutAttributesAsync(const PutAttributesRequestT& request, const PutAttributesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
423 {
424 return SubmitAsync(&SimpleDBClient::PutAttributes, request, handler, context);
425 }
426
441 virtual Model::SelectOutcome Select(const Model::SelectRequest& request) const;
442
446 template<typename SelectRequestT = Model::SelectRequest>
447 Model::SelectOutcomeCallable SelectCallable(const SelectRequestT& request) const
448 {
449 return SubmitCallable(&SimpleDBClient::Select, request);
450 }
451
455 template<typename SelectRequestT = Model::SelectRequest>
456 void SelectAsync(const SelectRequestT& request, const SelectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
457 {
458 return SubmitAsync(&SimpleDBClient::Select, request, handler, context);
459 }
460
461
462 void OverrideEndpoint(const Aws::String& endpoint);
463 std::shared_ptr<SimpleDBEndpointProviderBase>& accessEndpointProvider();
464 private:
466 void init(const SimpleDBClientConfiguration& clientConfiguration);
467
468 SimpleDBClientConfiguration m_clientConfiguration;
469 std::shared_ptr<SimpleDBEndpointProviderBase> m_endpointProvider;
470 };
471
472} // namespace SimpleDB
473} // namespace Aws
SimpleDBClient(const Aws::SimpleDB::SimpleDBClientConfiguration &clientConfiguration=Aws::SimpleDB::SimpleDBClientConfiguration(), std::shared_ptr< SimpleDBEndpointProviderBase > endpointProvider=nullptr)
void BatchPutAttributesAsync(const BatchPutAttributesRequestT &request, const BatchPutAttributesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::SelectOutcomeCallable SelectCallable(const SelectRequestT &request) const
Model::DeleteDomainOutcomeCallable DeleteDomainCallable(const DeleteDomainRequestT &request) const
virtual Model::CreateDomainOutcome CreateDomain(const Model::CreateDomainRequest &request) const
Model::GetAttributesOutcomeCallable GetAttributesCallable(const GetAttributesRequestT &request) const
SimpleDBClientConfiguration ClientConfigurationType
SimpleDBClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::SelectOutcome Select(const Model::SelectRequest &request) const
void PutAttributesAsync(const PutAttributesRequestT &request, const PutAttributesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::PutAttributesOutcome PutAttributes(const Model::PutAttributesRequest &request) const
void ListDomainsAsync(const ListDomainsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListDomainsRequestT &request={}) const
virtual Model::DeleteDomainOutcome DeleteDomain(const Model::DeleteDomainRequest &request) const
void DomainMetadataAsync(const DomainMetadataRequestT &request, const DomainMetadataResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
static const char * GetAllocationTag()
Model::PutAttributesOutcomeCallable PutAttributesCallable(const PutAttributesRequestT &request) const
void DeleteAttributesAsync(const DeleteAttributesRequestT &request, const DeleteAttributesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
static const char * GetServiceName()
virtual Model::ListDomainsOutcome ListDomains(const Model::ListDomainsRequest &request={}) const
void CreateDomainAsync(const CreateDomainRequestT &request, const CreateDomainResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::CreateDomainOutcomeCallable CreateDomainCallable(const CreateDomainRequestT &request) const
Aws::Client::AWSXMLClient BASECLASS
virtual Model::DeleteAttributesOutcome DeleteAttributes(const Model::DeleteAttributesRequest &request) const
Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest &requestToConvert, const char *region) const
SimpleDBEndpointProvider EndpointProviderType
void BatchDeleteAttributesAsync(const BatchDeleteAttributesRequestT &request, const BatchDeleteAttributesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetAttributesAsync(const GetAttributesRequestT &request, const GetAttributesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SimpleDBClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SimpleDBEndpointProviderBase > endpointProvider=nullptr, const Aws::SimpleDB::SimpleDBClientConfiguration &clientConfiguration=Aws::SimpleDB::SimpleDBClientConfiguration())
virtual Model::DomainMetadataOutcome DomainMetadata(const Model::DomainMetadataRequest &request) const
Model::BatchPutAttributesOutcomeCallable BatchPutAttributesCallable(const BatchPutAttributesRequestT &request) const
SimpleDBClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
std::shared_ptr< SimpleDBEndpointProviderBase > & accessEndpointProvider()
Model::ListDomainsOutcomeCallable ListDomainsCallable(const ListDomainsRequestT &request={}) const
Model::DomainMetadataOutcomeCallable DomainMetadataCallable(const DomainMetadataRequestT &request) const
SimpleDBClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< SimpleDBEndpointProviderBase > endpointProvider=nullptr, const Aws::SimpleDB::SimpleDBClientConfiguration &clientConfiguration=Aws::SimpleDB::SimpleDBClientConfiguration())
void OverrideEndpoint(const Aws::String &endpoint)
Model::DeleteAttributesOutcomeCallable DeleteAttributesCallable(const DeleteAttributesRequestT &request) const
virtual Model::BatchDeleteAttributesOutcome BatchDeleteAttributes(const Model::BatchDeleteAttributesRequest &request) const
void DeleteDomainAsync(const DeleteDomainRequestT &request, const DeleteDomainResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SimpleDBClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::BatchPutAttributesOutcome BatchPutAttributes(const Model::BatchPutAttributesRequest &request) const
void SelectAsync(const SelectRequestT &request, const SelectResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::BatchDeleteAttributesOutcomeCallable BatchDeleteAttributesCallable(const BatchDeleteAttributesRequestT &request) const
virtual Model::GetAttributesOutcome GetAttributes(const Model::GetAttributesRequest &request) const
std::future< DeleteDomainOutcome > DeleteDomainOutcomeCallable
std::future< BatchPutAttributesOutcome > BatchPutAttributesOutcomeCallable
std::future< CreateDomainOutcome > CreateDomainOutcomeCallable
std::future< BatchDeleteAttributesOutcome > BatchDeleteAttributesOutcomeCallable
std::future< GetAttributesOutcome > GetAttributesOutcomeCallable
std::future< DeleteAttributesOutcome > DeleteAttributesOutcomeCallable
std::future< DomainMetadataOutcome > DomainMetadataOutcomeCallable
std::future< PutAttributesOutcome > PutAttributesOutcomeCallable
std::future< ListDomainsOutcome > ListDomainsOutcomeCallable
std::future< SelectOutcome > SelectOutcomeCallable
std::function< void(const SimpleDBClient *, const Model::ListDomainsRequest &, const Model::ListDomainsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListDomainsResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::BatchDeleteAttributesRequest &, const Model::BatchDeleteAttributesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchDeleteAttributesResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::DeleteDomainRequest &, const Model::DeleteDomainOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteDomainResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::DomainMetadataRequest &, const Model::DomainMetadataOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DomainMetadataResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::CreateDomainRequest &, const Model::CreateDomainOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateDomainResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::GetAttributesRequest &, const Model::GetAttributesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAttributesResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::PutAttributesRequest &, const Model::PutAttributesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutAttributesResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::DeleteAttributesRequest &, const Model::DeleteAttributesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteAttributesResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::BatchPutAttributesRequest &, const Model::BatchPutAttributesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchPutAttributesResponseReceivedHandler
std::function< void(const SimpleDBClient *, const Model::SelectRequest &, const Model::SelectOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SelectResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String