AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
OAuthConfig.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/model/TokenEndpointAuthenticationScheme.h>
10#include <aws/iot-managed-integrations/model/ProactiveRefreshTokenRenewal.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTManagedIntegrations
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig() = default;
38 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAuthUrl() const { return m_authUrl; }
49 inline bool AuthUrlHasBeenSet() const { return m_authUrlHasBeenSet; }
50 template<typename AuthUrlT = Aws::String>
51 void SetAuthUrl(AuthUrlT&& value) { m_authUrlHasBeenSet = true; m_authUrl = std::forward<AuthUrlT>(value); }
52 template<typename AuthUrlT = Aws::String>
53 OAuthConfig& WithAuthUrl(AuthUrlT&& value) { SetAuthUrl(std::forward<AuthUrlT>(value)); return *this;}
55
57
61 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
62 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
63 template<typename TokenUrlT = Aws::String>
64 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
65 template<typename TokenUrlT = Aws::String>
66 OAuthConfig& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
68
70
74 inline const Aws::String& GetScope() const { return m_scope; }
75 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
76 template<typename ScopeT = Aws::String>
77 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
78 template<typename ScopeT = Aws::String>
79 OAuthConfig& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
81
83
87 inline TokenEndpointAuthenticationScheme GetTokenEndpointAuthenticationScheme() const { return m_tokenEndpointAuthenticationScheme; }
88 inline bool TokenEndpointAuthenticationSchemeHasBeenSet() const { return m_tokenEndpointAuthenticationSchemeHasBeenSet; }
89 inline void SetTokenEndpointAuthenticationScheme(TokenEndpointAuthenticationScheme value) { m_tokenEndpointAuthenticationSchemeHasBeenSet = true; m_tokenEndpointAuthenticationScheme = value; }
92
94
98 inline const Aws::String& GetOAuthCompleteRedirectUrl() const { return m_oAuthCompleteRedirectUrl; }
99 inline bool OAuthCompleteRedirectUrlHasBeenSet() const { return m_oAuthCompleteRedirectUrlHasBeenSet; }
100 template<typename OAuthCompleteRedirectUrlT = Aws::String>
101 void SetOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT&& value) { m_oAuthCompleteRedirectUrlHasBeenSet = true; m_oAuthCompleteRedirectUrl = std::forward<OAuthCompleteRedirectUrlT>(value); }
102 template<typename OAuthCompleteRedirectUrlT = Aws::String>
103 OAuthConfig& WithOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT&& value) { SetOAuthCompleteRedirectUrl(std::forward<OAuthCompleteRedirectUrlT>(value)); return *this;}
105
107
110 inline const ProactiveRefreshTokenRenewal& GetProactiveRefreshTokenRenewal() const { return m_proactiveRefreshTokenRenewal; }
111 inline bool ProactiveRefreshTokenRenewalHasBeenSet() const { return m_proactiveRefreshTokenRenewalHasBeenSet; }
112 template<typename ProactiveRefreshTokenRenewalT = ProactiveRefreshTokenRenewal>
113 void SetProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT&& value) { m_proactiveRefreshTokenRenewalHasBeenSet = true; m_proactiveRefreshTokenRenewal = std::forward<ProactiveRefreshTokenRenewalT>(value); }
114 template<typename ProactiveRefreshTokenRenewalT = ProactiveRefreshTokenRenewal>
115 OAuthConfig& WithProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT&& value) { SetProactiveRefreshTokenRenewal(std::forward<ProactiveRefreshTokenRenewalT>(value)); return *this;}
117 private:
118
119 Aws::String m_authUrl;
120 bool m_authUrlHasBeenSet = false;
121
122 Aws::String m_tokenUrl;
123 bool m_tokenUrlHasBeenSet = false;
124
125 Aws::String m_scope;
126 bool m_scopeHasBeenSet = false;
127
129 bool m_tokenEndpointAuthenticationSchemeHasBeenSet = false;
130
131 Aws::String m_oAuthCompleteRedirectUrl;
132 bool m_oAuthCompleteRedirectUrlHasBeenSet = false;
133
134 ProactiveRefreshTokenRenewal m_proactiveRefreshTokenRenewal;
135 bool m_proactiveRefreshTokenRenewalHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace IoTManagedIntegrations
140} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig()=default
const Aws::String & GetOAuthCompleteRedirectUrl() const
Definition OAuthConfig.h:98
void SetProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT &&value)
const ProactiveRefreshTokenRenewal & GetProactiveRefreshTokenRenewal() const
OAuthConfig & WithTokenUrl(TokenUrlT &&value)
Definition OAuthConfig.h:66
OAuthConfig & WithAuthUrl(AuthUrlT &&value)
Definition OAuthConfig.h:53
void SetOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT &&value)
OAuthConfig & WithTokenEndpointAuthenticationScheme(TokenEndpointAuthenticationScheme value)
Definition OAuthConfig.h:90
OAuthConfig & WithProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
OAuthConfig & WithOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig(Aws::Utils::Json::JsonView jsonValue)
void SetTokenEndpointAuthenticationScheme(TokenEndpointAuthenticationScheme value)
Definition OAuthConfig.h:89
OAuthConfig & WithScope(ScopeT &&value)
Definition OAuthConfig.h:79
TokenEndpointAuthenticationScheme GetTokenEndpointAuthenticationScheme() const
Definition OAuthConfig.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue