AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecycleBinClient.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_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/rbin/RecycleBinServiceClientModel.h>
13
14namespace Aws
15{
16namespace RecycleBin
17{
34 class AWS_RECYCLEBIN_API RecycleBinClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<RecycleBinClient>
35 {
36 public:
38 static const char* GetServiceName();
39 static const char* GetAllocationTag();
40
43
49 std::shared_ptr<RecycleBinEndpointProviderBase> endpointProvider = nullptr);
50
56 std::shared_ptr<RecycleBinEndpointProviderBase> endpointProvider = nullptr,
58
63 RecycleBinClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
64 std::shared_ptr<RecycleBinEndpointProviderBase> endpointProvider = nullptr,
66
67
68 /* Legacy constructors due deprecation */
74
80 const Aws::Client::ClientConfiguration& clientConfiguration);
81
86 RecycleBinClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
87 const Aws::Client::ClientConfiguration& clientConfiguration);
88
89 /* End of legacy constructors due deprecation */
91
101
105 template<typename CreateRuleRequestT = Model::CreateRuleRequest>
106 Model::CreateRuleOutcomeCallable CreateRuleCallable(const CreateRuleRequestT& request) const
107 {
108 return SubmitCallable(&RecycleBinClient::CreateRule, request);
109 }
110
114 template<typename CreateRuleRequestT = Model::CreateRuleRequest>
115 void CreateRuleAsync(const CreateRuleRequestT& request, const CreateRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
116 {
117 return SubmitAsync(&RecycleBinClient::CreateRule, request, handler, context);
118 }
119
129
133 template<typename DeleteRuleRequestT = Model::DeleteRuleRequest>
134 Model::DeleteRuleOutcomeCallable DeleteRuleCallable(const DeleteRuleRequestT& request) const
135 {
136 return SubmitCallable(&RecycleBinClient::DeleteRule, request);
137 }
138
142 template<typename DeleteRuleRequestT = Model::DeleteRuleRequest>
143 void DeleteRuleAsync(const DeleteRuleRequestT& request, const DeleteRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
144 {
145 return SubmitAsync(&RecycleBinClient::DeleteRule, request, handler, context);
146 }
147
154
158 template<typename GetRuleRequestT = Model::GetRuleRequest>
159 Model::GetRuleOutcomeCallable GetRuleCallable(const GetRuleRequestT& request) const
160 {
161 return SubmitCallable(&RecycleBinClient::GetRule, request);
162 }
163
167 template<typename GetRuleRequestT = Model::GetRuleRequest>
168 void GetRuleAsync(const GetRuleRequestT& request, const GetRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
169 {
170 return SubmitAsync(&RecycleBinClient::GetRule, request, handler, context);
171 }
172
179
183 template<typename ListRulesRequestT = Model::ListRulesRequest>
184 Model::ListRulesOutcomeCallable ListRulesCallable(const ListRulesRequestT& request) const
185 {
186 return SubmitCallable(&RecycleBinClient::ListRules, request);
187 }
188
192 template<typename ListRulesRequestT = Model::ListRulesRequest>
193 void ListRulesAsync(const ListRulesRequestT& request, const ListRulesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
194 {
195 return SubmitAsync(&RecycleBinClient::ListRules, request, handler, context);
196 }
197
204
208 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
209 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
210 {
211 return SubmitCallable(&RecycleBinClient::ListTagsForResource, request);
212 }
213
217 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
218 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
219 {
220 return SubmitAsync(&RecycleBinClient::ListTagsForResource, request, handler, context);
221 }
222
230
234 template<typename LockRuleRequestT = Model::LockRuleRequest>
235 Model::LockRuleOutcomeCallable LockRuleCallable(const LockRuleRequestT& request) const
236 {
237 return SubmitCallable(&RecycleBinClient::LockRule, request);
238 }
239
243 template<typename LockRuleRequestT = Model::LockRuleRequest>
244 void LockRuleAsync(const LockRuleRequestT& request, const LockRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
245 {
246 return SubmitAsync(&RecycleBinClient::LockRule, request, handler, context);
247 }
248
255
259 template<typename TagResourceRequestT = Model::TagResourceRequest>
260 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
261 {
262 return SubmitCallable(&RecycleBinClient::TagResource, request);
263 }
264
268 template<typename TagResourceRequestT = Model::TagResourceRequest>
269 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
270 {
271 return SubmitAsync(&RecycleBinClient::TagResource, request, handler, context);
272 }
273
282
286 template<typename UnlockRuleRequestT = Model::UnlockRuleRequest>
287 Model::UnlockRuleOutcomeCallable UnlockRuleCallable(const UnlockRuleRequestT& request) const
288 {
289 return SubmitCallable(&RecycleBinClient::UnlockRule, request);
290 }
291
295 template<typename UnlockRuleRequestT = Model::UnlockRuleRequest>
296 void UnlockRuleAsync(const UnlockRuleRequestT& request, const UnlockRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
297 {
298 return SubmitAsync(&RecycleBinClient::UnlockRule, request, handler, context);
299 }
300
307
311 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
312 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
313 {
314 return SubmitCallable(&RecycleBinClient::UntagResource, request);
315 }
316
320 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
321 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
322 {
323 return SubmitAsync(&RecycleBinClient::UntagResource, request, handler, context);
324 }
325
338
342 template<typename UpdateRuleRequestT = Model::UpdateRuleRequest>
343 Model::UpdateRuleOutcomeCallable UpdateRuleCallable(const UpdateRuleRequestT& request) const
344 {
345 return SubmitCallable(&RecycleBinClient::UpdateRule, request);
346 }
347
351 template<typename UpdateRuleRequestT = Model::UpdateRuleRequest>
352 void UpdateRuleAsync(const UpdateRuleRequestT& request, const UpdateRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
353 {
354 return SubmitAsync(&RecycleBinClient::UpdateRule, request, handler, context);
355 }
356
357
358 void OverrideEndpoint(const Aws::String& endpoint);
359 std::shared_ptr<RecycleBinEndpointProviderBase>& accessEndpointProvider();
360 private:
362 void init(const RecycleBinClientConfiguration& clientConfiguration);
363
364 RecycleBinClientConfiguration m_clientConfiguration;
365 std::shared_ptr<RecycleBinEndpointProviderBase> m_endpointProvider;
366 };
367
368} // namespace RecycleBin
369} // namespace Aws
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetRuleOutcomeCallable GetRuleCallable(const GetRuleRequestT &request) const
void OverrideEndpoint(const Aws::String &endpoint)
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
RecycleBinClient(const Aws::RecycleBin::RecycleBinClientConfiguration &clientConfiguration=Aws::RecycleBin::RecycleBinClientConfiguration(), std::shared_ptr< RecycleBinEndpointProviderBase > endpointProvider=nullptr)
RecycleBinClientConfiguration ClientConfigurationType
RecycleBinClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
void GetRuleAsync(const GetRuleRequestT &request, const GetRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::LockRuleOutcome LockRule(const Model::LockRuleRequest &request) const
Model::UpdateRuleOutcomeCallable UpdateRuleCallable(const UpdateRuleRequestT &request) const
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
virtual Model::DeleteRuleOutcome DeleteRule(const Model::DeleteRuleRequest &request) const
std::shared_ptr< RecycleBinEndpointProviderBase > & accessEndpointProvider()
Model::DeleteRuleOutcomeCallable DeleteRuleCallable(const DeleteRuleRequestT &request) const
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
RecycleBinClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::CreateRuleOutcomeCallable CreateRuleCallable(const CreateRuleRequestT &request) const
Aws::Client::AWSJsonClient BASECLASS
virtual Model::UpdateRuleOutcome UpdateRule(const Model::UpdateRuleRequest &request) const
void ListRulesAsync(const ListRulesRequestT &request, const ListRulesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListRulesOutcomeCallable ListRulesCallable(const ListRulesRequestT &request) const
void UnlockRuleAsync(const UnlockRuleRequestT &request, const UnlockRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
void LockRuleAsync(const LockRuleRequestT &request, const LockRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
RecycleBinClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< RecycleBinEndpointProviderBase > endpointProvider=nullptr, const Aws::RecycleBin::RecycleBinClientConfiguration &clientConfiguration=Aws::RecycleBin::RecycleBinClientConfiguration())
static const char * GetAllocationTag()
virtual Model::CreateRuleOutcome CreateRule(const Model::CreateRuleRequest &request) const
virtual Model::UnlockRuleOutcome UnlockRule(const Model::UnlockRuleRequest &request) const
RecycleBinClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< RecycleBinEndpointProviderBase > endpointProvider=nullptr, const Aws::RecycleBin::RecycleBinClientConfiguration &clientConfiguration=Aws::RecycleBin::RecycleBinClientConfiguration())
virtual Model::ListRulesOutcome ListRules(const Model::ListRulesRequest &request) const
static const char * GetServiceName()
void DeleteRuleAsync(const DeleteRuleRequestT &request, const DeleteRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
RecycleBinClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
RecycleBinEndpointProvider EndpointProviderType
void UpdateRuleAsync(const UpdateRuleRequestT &request, const UpdateRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::LockRuleOutcomeCallable LockRuleCallable(const LockRuleRequestT &request) const
virtual Model::GetRuleOutcome GetRule(const Model::GetRuleRequest &request) const
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
void CreateRuleAsync(const CreateRuleRequestT &request, const CreateRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::UnlockRuleOutcomeCallable UnlockRuleCallable(const UnlockRuleRequestT &request) const
std::future< GetRuleOutcome > GetRuleOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< UpdateRuleOutcome > UpdateRuleOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< DeleteRuleOutcome > DeleteRuleOutcomeCallable
std::future< CreateRuleOutcome > CreateRuleOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::future< UnlockRuleOutcome > UnlockRuleOutcomeCallable
std::future< ListRulesOutcome > ListRulesOutcomeCallable
std::future< LockRuleOutcome > LockRuleOutcomeCallable
std::function< void(const RecycleBinClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::DeleteRuleRequest &, const Model::DeleteRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::LockRuleRequest &, const Model::LockRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > LockRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::UpdateRuleRequest &, const Model::UpdateRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::GetRuleRequest &, const Model::GetRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::CreateRuleRequest &, const Model::CreateRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::UnlockRuleRequest &, const Model::UnlockRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UnlockRuleResponseReceivedHandler
std::function< void(const RecycleBinClient *, const Model::ListRulesRequest &, const Model::ListRulesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRulesResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String