AWS SDK for C++  1.9.17
AWS SDK for C++
DLMClient.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dlm/DLM_EXPORTS.h>
8 #include <aws/dlm/DLMErrors.h>
24 #include <future>
25 #include <functional>
26 
27 namespace Aws
28 {
29 
30 namespace Http
31 {
32  class HttpClient;
33  class HttpClientFactory;
34 } // namespace Http
35 
36 namespace Utils
37 {
38  template< typename R, typename E> class Outcome;
39 namespace Threading
40 {
41  class Executor;
42 } // namespace Threading
43 } // namespace Utils
44 
45 namespace Auth
46 {
47  class AWSCredentials;
48  class AWSCredentialsProvider;
49 } // namespace Auth
50 
51 namespace Client
52 {
53  class RetryStrategy;
54 } // namespace Client
55 
56 namespace DLM
57 {
58 
59 namespace Model
60 {
66  class TagResourceRequest;
69 
78 
79  typedef std::future<CreateLifecyclePolicyOutcome> CreateLifecyclePolicyOutcomeCallable;
80  typedef std::future<DeleteLifecyclePolicyOutcome> DeleteLifecyclePolicyOutcomeCallable;
81  typedef std::future<GetLifecyclePoliciesOutcome> GetLifecyclePoliciesOutcomeCallable;
82  typedef std::future<GetLifecyclePolicyOutcome> GetLifecyclePolicyOutcomeCallable;
83  typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
84  typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
85  typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
86  typedef std::future<UpdateLifecyclePolicyOutcome> UpdateLifecyclePolicyOutcomeCallable;
87 } // namespace Model
88 
89  class DLMClient;
90 
91  typedef std::function<void(const DLMClient*, const Model::CreateLifecyclePolicyRequest&, const Model::CreateLifecyclePolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateLifecyclePolicyResponseReceivedHandler;
92  typedef std::function<void(const DLMClient*, const Model::DeleteLifecyclePolicyRequest&, const Model::DeleteLifecyclePolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteLifecyclePolicyResponseReceivedHandler;
93  typedef std::function<void(const DLMClient*, const Model::GetLifecyclePoliciesRequest&, const Model::GetLifecyclePoliciesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetLifecyclePoliciesResponseReceivedHandler;
94  typedef std::function<void(const DLMClient*, const Model::GetLifecyclePolicyRequest&, const Model::GetLifecyclePolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetLifecyclePolicyResponseReceivedHandler;
95  typedef std::function<void(const DLMClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
96  typedef std::function<void(const DLMClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
97  typedef std::function<void(const DLMClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
98  typedef std::function<void(const DLMClient*, const Model::UpdateLifecyclePolicyRequest&, const Model::UpdateLifecyclePolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateLifecyclePolicyResponseReceivedHandler;
99 
110  {
111  public:
113 
119 
125 
130  DLMClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
132 
133  virtual ~DLMClient();
134 
135 
143 
153 
162  virtual void CreateLifecyclePolicyAsync(const Model::CreateLifecyclePolicyRequest& request, const CreateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
163 
171 
181 
190  virtual void DeleteLifecyclePolicyAsync(const Model::DeleteLifecyclePolicyRequest& request, const DeleteLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
191 
200 
211 
221  virtual void GetLifecyclePoliciesAsync(const Model::GetLifecyclePoliciesRequest& request, const GetLifecyclePoliciesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
222 
230 
240 
249  virtual void GetLifecyclePolicyAsync(const Model::GetLifecyclePolicyRequest& request, const GetLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
250 
257 
266 
274  virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
275 
282 
291 
299  virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
300 
308 
318 
327  virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
328 
335 
344 
352  virtual void UpdateLifecyclePolicyAsync(const Model::UpdateLifecyclePolicyRequest& request, const UpdateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
353 
354 
355  void OverrideEndpoint(const Aws::String& endpoint);
356  private:
357  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
358  void CreateLifecyclePolicyAsyncHelper(const Model::CreateLifecyclePolicyRequest& request, const CreateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
359  void DeleteLifecyclePolicyAsyncHelper(const Model::DeleteLifecyclePolicyRequest& request, const DeleteLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
360  void GetLifecyclePoliciesAsyncHelper(const Model::GetLifecyclePoliciesRequest& request, const GetLifecyclePoliciesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
361  void GetLifecyclePolicyAsyncHelper(const Model::GetLifecyclePolicyRequest& request, const GetLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
362  void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
363  void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
364  void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
365  void UpdateLifecyclePolicyAsyncHelper(const Model::UpdateLifecyclePolicyRequest& request, const UpdateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
366 
367  Aws::String m_uri;
368  Aws::String m_configScheme;
369  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
370  };
371 
372 } // namespace DLM
373 } // namespace Aws
Aws::DLM::DLMClient::TagResourceCallable
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest &request) const
Aws::DLM::TagResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
Definition: DLMClient.h:96
Aws::DLM::Model::GetLifecyclePolicyRequest
Definition: GetLifecyclePolicyRequest.h:22
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::DLM::DLMClient
Definition: DLMClient.h:110
Aws::DLM::Model::TagResourceOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
Definition: DLMClient.h:84
TagResourceResult.h
Aws::DLM::DLMClient::CreateLifecyclePolicyAsync
virtual void CreateLifecyclePolicyAsync(const Model::CreateLifecyclePolicyRequest &request, const CreateLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
DLM_EXPORTS.h
GetLifecyclePolicyResult.h
UntagResourceResult.h
Aws::DLM::DLMClient::DLMClient
DLMClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
AWSError.h
Aws::DLM::DLMClient::UpdateLifecyclePolicy
virtual Model::UpdateLifecyclePolicyOutcome UpdateLifecyclePolicy(const Model::UpdateLifecyclePolicyRequest &request) const
Aws::DLM::DLMClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: DLMClient.h:112
Aws::DLM::ListTagsForResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
Definition: DLMClient.h:95
Aws::DLM::DLMClient::ListTagsForResourceCallable
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest &request) const
Aws::DLM::Model::UntagResourceOutcome
Aws::Utils::Outcome< UntagResourceResult, DLMError > UntagResourceOutcome
Definition: DLMClient.h:76
UpdateLifecyclePolicyResult.h
Aws::DLM::DLMClient::DeleteLifecyclePolicyCallable
virtual Model::DeleteLifecyclePolicyOutcomeCallable DeleteLifecyclePolicyCallable(const Model::DeleteLifecyclePolicyRequest &request) const
Aws::DLM::Model::GetLifecyclePolicyOutcome
Aws::Utils::Outcome< GetLifecyclePolicyResult, DLMError > GetLifecyclePolicyOutcome
Definition: DLMClient.h:73
Aws::DLM::DLMClient::GetLifecyclePolicy
virtual Model::GetLifecyclePolicyOutcome GetLifecyclePolicy(const Model::GetLifecyclePolicyRequest &request) const
Aws::DLM::DLMClient::UntagResourceAsync
virtual void UntagResourceAsync(const Model::UntagResourceRequest &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AsyncCallerContext.h
Aws::DLM::Model::UpdateLifecyclePolicyOutcomeCallable
std::future< UpdateLifecyclePolicyOutcome > UpdateLifecyclePolicyOutcomeCallable
Definition: DLMClient.h:86
Aws::DLM::DLMClient::GetLifecyclePoliciesCallable
virtual Model::GetLifecyclePoliciesOutcomeCallable GetLifecyclePoliciesCallable(const Model::GetLifecyclePoliciesRequest &request) const
Aws::DLM::DLMClient::GetLifecyclePolicyAsync
virtual void GetLifecyclePolicyAsync(const Model::GetLifecyclePolicyRequest &request, const GetLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
DeleteLifecyclePolicyResult.h
Aws::DLM::Model::DeleteLifecyclePolicyRequest
Definition: DeleteLifecyclePolicyRequest.h:22
Aws::DLM::CreateLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::CreateLifecyclePolicyRequest &, const Model::CreateLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateLifecyclePolicyResponseReceivedHandler
Definition: DLMClient.h:89
Aws::DLM::DeleteLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::DeleteLifecyclePolicyRequest &, const Model::DeleteLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteLifecyclePolicyResponseReceivedHandler
Definition: DLMClient.h:92
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::DLM::DLMClient::UntagResource
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
Aws::DLM::Model::DeleteLifecyclePolicyOutcomeCallable
std::future< DeleteLifecyclePolicyOutcome > DeleteLifecyclePolicyOutcomeCallable
Definition: DLMClient.h:80
Aws::DLM::UpdateLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::UpdateLifecyclePolicyRequest &, const Model::UpdateLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateLifecyclePolicyResponseReceivedHandler
Definition: DLMClient.h:98
AWS_DLM_API
#define AWS_DLM_API
Definition: DLM_EXPORTS.h:28
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::DLM::Model::TagResourceOutcome
Aws::Utils::Outcome< TagResourceResult, DLMError > TagResourceOutcome
Definition: DLMClient.h:75
Aws::DLM::Model::DeleteLifecyclePolicyOutcome
Aws::Utils::Outcome< DeleteLifecyclePolicyResult, DLMError > DeleteLifecyclePolicyOutcome
Definition: DLMClient.h:71
Aws::DLM::Model::UntagResourceOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
Definition: DLMClient.h:85
Aws::DLM::DLMClient::UntagResourceCallable
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest &request) const
Aws::DLM::Model::TagResourceRequest
Definition: TagResourceRequest.h:23
Aws::DLM::Model::UpdateLifecyclePolicyRequest
Definition: UpdateLifecyclePolicyRequest.h:24
Aws::DLM::GetLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::GetLifecyclePolicyRequest &, const Model::GetLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLifecyclePolicyResponseReceivedHandler
Definition: DLMClient.h:94
Aws::DLM::Model::GetLifecyclePolicyOutcomeCallable
std::future< GetLifecyclePolicyOutcome > GetLifecyclePolicyOutcomeCallable
Definition: DLMClient.h:82
Aws::DLM::DLMClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::DLM::DLMClient::GetLifecyclePolicyCallable
virtual Model::GetLifecyclePolicyOutcomeCallable GetLifecyclePolicyCallable(const Model::GetLifecyclePolicyRequest &request) const
Aws::DLM::DLMClient::DeleteLifecyclePolicy
virtual Model::DeleteLifecyclePolicyOutcome DeleteLifecyclePolicy(const Model::DeleteLifecyclePolicyRequest &request) const
Aws::DLM::DLMClient::DLMClient
DLMClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
AWSString.h
CreateLifecyclePolicyResult.h
Aws::DLM::DLMClient::CreateLifecyclePolicyCallable
virtual Model::CreateLifecyclePolicyOutcomeCallable CreateLifecyclePolicyCallable(const Model::CreateLifecyclePolicyRequest &request) const
Aws::DLM::Model::GetLifecyclePoliciesRequest
Definition: GetLifecyclePoliciesRequest.h:29
Aws::DLM::Model::CreateLifecyclePolicyRequest
Definition: CreateLifecyclePolicyRequest.h:25
Aws::Client::AWSJsonClient
Definition: AWSClient.h:323
Aws::DLM::Model::ListTagsForResourceOutcome
Aws::Utils::Outcome< ListTagsForResourceResult, DLMError > ListTagsForResourceOutcome
Definition: DLMClient.h:74
Aws::DLM::DLMClient::TagResource
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
Aws::DLM::DLMClient::DeleteLifecyclePolicyAsync
virtual void DeleteLifecyclePolicyAsync(const Model::DeleteLifecyclePolicyRequest &request, const DeleteLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DLM::DLMClient::ListTagsForResourceAsync
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DLM::DLMClient::DLMClient
DLMClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::DLM::DLMClient::UpdateLifecyclePolicyCallable
virtual Model::UpdateLifecyclePolicyOutcomeCallable UpdateLifecyclePolicyCallable(const Model::UpdateLifecyclePolicyRequest &request) const
Aws::DLM::DLMClient::GetLifecyclePoliciesAsync
virtual void GetLifecyclePoliciesAsync(const Model::GetLifecyclePoliciesRequest &request, const GetLifecyclePoliciesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DLM::DLMClient::GetLifecyclePolicies
virtual Model::GetLifecyclePoliciesOutcome GetLifecyclePolicies(const Model::GetLifecyclePoliciesRequest &request) const
ClientConfiguration.h
Aws::DLM::DLMClient::~DLMClient
virtual ~DLMClient()
Aws::DLM::Model::GetLifecyclePoliciesOutcomeCallable
std::future< GetLifecyclePoliciesOutcome > GetLifecyclePoliciesOutcomeCallable
Definition: DLMClient.h:81
Aws::DLM::Model::CreateLifecyclePolicyOutcome
Aws::Utils::Outcome< CreateLifecyclePolicyResult, DLMError > CreateLifecyclePolicyOutcome
Definition: DLMClient.h:68
Aws::DLM::Model::GetLifecyclePoliciesOutcome
Aws::Utils::Outcome< GetLifecyclePoliciesResult, DLMError > GetLifecyclePoliciesOutcome
Definition: DLMClient.h:72
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::DLM::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:22
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
GetLifecyclePoliciesResult.h
Aws::DLM::GetLifecyclePoliciesResponseReceivedHandler
std::function< void(const DLMClient *, const Model::GetLifecyclePoliciesRequest &, const Model::GetLifecyclePoliciesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLifecyclePoliciesResponseReceivedHandler
Definition: DLMClient.h:93
AWSClient.h
ListTagsForResourceResult.h
Aws::DLM::DLMClient::UpdateLifecyclePolicyAsync
virtual void UpdateLifecyclePolicyAsync(const Model::UpdateLifecyclePolicyRequest &request, const UpdateLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DLM::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:27
Aws::DLM::DLMClient::ListTagsForResource
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
Aws::DLM::DLMClient::CreateLifecyclePolicy
virtual Model::CreateLifecyclePolicyOutcome CreateLifecyclePolicy(const Model::CreateLifecyclePolicyRequest &request) const
Aws::DLM::UntagResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
Definition: DLMClient.h:97
JsonSerializer.h
Aws::DLM::DLMClient::TagResourceAsync
virtual void TagResourceAsync(const Model::TagResourceRequest &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DLM::Model::UpdateLifecyclePolicyOutcome
Aws::Utils::Outcome< UpdateLifecyclePolicyResult, DLMError > UpdateLifecyclePolicyOutcome
Definition: DLMClient.h:77
Aws::DLM::Model::CreateLifecyclePolicyOutcomeCallable
std::future< CreateLifecyclePolicyOutcome > CreateLifecyclePolicyOutcomeCallable
Definition: DLMClient.h:79
DLMErrors.h
Aws::DLM::Model::ListTagsForResourceOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
Definition: DLMClient.h:83