AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MigrationHubConfigClient.h
1
6#pragma once
7#include <aws/migrationhub-config/MigrationHubConfig_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/migrationhub-config/MigrationHubConfigServiceClientModel.h>
13
14namespace Aws
15{
16namespace MigrationHubConfig
17{
32 class AWS_MIGRATIONHUBCONFIG_API MigrationHubConfigClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<MigrationHubConfigClient>
33 {
34 public:
36 static const char* GetServiceName();
37 static const char* GetAllocationTag();
38
41
47 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr);
48
54 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
56
61 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
62 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
64
65
66 /* Legacy constructors due deprecation */
72
78 const Aws::Client::ClientConfiguration& clientConfiguration);
79
84 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
85 const Aws::Client::ClientConfiguration& clientConfiguration);
86
87 /* End of legacy constructors due deprecation */
89
97
101 template<typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
102 Model::CreateHomeRegionControlOutcomeCallable CreateHomeRegionControlCallable(const CreateHomeRegionControlRequestT& request) const
103 {
104 return SubmitCallable(&MigrationHubConfigClient::CreateHomeRegionControl, request);
105 }
106
110 template<typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
111 void CreateHomeRegionControlAsync(const CreateHomeRegionControlRequestT& request, const CreateHomeRegionControlResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
112 {
113 return SubmitAsync(&MigrationHubConfigClient::CreateHomeRegionControl, request, handler, context);
114 }
115
124
128 template<typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
129 Model::DeleteHomeRegionControlOutcomeCallable DeleteHomeRegionControlCallable(const DeleteHomeRegionControlRequestT& request) const
130 {
131 return SubmitCallable(&MigrationHubConfigClient::DeleteHomeRegionControl, request);
132 }
133
137 template<typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
138 void DeleteHomeRegionControlAsync(const DeleteHomeRegionControlRequestT& request, const DeleteHomeRegionControlResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
139 {
140 return SubmitAsync(&MigrationHubConfigClient::DeleteHomeRegionControl, request, handler, context);
141 }
142
150
154 template<typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
155 Model::DescribeHomeRegionControlsOutcomeCallable DescribeHomeRegionControlsCallable(const DescribeHomeRegionControlsRequestT& request = {}) const
156 {
157 return SubmitCallable(&MigrationHubConfigClient::DescribeHomeRegionControls, request);
158 }
159
163 template<typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
164 void DescribeHomeRegionControlsAsync(const DescribeHomeRegionControlsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const DescribeHomeRegionControlsRequestT& request = {}) const
165 {
166 return SubmitAsync(&MigrationHubConfigClient::DescribeHomeRegionControls, request, handler, context);
167 }
168
180
184 template<typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
185 Model::GetHomeRegionOutcomeCallable GetHomeRegionCallable(const GetHomeRegionRequestT& request = {}) const
186 {
187 return SubmitCallable(&MigrationHubConfigClient::GetHomeRegion, request);
188 }
189
193 template<typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
194 void GetHomeRegionAsync(const GetHomeRegionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetHomeRegionRequestT& request = {}) const
195 {
196 return SubmitAsync(&MigrationHubConfigClient::GetHomeRegion, request, handler, context);
197 }
198
199
200 void OverrideEndpoint(const Aws::String& endpoint);
201 std::shared_ptr<MigrationHubConfigEndpointProviderBase>& accessEndpointProvider();
202 private:
204 void init(const MigrationHubConfigClientConfiguration& clientConfiguration);
205
206 MigrationHubConfigClientConfiguration m_clientConfiguration;
207 std::shared_ptr<MigrationHubConfigEndpointProviderBase> m_endpointProvider;
208 };
209
210} // namespace MigrationHubConfig
211} // 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)
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
std::shared_ptr< MigrationHubConfigEndpointProviderBase > & accessEndpointProvider()
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
void OverrideEndpoint(const Aws::String &endpoint)
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::DescribeHomeRegionControlsRequest &, const Model::DescribeHomeRegionControlsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeHomeRegionControlsResponseReceivedHandler
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::DeleteHomeRegionControlRequest &, const Model::DeleteHomeRegionControlOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteHomeRegionControlResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String