AWS SDK for C++

AWS SDK for C++ Version 1.11.753

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/MigrationHubConfig_EXPORTS.h>
14
15namespace Aws {
16namespace MigrationHubConfig {
31class AWS_MIGRATIONHUBCONFIG_API MigrationHubConfigClient : public Aws::Client::AWSJsonClient,
32 public Aws::Client::ClientWithAsyncTemplateMethods<MigrationHubConfigClient>,
33 public MigrationHubConfigPaginationBase<MigrationHubConfigClient> {
34 public:
36 static const char* GetServiceName();
37 static const char* GetAllocationTag();
38
41
48 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr);
49
55 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
58
63 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
64 std::shared_ptr<MigrationHubConfigEndpointProviderBase> endpointProvider = nullptr,
67
68 /* Legacy constructors due deprecation */
74
80
85 MigrationHubConfigClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
86 const Aws::Client::ClientConfiguration& clientConfiguration);
87
88 /* End of legacy constructors due deprecation */
90
98
103 template <typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
104 Model::CreateHomeRegionControlOutcomeCallable CreateHomeRegionControlCallable(const CreateHomeRegionControlRequestT& request) const {
105 return SubmitCallable(&MigrationHubConfigClient::CreateHomeRegionControl, request);
106 }
107
112 template <typename CreateHomeRegionControlRequestT = Model::CreateHomeRegionControlRequest>
113 void CreateHomeRegionControlAsync(const CreateHomeRegionControlRequestT& request,
115 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
116 return SubmitAsync(&MigrationHubConfigClient::CreateHomeRegionControl, request, handler, context);
117 }
118
127
132 template <typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
133 Model::DeleteHomeRegionControlOutcomeCallable DeleteHomeRegionControlCallable(const DeleteHomeRegionControlRequestT& request) const {
134 return SubmitCallable(&MigrationHubConfigClient::DeleteHomeRegionControl, request);
135 }
136
141 template <typename DeleteHomeRegionControlRequestT = Model::DeleteHomeRegionControlRequest>
142 void DeleteHomeRegionControlAsync(const DeleteHomeRegionControlRequestT& request,
144 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
145 return SubmitAsync(&MigrationHubConfigClient::DeleteHomeRegionControl, request, handler, context);
146 }
147
155 const Model::DescribeHomeRegionControlsRequest& request = {}) const;
156
161 template <typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
163 const DescribeHomeRegionControlsRequestT& request = {}) const {
164 return SubmitCallable(&MigrationHubConfigClient::DescribeHomeRegionControls, request);
165 }
166
171 template <typename DescribeHomeRegionControlsRequestT = Model::DescribeHomeRegionControlsRequest>
173 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
174 const DescribeHomeRegionControlsRequestT& request = {}) const {
175 return SubmitAsync(&MigrationHubConfigClient::DescribeHomeRegionControls, request, handler, context);
176 }
177
189
193 template <typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
194 Model::GetHomeRegionOutcomeCallable GetHomeRegionCallable(const GetHomeRegionRequestT& request = {}) const {
195 return SubmitCallable(&MigrationHubConfigClient::GetHomeRegion, request);
196 }
197
202 template <typename GetHomeRegionRequestT = Model::GetHomeRegionRequest>
204 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
205 const GetHomeRegionRequestT& request = {}) const {
206 return SubmitAsync(&MigrationHubConfigClient::GetHomeRegion, request, handler, context);
207 }
208
209 virtual void OverrideEndpoint(const Aws::String& endpoint);
210 virtual std::shared_ptr<MigrationHubConfigEndpointProviderBase>& accessEndpointProvider();
211
212 private:
214 void init(const MigrationHubConfigClientConfiguration& clientConfiguration);
215
216 MigrationHubConfigClientConfiguration m_clientConfiguration;
217 std::shared_ptr<MigrationHubConfigEndpointProviderBase> m_endpointProvider;
218};
219
220} // namespace MigrationHubConfig
221} // 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