AWS SDK for C++  1.9.16
AWS SDK for C++
RDSDataServiceClient.h
Go to the documentation of this file.
1 
6 #pragma once
21 #include <future>
22 #include <functional>
23 
24 namespace Aws
25 {
26 
27 namespace Http
28 {
29  class HttpClient;
30  class HttpClientFactory;
31 } // namespace Http
32 
33 namespace Utils
34 {
35  template< typename R, typename E> class Outcome;
36 namespace Threading
37 {
38  class Executor;
39 } // namespace Threading
40 } // namespace Utils
41 
42 namespace Auth
43 {
44  class AWSCredentials;
45  class AWSCredentialsProvider;
46 } // namespace Auth
47 
48 namespace Client
49 {
50  class RetryStrategy;
51 } // namespace Client
52 
53 namespace RDSDataService
54 {
55 
56 namespace Model
57 {
58  class BatchExecuteStatementRequest;
59  class BeginTransactionRequest;
60  class CommitTransactionRequest;
61  class ExecuteStatementRequest;
62  class RollbackTransactionRequest;
63 
69 
70  typedef std::future<BatchExecuteStatementOutcome> BatchExecuteStatementOutcomeCallable;
71  typedef std::future<BeginTransactionOutcome> BeginTransactionOutcomeCallable;
72  typedef std::future<CommitTransactionOutcome> CommitTransactionOutcomeCallable;
73  typedef std::future<ExecuteStatementOutcome> ExecuteStatementOutcomeCallable;
74  typedef std::future<RollbackTransactionOutcome> RollbackTransactionOutcomeCallable;
75 } // namespace Model
76 
78 
79  typedef std::function<void(const RDSDataServiceClient*, const Model::BatchExecuteStatementRequest&, const Model::BatchExecuteStatementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > BatchExecuteStatementResponseReceivedHandler;
80  typedef std::function<void(const RDSDataServiceClient*, const Model::BeginTransactionRequest&, const Model::BeginTransactionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > BeginTransactionResponseReceivedHandler;
81  typedef std::function<void(const RDSDataServiceClient*, const Model::CommitTransactionRequest&, const Model::CommitTransactionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CommitTransactionResponseReceivedHandler;
82  typedef std::function<void(const RDSDataServiceClient*, const Model::ExecuteStatementRequest&, const Model::ExecuteStatementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ExecuteStatementResponseReceivedHandler;
83  typedef std::function<void(const RDSDataServiceClient*, const Model::RollbackTransactionRequest&, const Model::RollbackTransactionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RollbackTransactionResponseReceivedHandler;
84 
95  {
96  public:
98 
104 
110 
115  RDSDataServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
117 
119 
120 
133 
148 
162  virtual void BatchExecuteStatementAsync(const Model::BatchExecuteStatementRequest& request, const BatchExecuteStatementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
163 
179 
197 
214  virtual void BeginTransactionAsync(const Model::BeginTransactionRequest& request, const BeginTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
215 
223 
233 
242  virtual void CommitTransactionAsync(const Model::CommitTransactionRequest& request, const CommitTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
243 
254 
267 
279  virtual void ExecuteStatementAsync(const Model::ExecuteStatementRequest& request, const ExecuteStatementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
280 
288 
298 
307  virtual void RollbackTransactionAsync(const Model::RollbackTransactionRequest& request, const RollbackTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
308 
309 
310  void OverrideEndpoint(const Aws::String& endpoint);
311  private:
312  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
313  void BatchExecuteStatementAsyncHelper(const Model::BatchExecuteStatementRequest& request, const BatchExecuteStatementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
314  void BeginTransactionAsyncHelper(const Model::BeginTransactionRequest& request, const BeginTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
315  void CommitTransactionAsyncHelper(const Model::CommitTransactionRequest& request, const CommitTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
316  void ExecuteStatementAsyncHelper(const Model::ExecuteStatementRequest& request, const ExecuteStatementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
317  void RollbackTransactionAsyncHelper(const Model::RollbackTransactionRequest& request, const RollbackTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
318 
319  Aws::String m_uri;
320  Aws::String m_configScheme;
321  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
322  };
323 
324 } // namespace RDSDataService
325 } // namespace Aws
Aws::RDSDataService::RDSDataServiceClient::BatchExecuteStatementAsync
virtual void BatchExecuteStatementAsync(const Model::BatchExecuteStatementRequest &request, const BatchExecuteStatementResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::RDSDataService::Model::BatchExecuteStatementRequest
Definition: BatchExecuteStatementRequest.h:28
Aws::RDSDataService::RDSDataServiceClient::ExecuteStatementAsync
virtual void ExecuteStatementAsync(const Model::ExecuteStatementRequest &request, const ExecuteStatementResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::RDSDataService::Model::CommitTransactionOutcome
Aws::Utils::Outcome< CommitTransactionResult, RDSDataServiceError > CommitTransactionOutcome
Definition: RDSDataServiceClient.h:66
Aws::RDSDataService::RDSDataServiceClient::CommitTransactionCallable
virtual Model::CommitTransactionOutcomeCallable CommitTransactionCallable(const Model::CommitTransactionRequest &request) const
AWSError.h
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
CommitTransactionResult.h
Aws::RDSDataService::RDSDataServiceClient::BeginTransaction
virtual Model::BeginTransactionOutcome BeginTransaction(const Model::BeginTransactionRequest &request) const
Aws::RDSDataService::Model::ExecuteStatementOutcome
Aws::Utils::Outcome< ExecuteStatementResult, RDSDataServiceError > ExecuteStatementOutcome
Definition: RDSDataServiceClient.h:67
Aws::RDSDataService::RDSDataServiceClient::BatchExecuteStatementCallable
virtual Model::BatchExecuteStatementOutcomeCallable BatchExecuteStatementCallable(const Model::BatchExecuteStatementRequest &request) const
RollbackTransactionResult.h
RDSDataServiceErrors.h
Aws::RDSDataService::RollbackTransactionResponseReceivedHandler
std::function< void(const RDSDataServiceClient *, const Model::RollbackTransactionRequest &, const Model::RollbackTransactionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RollbackTransactionResponseReceivedHandler
Definition: RDSDataServiceClient.h:83
Aws::RDSDataService::Model::BeginTransactionRequest
Definition: BeginTransactionRequest.h:26
Aws::RDSDataService::RDSDataServiceClient::RDSDataServiceClient
RDSDataServiceClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::RDSDataService::Model::RollbackTransactionOutcome
Aws::Utils::Outcome< RollbackTransactionResult, RDSDataServiceError > RollbackTransactionOutcome
Definition: RDSDataServiceClient.h:68
Aws::RDSDataService::ExecuteStatementResponseReceivedHandler
std::function< void(const RDSDataServiceClient *, const Model::ExecuteStatementRequest &, const Model::ExecuteStatementOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ExecuteStatementResponseReceivedHandler
Definition: RDSDataServiceClient.h:82
AsyncCallerContext.h
Aws::RDSDataService::CommitTransactionResponseReceivedHandler
std::function< void(const RDSDataServiceClient *, const Model::CommitTransactionRequest &, const Model::CommitTransactionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CommitTransactionResponseReceivedHandler
Definition: RDSDataServiceClient.h:81
Aws::RDSDataService::RDSDataServiceClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: RDSDataServiceClient.h:97
Aws::RDSDataService::Model::ExecuteStatementOutcomeCallable
std::future< ExecuteStatementOutcome > ExecuteStatementOutcomeCallable
Definition: RDSDataServiceClient.h:73
Aws::RDSDataService::Model::ExecuteStatementRequest
Definition: ExecuteStatementRequest.h:29
Aws::RDSDataService::BeginTransactionResponseReceivedHandler
std::function< void(const RDSDataServiceClient *, const Model::BeginTransactionRequest &, const Model::BeginTransactionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BeginTransactionResponseReceivedHandler
Definition: RDSDataServiceClient.h:80
Aws::RDSDataService::Model::BatchExecuteStatementOutcomeCallable
std::future< BatchExecuteStatementOutcome > BatchExecuteStatementOutcomeCallable
Definition: RDSDataServiceClient.h:70
Aws::RDSDataService::Model::BeginTransactionOutcome
Aws::Utils::Outcome< BeginTransactionResult, RDSDataServiceError > BeginTransactionOutcome
Definition: RDSDataServiceClient.h:65
BatchExecuteStatementResult.h
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::RDSDataService::Model::CommitTransactionRequest
Definition: CommitTransactionRequest.h:26
Aws::RDSDataService::RDSDataServiceClient
Definition: RDSDataServiceClient.h:95
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::RDSDataService::Model::BatchExecuteStatementOutcome
Aws::Utils::Outcome< BatchExecuteStatementResult, RDSDataServiceError > BatchExecuteStatementOutcome
Definition: RDSDataServiceClient.h:62
Aws::RDSDataService::RDSDataServiceClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
AWSString.h
Aws::Client::AWSJsonClient
Definition: AWSClient.h:323
BeginTransactionResult.h
Aws::RDSDataService::RDSDataServiceClient::~RDSDataServiceClient
virtual ~RDSDataServiceClient()
Aws::RDSDataService::RDSDataServiceClient::RDSDataServiceClient
RDSDataServiceClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::RDSDataService::BatchExecuteStatementResponseReceivedHandler
std::function< void(const RDSDataServiceClient *, const Model::BatchExecuteStatementRequest &, const Model::BatchExecuteStatementOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchExecuteStatementResponseReceivedHandler
Definition: RDSDataServiceClient.h:77
Aws::RDSDataService::RDSDataServiceClient::RollbackTransaction
virtual Model::RollbackTransactionOutcome RollbackTransaction(const Model::RollbackTransactionRequest &request) const
RDSDataService_EXPORTS.h
Aws::RDSDataService::RDSDataServiceClient::BatchExecuteStatement
virtual Model::BatchExecuteStatementOutcome BatchExecuteStatement(const Model::BatchExecuteStatementRequest &request) const
Aws::RDSDataService::RDSDataServiceClient::RollbackTransactionCallable
virtual Model::RollbackTransactionOutcomeCallable RollbackTransactionCallable(const Model::RollbackTransactionRequest &request) const
ClientConfiguration.h
Aws::RDSDataService::RDSDataServiceClient::CommitTransaction
virtual Model::CommitTransactionOutcome CommitTransaction(const Model::CommitTransactionRequest &request) const
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
ExecuteStatementResult.h
Aws::RDSDataService::Model::RollbackTransactionOutcomeCallable
std::future< RollbackTransactionOutcome > RollbackTransactionOutcomeCallable
Definition: RDSDataServiceClient.h:74
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDSDataService::RDSDataServiceClient::BeginTransactionAsync
virtual void BeginTransactionAsync(const Model::BeginTransactionRequest &request, const BeginTransactionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AWSClient.h
Aws::RDSDataService::Model::RollbackTransactionRequest
Definition: RollbackTransactionRequest.h:26
Aws::RDSDataService::RDSDataServiceClient::CommitTransactionAsync
virtual void CommitTransactionAsync(const Model::CommitTransactionRequest &request, const CommitTransactionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::RDSDataService::RDSDataServiceClient::BeginTransactionCallable
virtual Model::BeginTransactionOutcomeCallable BeginTransactionCallable(const Model::BeginTransactionRequest &request) const
Aws::RDSDataService::RDSDataServiceClient::RollbackTransactionAsync
virtual void RollbackTransactionAsync(const Model::RollbackTransactionRequest &request, const RollbackTransactionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::RDSDataService::RDSDataServiceClient::ExecuteStatement
virtual Model::ExecuteStatementOutcome ExecuteStatement(const Model::ExecuteStatementRequest &request) const
Aws::RDSDataService::Model::CommitTransactionOutcomeCallable
std::future< CommitTransactionOutcome > CommitTransactionOutcomeCallable
Definition: RDSDataServiceClient.h:72
JsonSerializer.h
Aws::RDSDataService::RDSDataServiceClient::RDSDataServiceClient
RDSDataServiceClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::RDSDataService::Model::BeginTransactionOutcomeCallable
std::future< BeginTransactionOutcome > BeginTransactionOutcomeCallable
Definition: RDSDataServiceClient.h:71
Aws::RDSDataService::RDSDataServiceClient::ExecuteStatementCallable
virtual Model::ExecuteStatementOutcomeCallable ExecuteStatementCallable(const Model::ExecuteStatementRequest &request) const