AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OAuthConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/ProactiveRefreshTokenRenewal.h>
10#include <aws/iot-managed-integrations/model/TokenEndpointAuthenticationScheme.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTManagedIntegrations {
22namespace Model {
23
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig() = default;
33 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAuthUrl() const { return m_authUrl; }
43 inline bool AuthUrlHasBeenSet() const { return m_authUrlHasBeenSet; }
44 template <typename AuthUrlT = Aws::String>
45 void SetAuthUrl(AuthUrlT&& value) {
46 m_authUrlHasBeenSet = true;
47 m_authUrl = std::forward<AuthUrlT>(value);
48 }
49 template <typename AuthUrlT = Aws::String>
50 OAuthConfig& WithAuthUrl(AuthUrlT&& value) {
51 SetAuthUrl(std::forward<AuthUrlT>(value));
52 return *this;
53 }
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) {
65 m_tokenUrlHasBeenSet = true;
66 m_tokenUrl = std::forward<TokenUrlT>(value);
67 }
68 template <typename TokenUrlT = Aws::String>
69 OAuthConfig& WithTokenUrl(TokenUrlT&& value) {
70 SetTokenUrl(std::forward<TokenUrlT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetScope() const { return m_scope; }
81 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
82 template <typename ScopeT = Aws::String>
83 void SetScope(ScopeT&& value) {
84 m_scopeHasBeenSet = true;
85 m_scope = std::forward<ScopeT>(value);
86 }
87 template <typename ScopeT = Aws::String>
88 OAuthConfig& WithScope(ScopeT&& value) {
89 SetScope(std::forward<ScopeT>(value));
90 return *this;
91 }
93
95
99 inline TokenEndpointAuthenticationScheme GetTokenEndpointAuthenticationScheme() const { return m_tokenEndpointAuthenticationScheme; }
100 inline bool TokenEndpointAuthenticationSchemeHasBeenSet() const { return m_tokenEndpointAuthenticationSchemeHasBeenSet; }
102 m_tokenEndpointAuthenticationSchemeHasBeenSet = true;
103 m_tokenEndpointAuthenticationScheme = value;
104 }
110
112
116 inline const Aws::String& GetOAuthCompleteRedirectUrl() const { return m_oAuthCompleteRedirectUrl; }
117 inline bool OAuthCompleteRedirectUrlHasBeenSet() const { return m_oAuthCompleteRedirectUrlHasBeenSet; }
118 template <typename OAuthCompleteRedirectUrlT = Aws::String>
119 void SetOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT&& value) {
120 m_oAuthCompleteRedirectUrlHasBeenSet = true;
121 m_oAuthCompleteRedirectUrl = std::forward<OAuthCompleteRedirectUrlT>(value);
122 }
123 template <typename OAuthCompleteRedirectUrlT = Aws::String>
124 OAuthConfig& WithOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT&& value) {
125 SetOAuthCompleteRedirectUrl(std::forward<OAuthCompleteRedirectUrlT>(value));
126 return *this;
127 }
129
131
134 inline const ProactiveRefreshTokenRenewal& GetProactiveRefreshTokenRenewal() const { return m_proactiveRefreshTokenRenewal; }
135 inline bool ProactiveRefreshTokenRenewalHasBeenSet() const { return m_proactiveRefreshTokenRenewalHasBeenSet; }
136 template <typename ProactiveRefreshTokenRenewalT = ProactiveRefreshTokenRenewal>
137 void SetProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT&& value) {
138 m_proactiveRefreshTokenRenewalHasBeenSet = true;
139 m_proactiveRefreshTokenRenewal = std::forward<ProactiveRefreshTokenRenewalT>(value);
140 }
141 template <typename ProactiveRefreshTokenRenewalT = ProactiveRefreshTokenRenewal>
142 OAuthConfig& WithProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT&& value) {
143 SetProactiveRefreshTokenRenewal(std::forward<ProactiveRefreshTokenRenewalT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_authUrl;
149
150 Aws::String m_tokenUrl;
151
152 Aws::String m_scope;
153
155
156 Aws::String m_oAuthCompleteRedirectUrl;
157
158 ProactiveRefreshTokenRenewal m_proactiveRefreshTokenRenewal;
159 bool m_authUrlHasBeenSet = false;
160 bool m_tokenUrlHasBeenSet = false;
161 bool m_scopeHasBeenSet = false;
162 bool m_tokenEndpointAuthenticationSchemeHasBeenSet = false;
163 bool m_oAuthCompleteRedirectUrlHasBeenSet = false;
164 bool m_proactiveRefreshTokenRenewalHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace IoTManagedIntegrations
169} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API OAuthConfig()=default
const Aws::String & GetOAuthCompleteRedirectUrl() const
void SetProactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewalT &&value)
const ProactiveRefreshTokenRenewal & GetProactiveRefreshTokenRenewal() const
OAuthConfig & WithTokenUrl(TokenUrlT &&value)
Definition OAuthConfig.h:69
OAuthConfig & WithAuthUrl(AuthUrlT &&value)
Definition OAuthConfig.h:50
void SetOAuthCompleteRedirectUrl(OAuthCompleteRedirectUrlT &&value)
OAuthConfig & WithTokenEndpointAuthenticationScheme(TokenEndpointAuthenticationScheme value)
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)
OAuthConfig & WithScope(ScopeT &&value)
Definition OAuthConfig.h:88
TokenEndpointAuthenticationScheme GetTokenEndpointAuthenticationScheme() const
Definition OAuthConfig.h:99
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue