AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
SigninClient.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/signin/SigninPaginationBase.h>
12#include <aws/signin/SigninServiceClientModel.h>
13#include <aws/signin/Signin_EXPORTS.h>
14
15namespace Aws {
16namespace Signin {
22class AWS_SIGNIN_API SigninClient : public Aws::Client::AWSJsonClient,
24 public SigninPaginationBase<SigninClient> {
25 public:
27 static const char* GetServiceName();
28 static const char* GetAllocationTag();
29
32
38 std::shared_ptr<SigninEndpointProviderBase> endpointProvider = nullptr);
39
44 SigninClient(const Aws::Auth::AWSCredentials& credentials, std::shared_ptr<SigninEndpointProviderBase> endpointProvider = nullptr,
46
51 SigninClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<SigninEndpointProviderBase> endpointProvider = nullptr,
54
55 /* Legacy constructors due deprecation */
61
66 SigninClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration);
67
72 SigninClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
73 const Aws::Client::ClientConfiguration& clientConfiguration);
74
75 /* End of legacy constructors due deprecation */
76 virtual ~SigninClient();
77
105
110 template <typename CreateOAuth2TokenRequestT = Model::CreateOAuth2TokenRequest>
111 Model::CreateOAuth2TokenOutcomeCallable CreateOAuth2TokenCallable(const CreateOAuth2TokenRequestT& request) const {
112 return SubmitCallable(&SigninClient::CreateOAuth2Token, request);
113 }
114
119 template <typename CreateOAuth2TokenRequestT = Model::CreateOAuth2TokenRequest>
120 void CreateOAuth2TokenAsync(const CreateOAuth2TokenRequestT& request, const CreateOAuth2TokenResponseReceivedHandler& handler,
121 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
122 return SubmitAsync(&SigninClient::CreateOAuth2Token, request, handler, context);
123 }
124
125 virtual void OverrideEndpoint(const Aws::String& endpoint);
126 virtual std::shared_ptr<SigninEndpointProviderBase>& accessEndpointProvider();
127
128 private:
130 void init(const SigninClientConfiguration& clientConfiguration);
131
132 SigninClientConfiguration m_clientConfiguration;
133 std::shared_ptr<SigninEndpointProviderBase> m_endpointProvider;
134};
135
136} // namespace Signin
137} // namespace Aws
SigninClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SigninEndpointProviderBase > endpointProvider=nullptr, const Aws::Signin::SigninClientConfiguration &clientConfiguration=Aws::Signin::SigninClientConfiguration())
SigninClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Aws::Client::AWSJsonClient BASECLASS
static const char * GetAllocationTag()
Model::CreateOAuth2TokenOutcomeCallable CreateOAuth2TokenCallable(const CreateOAuth2TokenRequestT &request) const
SigninClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< SigninEndpointProviderBase > endpointProvider=nullptr, const Aws::Signin::SigninClientConfiguration &clientConfiguration=Aws::Signin::SigninClientConfiguration())
virtual void OverrideEndpoint(const Aws::String &endpoint)
SigninClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
SigninClientConfiguration ClientConfigurationType
SigninClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual std::shared_ptr< SigninEndpointProviderBase > & accessEndpointProvider()
void CreateOAuth2TokenAsync(const CreateOAuth2TokenRequestT &request, const CreateOAuth2TokenResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SigninEndpointProvider EndpointProviderType
static const char * GetServiceName()
virtual Model::CreateOAuth2TokenOutcome CreateOAuth2Token(const Model::CreateOAuth2TokenRequest &request) const
SigninClient(const Aws::Signin::SigninClientConfiguration &clientConfiguration=Aws::Signin::SigninClientConfiguration(), std::shared_ptr< SigninEndpointProviderBase > endpointProvider=nullptr)
std::future< CreateOAuth2TokenOutcome > CreateOAuth2TokenOutcomeCallable
std::function< void(const SigninClient *, const Model::CreateOAuth2TokenRequest &, const Model::CreateOAuth2TokenOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> CreateOAuth2TokenResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String