AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DLMClient.h
1
6#pragma once
7#include <aws/dlm/DLM_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/dlm/DLMServiceClientModel.h>
13
14namespace Aws
15{
16namespace DLM
17{
29 {
30 public:
32 static const char* GetServiceName();
33 static const char* GetAllocationTag();
34
37
43 std::shared_ptr<DLMEndpointProviderBase> endpointProvider = nullptr);
44
50 std::shared_ptr<DLMEndpointProviderBase> endpointProvider = nullptr,
52
57 DLMClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
58 std::shared_ptr<DLMEndpointProviderBase> endpointProvider = nullptr,
60
61
62 /* Legacy constructors due deprecation */
67 DLMClient(const Aws::Client::ClientConfiguration& clientConfiguration);
68
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
80 DLMClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
81 const Aws::Client::ClientConfiguration& clientConfiguration);
82
83 /* End of legacy constructors due deprecation */
84 virtual ~DLMClient();
85
102
106 template<typename CreateLifecyclePolicyRequestT = Model::CreateLifecyclePolicyRequest>
107 Model::CreateLifecyclePolicyOutcomeCallable CreateLifecyclePolicyCallable(const CreateLifecyclePolicyRequestT& request) const
108 {
109 return SubmitCallable(&DLMClient::CreateLifecyclePolicy, request);
110 }
111
115 template<typename CreateLifecyclePolicyRequestT = Model::CreateLifecyclePolicyRequest>
116 void CreateLifecyclePolicyAsync(const CreateLifecyclePolicyRequestT& request, const CreateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
117 {
118 return SubmitAsync(&DLMClient::CreateLifecyclePolicy, request, handler, context);
119 }
120
131
135 template<typename DeleteLifecyclePolicyRequestT = Model::DeleteLifecyclePolicyRequest>
136 Model::DeleteLifecyclePolicyOutcomeCallable DeleteLifecyclePolicyCallable(const DeleteLifecyclePolicyRequestT& request) const
137 {
138 return SubmitCallable(&DLMClient::DeleteLifecyclePolicy, request);
139 }
140
144 template<typename DeleteLifecyclePolicyRequestT = Model::DeleteLifecyclePolicyRequest>
145 void DeleteLifecyclePolicyAsync(const DeleteLifecyclePolicyRequestT& request, const DeleteLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
146 {
147 return SubmitAsync(&DLMClient::DeleteLifecyclePolicy, request, handler, context);
148 }
149
159
163 template<typename GetLifecyclePoliciesRequestT = Model::GetLifecyclePoliciesRequest>
164 Model::GetLifecyclePoliciesOutcomeCallable GetLifecyclePoliciesCallable(const GetLifecyclePoliciesRequestT& request = {}) const
165 {
166 return SubmitCallable(&DLMClient::GetLifecyclePolicies, request);
167 }
168
172 template<typename GetLifecyclePoliciesRequestT = Model::GetLifecyclePoliciesRequest>
173 void GetLifecyclePoliciesAsync(const GetLifecyclePoliciesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetLifecyclePoliciesRequestT& request = {}) const
174 {
175 return SubmitAsync(&DLMClient::GetLifecyclePolicies, request, handler, context);
176 }
177
185
189 template<typename GetLifecyclePolicyRequestT = Model::GetLifecyclePolicyRequest>
190 Model::GetLifecyclePolicyOutcomeCallable GetLifecyclePolicyCallable(const GetLifecyclePolicyRequestT& request) const
191 {
192 return SubmitCallable(&DLMClient::GetLifecyclePolicy, request);
193 }
194
198 template<typename GetLifecyclePolicyRequestT = Model::GetLifecyclePolicyRequest>
199 void GetLifecyclePolicyAsync(const GetLifecyclePolicyRequestT& request, const GetLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
200 {
201 return SubmitAsync(&DLMClient::GetLifecyclePolicy, request, handler, context);
202 }
203
210
214 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
215 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
216 {
217 return SubmitCallable(&DLMClient::ListTagsForResource, request);
218 }
219
223 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
224 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
225 {
226 return SubmitAsync(&DLMClient::ListTagsForResource, request, handler, context);
227 }
228
235
239 template<typename TagResourceRequestT = Model::TagResourceRequest>
240 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
241 {
242 return SubmitCallable(&DLMClient::TagResource, request);
243 }
244
248 template<typename TagResourceRequestT = Model::TagResourceRequest>
249 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
250 {
251 return SubmitAsync(&DLMClient::TagResource, request, handler, context);
252 }
253
261
265 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
266 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
267 {
268 return SubmitCallable(&DLMClient::UntagResource, request);
269 }
270
274 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
275 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
276 {
277 return SubmitAsync(&DLMClient::UntagResource, request, handler, context);
278 }
279
289
293 template<typename UpdateLifecyclePolicyRequestT = Model::UpdateLifecyclePolicyRequest>
294 Model::UpdateLifecyclePolicyOutcomeCallable UpdateLifecyclePolicyCallable(const UpdateLifecyclePolicyRequestT& request) const
295 {
296 return SubmitCallable(&DLMClient::UpdateLifecyclePolicy, request);
297 }
298
302 template<typename UpdateLifecyclePolicyRequestT = Model::UpdateLifecyclePolicyRequest>
303 void UpdateLifecyclePolicyAsync(const UpdateLifecyclePolicyRequestT& request, const UpdateLifecyclePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
304 {
305 return SubmitAsync(&DLMClient::UpdateLifecyclePolicy, request, handler, context);
306 }
307
308
309 void OverrideEndpoint(const Aws::String& endpoint);
310 std::shared_ptr<DLMEndpointProviderBase>& accessEndpointProvider();
311 private:
313 void init(const DLMClientConfiguration& clientConfiguration);
314
315 DLMClientConfiguration m_clientConfiguration;
316 std::shared_ptr<DLMEndpointProviderBase> m_endpointProvider;
317 };
318
319} // namespace DLM
320} // namespace Aws
std::shared_ptr< DLMEndpointProviderBase > & accessEndpointProvider()
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:275
Model::UpdateLifecyclePolicyOutcomeCallable UpdateLifecyclePolicyCallable(const UpdateLifecyclePolicyRequestT &request) const
Definition DLMClient.h:294
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
Definition DLMClient.h:215
Aws::Client::AWSJsonClient BASECLASS
Definition DLMClient.h:31
DLMClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< DLMEndpointProviderBase > endpointProvider=nullptr, const Aws::DLM::DLMClientConfiguration &clientConfiguration=Aws::DLM::DLMClientConfiguration())
DLMClientConfiguration ClientConfigurationType
Definition DLMClient.h:35
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:249
void UpdateLifecyclePolicyAsync(const UpdateLifecyclePolicyRequestT &request, const UpdateLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:303
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
DLMClient(const Aws::DLM::DLMClientConfiguration &clientConfiguration=Aws::DLM::DLMClientConfiguration(), std::shared_ptr< DLMEndpointProviderBase > endpointProvider=nullptr)
DLMClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< DLMEndpointProviderBase > endpointProvider=nullptr, const Aws::DLM::DLMClientConfiguration &clientConfiguration=Aws::DLM::DLMClientConfiguration())
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
DLMClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
Definition DLMClient.h:240
static const char * GetServiceName()
Model::CreateLifecyclePolicyOutcomeCallable CreateLifecyclePolicyCallable(const CreateLifecyclePolicyRequestT &request) const
Definition DLMClient.h:107
void DeleteLifecyclePolicyAsync(const DeleteLifecyclePolicyRequestT &request, const DeleteLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:145
virtual Model::GetLifecyclePolicyOutcome GetLifecyclePolicy(const Model::GetLifecyclePolicyRequest &request) const
void GetLifecyclePolicyAsync(const GetLifecyclePolicyRequestT &request, const GetLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:199
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
static const char * GetAllocationTag()
DLMClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
Definition DLMClient.h:266
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:224
virtual Model::CreateLifecyclePolicyOutcome CreateLifecyclePolicy(const Model::CreateLifecyclePolicyRequest &request) const
Model::DeleteLifecyclePolicyOutcomeCallable DeleteLifecyclePolicyCallable(const DeleteLifecyclePolicyRequestT &request) const
Definition DLMClient.h:136
void GetLifecyclePoliciesAsync(const GetLifecyclePoliciesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetLifecyclePoliciesRequestT &request={}) const
Definition DLMClient.h:173
DLMClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetLifecyclePolicyOutcomeCallable GetLifecyclePolicyCallable(const GetLifecyclePolicyRequestT &request) const
Definition DLMClient.h:190
virtual Model::GetLifecyclePoliciesOutcome GetLifecyclePolicies(const Model::GetLifecyclePoliciesRequest &request={}) const
virtual Model::UpdateLifecyclePolicyOutcome UpdateLifecyclePolicy(const Model::UpdateLifecyclePolicyRequest &request) const
Model::GetLifecyclePoliciesOutcomeCallable GetLifecyclePoliciesCallable(const GetLifecyclePoliciesRequestT &request={}) const
Definition DLMClient.h:164
virtual Model::DeleteLifecyclePolicyOutcome DeleteLifecyclePolicy(const Model::DeleteLifecyclePolicyRequest &request) const
DLMEndpointProvider EndpointProviderType
Definition DLMClient.h:36
void CreateLifecyclePolicyAsync(const CreateLifecyclePolicyRequestT &request, const CreateLifecyclePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Definition DLMClient.h:116
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< GetLifecyclePolicyOutcome > GetLifecyclePolicyOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< DeleteLifecyclePolicyOutcome > DeleteLifecyclePolicyOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::future< GetLifecyclePoliciesOutcome > GetLifecyclePoliciesOutcomeCallable
std::future< UpdateLifecyclePolicyOutcome > UpdateLifecyclePolicyOutcomeCallable
std::future< CreateLifecyclePolicyOutcome > CreateLifecyclePolicyOutcomeCallable
std::function< void(const DLMClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::GetLifecyclePolicyRequest &, const Model::GetLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::DeleteLifecyclePolicyRequest &, const Model::DeleteLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::GetLifecyclePoliciesRequest &, const Model::GetLifecyclePoliciesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLifecyclePoliciesResponseReceivedHandler
std::function< void(const DLMClient *, const Model::UpdateLifecyclePolicyRequest &, const Model::UpdateLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateLifecyclePolicyResponseReceivedHandler
std::function< void(const DLMClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const DLMClient *, const Model::CreateLifecyclePolicyRequest &, const Model::CreateLifecyclePolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateLifecyclePolicyResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String