AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountClient.h
1
6#pragma once
7#include <aws/account/Account_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/account/AccountServiceClientModel.h>
13
14namespace Aws
15{
16namespace Account
17{
21 class AWS_ACCOUNT_API AccountClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<AccountClient>
22 {
23 public:
25 static const char* GetServiceName();
26 static const char* GetAllocationTag();
27
30
36 std::shared_ptr<AccountEndpointProviderBase> endpointProvider = nullptr);
37
43 std::shared_ptr<AccountEndpointProviderBase> endpointProvider = nullptr,
45
50 AccountClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<AccountEndpointProviderBase> endpointProvider = nullptr,
53
54
55 /* Legacy constructors due deprecation */
61
67 const Aws::Client::ClientConfiguration& clientConfiguration);
68
73 AccountClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
76 /* End of legacy constructors due deprecation */
77 virtual ~AccountClient();
78
87
91 template<typename AcceptPrimaryEmailUpdateRequestT = Model::AcceptPrimaryEmailUpdateRequest>
92 Model::AcceptPrimaryEmailUpdateOutcomeCallable AcceptPrimaryEmailUpdateCallable(const AcceptPrimaryEmailUpdateRequestT& request) const
93 {
94 return SubmitCallable(&AccountClient::AcceptPrimaryEmailUpdate, request);
95 }
96
100 template<typename AcceptPrimaryEmailUpdateRequestT = Model::AcceptPrimaryEmailUpdateRequest>
101 void AcceptPrimaryEmailUpdateAsync(const AcceptPrimaryEmailUpdateRequestT& request, const AcceptPrimaryEmailUpdateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
102 {
103 return SubmitAsync(&AccountClient::AcceptPrimaryEmailUpdate, request, handler, context);
104 }
105
122
126 template<typename DeleteAlternateContactRequestT = Model::DeleteAlternateContactRequest>
127 Model::DeleteAlternateContactOutcomeCallable DeleteAlternateContactCallable(const DeleteAlternateContactRequestT& request) const
128 {
129 return SubmitCallable(&AccountClient::DeleteAlternateContact, request);
130 }
131
135 template<typename DeleteAlternateContactRequestT = Model::DeleteAlternateContactRequest>
136 void DeleteAlternateContactAsync(const DeleteAlternateContactRequestT& request, const DeleteAlternateContactResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
137 {
138 return SubmitAsync(&AccountClient::DeleteAlternateContact, request, handler, context);
139 }
140
149
153 template<typename DisableRegionRequestT = Model::DisableRegionRequest>
154 Model::DisableRegionOutcomeCallable DisableRegionCallable(const DisableRegionRequestT& request) const
155 {
156 return SubmitCallable(&AccountClient::DisableRegion, request);
157 }
158
162 template<typename DisableRegionRequestT = Model::DisableRegionRequest>
163 void DisableRegionAsync(const DisableRegionRequestT& request, const DisableRegionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
164 {
165 return SubmitAsync(&AccountClient::DisableRegion, request, handler, context);
166 }
167
175
179 template<typename EnableRegionRequestT = Model::EnableRegionRequest>
180 Model::EnableRegionOutcomeCallable EnableRegionCallable(const EnableRegionRequestT& request) const
181 {
182 return SubmitCallable(&AccountClient::EnableRegion, request);
183 }
184
188 template<typename EnableRegionRequestT = Model::EnableRegionRequest>
189 void EnableRegionAsync(const EnableRegionRequestT& request, const EnableRegionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
190 {
191 return SubmitAsync(&AccountClient::EnableRegion, request, handler, context);
192 }
193
210
214 template<typename GetAlternateContactRequestT = Model::GetAlternateContactRequest>
215 Model::GetAlternateContactOutcomeCallable GetAlternateContactCallable(const GetAlternateContactRequestT& request) const
216 {
217 return SubmitCallable(&AccountClient::GetAlternateContact, request);
218 }
219
223 template<typename GetAlternateContactRequestT = Model::GetAlternateContactRequest>
224 void GetAlternateContactAsync(const GetAlternateContactRequestT& request, const GetAlternateContactResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
225 {
226 return SubmitAsync(&AccountClient::GetAlternateContact, request, handler, context);
227 }
228
239
243 template<typename GetContactInformationRequestT = Model::GetContactInformationRequest>
244 Model::GetContactInformationOutcomeCallable GetContactInformationCallable(const GetContactInformationRequestT& request = {}) const
245 {
246 return SubmitCallable(&AccountClient::GetContactInformation, request);
247 }
248
252 template<typename GetContactInformationRequestT = Model::GetContactInformationRequest>
253 void GetContactInformationAsync(const GetContactInformationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetContactInformationRequestT& request = {}) const
254 {
255 return SubmitAsync(&AccountClient::GetContactInformation, request, handler, context);
256 }
257
265
269 template<typename GetPrimaryEmailRequestT = Model::GetPrimaryEmailRequest>
270 Model::GetPrimaryEmailOutcomeCallable GetPrimaryEmailCallable(const GetPrimaryEmailRequestT& request) const
271 {
272 return SubmitCallable(&AccountClient::GetPrimaryEmail, request);
273 }
274
278 template<typename GetPrimaryEmailRequestT = Model::GetPrimaryEmailRequest>
279 void GetPrimaryEmailAsync(const GetPrimaryEmailRequestT& request, const GetPrimaryEmailResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
280 {
281 return SubmitAsync(&AccountClient::GetPrimaryEmail, request, handler, context);
282 }
283
291
295 template<typename GetRegionOptStatusRequestT = Model::GetRegionOptStatusRequest>
296 Model::GetRegionOptStatusOutcomeCallable GetRegionOptStatusCallable(const GetRegionOptStatusRequestT& request) const
297 {
298 return SubmitCallable(&AccountClient::GetRegionOptStatus, request);
299 }
300
304 template<typename GetRegionOptStatusRequestT = Model::GetRegionOptStatusRequest>
305 void GetRegionOptStatusAsync(const GetRegionOptStatusRequestT& request, const GetRegionOptStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
306 {
307 return SubmitAsync(&AccountClient::GetRegionOptStatus, request, handler, context);
308 }
309
319
323 template<typename ListRegionsRequestT = Model::ListRegionsRequest>
324 Model::ListRegionsOutcomeCallable ListRegionsCallable(const ListRegionsRequestT& request = {}) const
325 {
326 return SubmitCallable(&AccountClient::ListRegions, request);
327 }
328
332 template<typename ListRegionsRequestT = Model::ListRegionsRequest>
333 void ListRegionsAsync(const ListRegionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListRegionsRequestT& request = {}) const
334 {
335 return SubmitAsync(&AccountClient::ListRegions, request, handler, context);
336 }
337
354
358 template<typename PutAlternateContactRequestT = Model::PutAlternateContactRequest>
359 Model::PutAlternateContactOutcomeCallable PutAlternateContactCallable(const PutAlternateContactRequestT& request) const
360 {
361 return SubmitCallable(&AccountClient::PutAlternateContact, request);
362 }
363
367 template<typename PutAlternateContactRequestT = Model::PutAlternateContactRequest>
368 void PutAlternateContactAsync(const PutAlternateContactRequestT& request, const PutAlternateContactResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
369 {
370 return SubmitAsync(&AccountClient::PutAlternateContact, request, handler, context);
371 }
372
383
387 template<typename PutContactInformationRequestT = Model::PutContactInformationRequest>
388 Model::PutContactInformationOutcomeCallable PutContactInformationCallable(const PutContactInformationRequestT& request) const
389 {
390 return SubmitCallable(&AccountClient::PutContactInformation, request);
391 }
392
396 template<typename PutContactInformationRequestT = Model::PutContactInformationRequest>
397 void PutContactInformationAsync(const PutContactInformationRequestT& request, const PutContactInformationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
398 {
399 return SubmitAsync(&AccountClient::PutContactInformation, request, handler, context);
400 }
401
409
413 template<typename StartPrimaryEmailUpdateRequestT = Model::StartPrimaryEmailUpdateRequest>
414 Model::StartPrimaryEmailUpdateOutcomeCallable StartPrimaryEmailUpdateCallable(const StartPrimaryEmailUpdateRequestT& request) const
415 {
416 return SubmitCallable(&AccountClient::StartPrimaryEmailUpdate, request);
417 }
418
422 template<typename StartPrimaryEmailUpdateRequestT = Model::StartPrimaryEmailUpdateRequest>
423 void StartPrimaryEmailUpdateAsync(const StartPrimaryEmailUpdateRequestT& request, const StartPrimaryEmailUpdateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
424 {
425 return SubmitAsync(&AccountClient::StartPrimaryEmailUpdate, request, handler, context);
426 }
427
428
429 void OverrideEndpoint(const Aws::String& endpoint);
430 std::shared_ptr<AccountEndpointProviderBase>& accessEndpointProvider();
431 private:
433 void init(const AccountClientConfiguration& clientConfiguration);
434
435 AccountClientConfiguration m_clientConfiguration;
436 std::shared_ptr<AccountEndpointProviderBase> m_endpointProvider;
437 };
438
439} // namespace Account
440} // namespace Aws
void GetContactInformationAsync(const GetContactInformationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetContactInformationRequestT &request={}) const
void DeleteAlternateContactAsync(const DeleteAlternateContactRequestT &request, const DeleteAlternateContactResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetPrimaryEmailOutcomeCallable GetPrimaryEmailCallable(const GetPrimaryEmailRequestT &request) const
virtual Model::StartPrimaryEmailUpdateOutcome StartPrimaryEmailUpdate(const Model::StartPrimaryEmailUpdateRequest &request) const
Model::GetAlternateContactOutcomeCallable GetAlternateContactCallable(const GetAlternateContactRequestT &request) const
virtual Model::AcceptPrimaryEmailUpdateOutcome AcceptPrimaryEmailUpdate(const Model::AcceptPrimaryEmailUpdateRequest &request) const
Model::DeleteAlternateContactOutcomeCallable DeleteAlternateContactCallable(const DeleteAlternateContactRequestT &request) const
virtual Model::DeleteAlternateContactOutcome DeleteAlternateContact(const Model::DeleteAlternateContactRequest &request) const
virtual Model::GetRegionOptStatusOutcome GetRegionOptStatus(const Model::GetRegionOptStatusRequest &request) const
Model::AcceptPrimaryEmailUpdateOutcomeCallable AcceptPrimaryEmailUpdateCallable(const AcceptPrimaryEmailUpdateRequestT &request) const
Model::ListRegionsOutcomeCallable ListRegionsCallable(const ListRegionsRequestT &request={}) const
Model::GetRegionOptStatusOutcomeCallable GetRegionOptStatusCallable(const GetRegionOptStatusRequestT &request) const
virtual Model::PutContactInformationOutcome PutContactInformation(const Model::PutContactInformationRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::ListRegionsOutcome ListRegions(const Model::ListRegionsRequest &request={}) const
AccountEndpointProvider EndpointProviderType
virtual Model::GetContactInformationOutcome GetContactInformation(const Model::GetContactInformationRequest &request={}) const
Model::StartPrimaryEmailUpdateOutcomeCallable StartPrimaryEmailUpdateCallable(const StartPrimaryEmailUpdateRequestT &request) const
virtual Model::GetPrimaryEmailOutcome GetPrimaryEmail(const Model::GetPrimaryEmailRequest &request) const
static const char * GetServiceName()
virtual Model::PutAlternateContactOutcome PutAlternateContact(const Model::PutAlternateContactRequest &request) const
Aws::Client::AWSJsonClient BASECLASS
virtual Model::EnableRegionOutcome EnableRegion(const Model::EnableRegionRequest &request) const
void PutContactInformationAsync(const PutContactInformationRequestT &request, const PutContactInformationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetPrimaryEmailAsync(const GetPrimaryEmailRequestT &request, const GetPrimaryEmailResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void EnableRegionAsync(const EnableRegionRequestT &request, const EnableRegionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::DisableRegionOutcomeCallable DisableRegionCallable(const DisableRegionRequestT &request) const
AccountClientConfiguration ClientConfigurationType
void GetRegionOptStatusAsync(const GetRegionOptStatusRequestT &request, const GetRegionOptStatusResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void PutAlternateContactAsync(const PutAlternateContactRequestT &request, const PutAlternateContactResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AccountClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::PutAlternateContactOutcomeCallable PutAlternateContactCallable(const PutAlternateContactRequestT &request) const
void GetAlternateContactAsync(const GetAlternateContactRequestT &request, const GetAlternateContactResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::DisableRegionOutcome DisableRegion(const Model::DisableRegionRequest &request) const
AccountClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetAlternateContactOutcome GetAlternateContact(const Model::GetAlternateContactRequest &request) const
void AcceptPrimaryEmailUpdateAsync(const AcceptPrimaryEmailUpdateRequestT &request, const AcceptPrimaryEmailUpdateResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
static const char * GetAllocationTag()
AccountClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< AccountEndpointProviderBase > endpointProvider=nullptr, const Aws::Account::AccountClientConfiguration &clientConfiguration=Aws::Account::AccountClientConfiguration())
Model::EnableRegionOutcomeCallable EnableRegionCallable(const EnableRegionRequestT &request) const
void StartPrimaryEmailUpdateAsync(const StartPrimaryEmailUpdateRequestT &request, const StartPrimaryEmailUpdateResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< AccountEndpointProviderBase > & accessEndpointProvider()
void DisableRegionAsync(const DisableRegionRequestT &request, const DisableRegionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AccountClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
AccountClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< AccountEndpointProviderBase > endpointProvider=nullptr, const Aws::Account::AccountClientConfiguration &clientConfiguration=Aws::Account::AccountClientConfiguration())
void ListRegionsAsync(const ListRegionsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListRegionsRequestT &request={}) const
Model::GetContactInformationOutcomeCallable GetContactInformationCallable(const GetContactInformationRequestT &request={}) const
Model::PutContactInformationOutcomeCallable PutContactInformationCallable(const PutContactInformationRequestT &request) const
AccountClient(const Aws::Account::AccountClientConfiguration &clientConfiguration=Aws::Account::AccountClientConfiguration(), std::shared_ptr< AccountEndpointProviderBase > endpointProvider=nullptr)
std::future< GetContactInformationOutcome > GetContactInformationOutcomeCallable
std::future< GetRegionOptStatusOutcome > GetRegionOptStatusOutcomeCallable
std::future< GetAlternateContactOutcome > GetAlternateContactOutcomeCallable
std::future< DisableRegionOutcome > DisableRegionOutcomeCallable
std::future< GetPrimaryEmailOutcome > GetPrimaryEmailOutcomeCallable
std::future< PutContactInformationOutcome > PutContactInformationOutcomeCallable
std::future< AcceptPrimaryEmailUpdateOutcome > AcceptPrimaryEmailUpdateOutcomeCallable
std::future< PutAlternateContactOutcome > PutAlternateContactOutcomeCallable
std::future< DeleteAlternateContactOutcome > DeleteAlternateContactOutcomeCallable
std::future< ListRegionsOutcome > ListRegionsOutcomeCallable
std::future< EnableRegionOutcome > EnableRegionOutcomeCallable
std::future< StartPrimaryEmailUpdateOutcome > StartPrimaryEmailUpdateOutcomeCallable
std::function< void(const AccountClient *, const Model::PutContactInformationRequest &, const Model::PutContactInformationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutContactInformationResponseReceivedHandler
std::function< void(const AccountClient *, const Model::DeleteAlternateContactRequest &, const Model::DeleteAlternateContactOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteAlternateContactResponseReceivedHandler
std::function< void(const AccountClient *, const Model::GetRegionOptStatusRequest &, const Model::GetRegionOptStatusOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRegionOptStatusResponseReceivedHandler
std::function< void(const AccountClient *, const Model::GetPrimaryEmailRequest &, const Model::GetPrimaryEmailOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPrimaryEmailResponseReceivedHandler
std::function< void(const AccountClient *, const Model::EnableRegionRequest &, const Model::EnableRegionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > EnableRegionResponseReceivedHandler
std::function< void(const AccountClient *, const Model::GetAlternateContactRequest &, const Model::GetAlternateContactOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAlternateContactResponseReceivedHandler
std::function< void(const AccountClient *, const Model::StartPrimaryEmailUpdateRequest &, const Model::StartPrimaryEmailUpdateOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartPrimaryEmailUpdateResponseReceivedHandler
std::function< void(const AccountClient *, const Model::GetContactInformationRequest &, const Model::GetContactInformationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetContactInformationResponseReceivedHandler
std::function< void(const AccountClient *, const Model::ListRegionsRequest &, const Model::ListRegionsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRegionsResponseReceivedHandler
std::function< void(const AccountClient *, const Model::PutAlternateContactRequest &, const Model::PutAlternateContactOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutAlternateContactResponseReceivedHandler
std::function< void(const AccountClient *, const Model::DisableRegionRequest &, const Model::DisableRegionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DisableRegionResponseReceivedHandler
std::function< void(const AccountClient *, const Model::AcceptPrimaryEmailUpdateRequest &, const Model::AcceptPrimaryEmailUpdateOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > AcceptPrimaryEmailUpdateResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String