AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
MigrationHubConfigClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/migrationhub-config/MigrationHubConfigPaginationBase.h>
12#include <aws/migrationhub-config/MigrationHubConfigServiceClientModel.h>
13#include <aws/migrationhub-config/MigrationHubConfigWaiter.h>
14#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
15
16namespace Aws {
17namespace MigrationHubConfig {
32class AWS_MIGRATIONHUBCONFIG_API MigrationHubConfigClient : public Aws::Client::AWSJsonClient,
33 public Aws::Client::ClientWithAsyncTemplateMethods<MigrationHubConfigClient>,
34 public MigrationHubConfigPaginationBase<MigrationHubConfigClient>,
35 public MigrationHubConfigWaiter<MigrationHubConfigClient> {
36 public:
38 static const char* GetServiceName();
39 static const char* GetAllocationTag();
40
43
50 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr);
51
57 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
60
65 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
66 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
69
70 /* Legacy constructors due deprecation */
76
82
87 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
88 const Aws::Client::ClientConfiguration& clientConfiguration);
89
90 /* End of legacy constructors due deprecation */
92
100
105 template <typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
106 Model::CreateHomeRegionControlOutcomeCallable CreateHomeRegionControlCallable(const CreateHomeRegionControlRequestT& request) const {
107 return SubmitCallable(&MigrationHubConfigClient::CreateHomeRegionControl, request);
108 }
109
114 template <typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
115 void CreateHomeRegionControlAsync(const CreateHomeRegionControlRequestT& request,
117 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
118 return SubmitAsync(&MigrationHubConfigClient::CreateHomeRegionControl, request, handler, context);
119 }
120
129
134 template <typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
135 Model::DeleteHomeRegionControlOutcomeCallable DeleteHomeRegionControlCallable(const DeleteHomeRegionControlRequestT& request) const {
136 return SubmitCallable(&MigrationHubConfigClient::DeleteHomeRegionControl, request);
137 }
138
143 template <typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
144 void DeleteHomeRegionControlAsync(const DeleteHomeRegionControlRequestT& request,
146 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
147 return SubmitAsync(&MigrationHubConfigClient::DeleteHomeRegionControl, request, handler, context);
148 }
149
157 const Model::DescribeHomeRegionControlsRequest& request = {}) const;
158
163 template <typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
165 const DescribeHomeRegionControlsRequestT& request = {}) const {
166 return SubmitCallable(&MigrationHubConfigClient::DescribeHomeRegionControls, request);
167 }
168
173 template <typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
175 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
176 const DescribeHomeRegionControlsRequestT& request = {}) const {
177 return SubmitAsync(&MigrationHubConfigClient::DescribeHomeRegionControls, request, handler, context);
178 }
179
191
195 template <typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
196 Model::GetHomeRegionOutcomeCallable GetHomeRegionCallable(const GetHomeRegionRequestT& request = {}) const {
197 return SubmitCallable(&MigrationHubConfigClient::GetHomeRegion, request);
198 }
199
204 template <typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
206 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
207 const GetHomeRegionRequestT& request = {}) const {
208 return SubmitAsync(&MigrationHubConfigClient::GetHomeRegion, request, handler, context);
209 }
210
211 virtual void OverrideEndpoint(const Aws::String& endpoint);
212 virtual std::shared_ptr<MigrationHubConfigEndpointProviderBase>& accessEndpointProvider();
213
214 private:
216 void init(const MigrationHubConfigClientConfiguration& clientConfiguration);
217
219
220 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request, Aws::Http::HttpMethod httpMethod) const;
221
222 MigrationHubConfigClientConfiguration m_clientConfiguration;
223 std::shared_ptr<MigrationHubConfigEndpointProviderBase> m_endpointProvider;
224};
225
226} // namespace MigrationHubConfig
227} // namespace Aws
void CreateHomeRegionControlAsync(const CreateHomeRegionControlRequestT &request, const CreateHomeRegionControlResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::CreateHomeRegionControlOutcomeCallable CreateHomeRegionControlCallable(const CreateHomeRegionControlRequestT &request) const
Model::DescribeHomeRegionControlsOutcomeCallable DescribeHomeRegionControlsCallable(const DescribeHomeRegionControlsRequestT &request={}) const
MigrationHubConfigClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual void OverrideEndpoint(const Aws::String &endpoint)
Model::GetHomeRegionOutcomeCallable GetHomeRegionCallable(const GetHomeRegionRequestT &request={}) const
MigrationHubConfigClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< MigrationHubConfigEndpointProviderBase > endpointProvider=nullptr, const Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration &clientConfiguration=Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration())
MigrationHubConfigClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void DescribeHomeRegionControlsAsync(const DescribeHomeRegionControlsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeHomeRegionControlsRequestT &request={}) const
MigrationHubConfigClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::DeleteHomeRegionControlOutcome DeleteHomeRegionControl(const Model::DeleteHomeRegionControlRequest &request) const
void GetHomeRegionAsync(const GetHomeRegionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetHomeRegionRequestT &request={}) const
MigrationHubConfigClient(const Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration &clientConfiguration=Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration(), std::shared_ptr< MigrationHubConfigEndpointProviderBase > endpointProvider=nullptr)
Model::DeleteHomeRegionControlOutcomeCallable DeleteHomeRegionControlCallable(const DeleteHomeRegionControlRequestT &request) const
virtual Model::GetHomeRegionOutcome GetHomeRegion(const Model::GetHomeRegionRequest &request={}) const
MigrationHubConfigClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< MigrationHubConfigEndpointProviderBase > endpointProvider=nullptr, const Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration &clientConfiguration=Aws::MigrationHubConfig::MigrationHubConfigClientConfiguration())
virtual Model::DescribeHomeRegionControlsOutcome DescribeHomeRegionControls(const Model::DescribeHomeRegionControlsRequest &request={}) const
MigrationHubConfigClientConfiguration ClientConfigurationType
virtual std::shared_ptr< MigrationHubConfigEndpointProviderBase > & accessEndpointProvider()
virtual Model::CreateHomeRegionControlOutcome CreateHomeRegionControl(const Model::CreateHomeRegionControlRequest &request) const
void DeleteHomeRegionControlAsync(const DeleteHomeRegionControlRequestT &request, const DeleteHomeRegionControlResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::future< GetHomeRegionOutcome > GetHomeRegionOutcomeCallable
std::future< CreateHomeRegionControlOutcome > CreateHomeRegionControlOutcomeCallable
std::future< DescribeHomeRegionControlsOutcome > DescribeHomeRegionControlsOutcomeCallable
std::future< DeleteHomeRegionControlOutcome > DeleteHomeRegionControlOutcomeCallable
std::function< void(const MigrationHubConfigClient *, const Model::GetHomeRegionRequest &, const Model::GetHomeRegionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetHomeRegionResponseReceivedHandler
std::function< void(const MigrationHubConfigClient *, const Model::DeleteHomeRegionControlRequest &, const Model::DeleteHomeRegionControlOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DeleteHomeRegionControlResponseReceivedHandler
std::function< void(const MigrationHubConfigClient *, const Model::CreateHomeRegionControlRequest &, const Model::CreateHomeRegionControlOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> CreateHomeRegionControlResponseReceivedHandler
std::function< void(const MigrationHubConfigClient *, const Model::DescribeHomeRegionControlsRequest &, const Model::DescribeHomeRegionControlsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DescribeHomeRegionControlsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String