AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OidcConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API OidcConfig() = default;
32 AWS_SAGEMAKER_API OidcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API OidcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetClientId() const { return m_clientId; }
41 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
42 template <typename ClientIdT = Aws::String>
43 void SetClientId(ClientIdT&& value) {
44 m_clientIdHasBeenSet = true;
45 m_clientId = std::forward<ClientIdT>(value);
46 }
47 template <typename ClientIdT = Aws::String>
48 OidcConfig& WithClientId(ClientIdT&& value) {
49 SetClientId(std::forward<ClientIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
59 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
60 template <typename ClientSecretT = Aws::String>
61 void SetClientSecret(ClientSecretT&& value) {
62 m_clientSecretHasBeenSet = true;
63 m_clientSecret = std::forward<ClientSecretT>(value);
64 }
65 template <typename ClientSecretT = Aws::String>
66 OidcConfig& WithClientSecret(ClientSecretT&& value) {
67 SetClientSecret(std::forward<ClientSecretT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIssuer() const { return m_issuer; }
77 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
78 template <typename IssuerT = Aws::String>
79 void SetIssuer(IssuerT&& value) {
80 m_issuerHasBeenSet = true;
81 m_issuer = std::forward<IssuerT>(value);
82 }
83 template <typename IssuerT = Aws::String>
84 OidcConfig& WithIssuer(IssuerT&& value) {
85 SetIssuer(std::forward<IssuerT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
96 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
97 template <typename AuthorizationEndpointT = Aws::String>
98 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
99 m_authorizationEndpointHasBeenSet = true;
100 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
101 }
102 template <typename AuthorizationEndpointT = Aws::String>
103 OidcConfig& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) {
104 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
114 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
115 template <typename TokenEndpointT = Aws::String>
116 void SetTokenEndpoint(TokenEndpointT&& value) {
117 m_tokenEndpointHasBeenSet = true;
118 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
119 }
120 template <typename TokenEndpointT = Aws::String>
121 OidcConfig& WithTokenEndpoint(TokenEndpointT&& value) {
122 SetTokenEndpoint(std::forward<TokenEndpointT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
133 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
134 template <typename UserInfoEndpointT = Aws::String>
135 void SetUserInfoEndpoint(UserInfoEndpointT&& value) {
136 m_userInfoEndpointHasBeenSet = true;
137 m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value);
138 }
139 template <typename UserInfoEndpointT = Aws::String>
140 OidcConfig& WithUserInfoEndpoint(UserInfoEndpointT&& value) {
141 SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetLogoutEndpoint() const { return m_logoutEndpoint; }
151 inline bool LogoutEndpointHasBeenSet() const { return m_logoutEndpointHasBeenSet; }
152 template <typename LogoutEndpointT = Aws::String>
153 void SetLogoutEndpoint(LogoutEndpointT&& value) {
154 m_logoutEndpointHasBeenSet = true;
155 m_logoutEndpoint = std::forward<LogoutEndpointT>(value);
156 }
157 template <typename LogoutEndpointT = Aws::String>
158 OidcConfig& WithLogoutEndpoint(LogoutEndpointT&& value) {
159 SetLogoutEndpoint(std::forward<LogoutEndpointT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetJwksUri() const { return m_jwksUri; }
170 inline bool JwksUriHasBeenSet() const { return m_jwksUriHasBeenSet; }
171 template <typename JwksUriT = Aws::String>
172 void SetJwksUri(JwksUriT&& value) {
173 m_jwksUriHasBeenSet = true;
174 m_jwksUri = std::forward<JwksUriT>(value);
175 }
176 template <typename JwksUriT = Aws::String>
177 OidcConfig& WithJwksUri(JwksUriT&& value) {
178 SetJwksUri(std::forward<JwksUriT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetScope() const { return m_scope; }
189 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
190 template <typename ScopeT = Aws::String>
191 void SetScope(ScopeT&& value) {
192 m_scopeHasBeenSet = true;
193 m_scope = std::forward<ScopeT>(value);
194 }
195 template <typename ScopeT = Aws::String>
196 OidcConfig& WithScope(ScopeT&& value) {
197 SetScope(std::forward<ScopeT>(value));
198 return *this;
199 }
201
203
208 return m_authenticationRequestExtraParams;
209 }
210 inline bool AuthenticationRequestExtraParamsHasBeenSet() const { return m_authenticationRequestExtraParamsHasBeenSet; }
211 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
212 void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
213 m_authenticationRequestExtraParamsHasBeenSet = true;
214 m_authenticationRequestExtraParams = std::forward<AuthenticationRequestExtraParamsT>(value);
215 }
216 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
217 OidcConfig& WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
218 SetAuthenticationRequestExtraParams(std::forward<AuthenticationRequestExtraParamsT>(value));
219 return *this;
220 }
221 template <typename AuthenticationRequestExtraParamsKeyT = Aws::String, typename AuthenticationRequestExtraParamsValueT = Aws::String>
222 OidcConfig& AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT&& key,
223 AuthenticationRequestExtraParamsValueT&& value) {
224 m_authenticationRequestExtraParamsHasBeenSet = true;
225 m_authenticationRequestExtraParams.emplace(std::forward<AuthenticationRequestExtraParamsKeyT>(key),
226 std::forward<AuthenticationRequestExtraParamsValueT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_clientId;
232
233 Aws::String m_clientSecret;
234
235 Aws::String m_issuer;
236
237 Aws::String m_authorizationEndpoint;
238
239 Aws::String m_tokenEndpoint;
240
241 Aws::String m_userInfoEndpoint;
242
243 Aws::String m_logoutEndpoint;
244
245 Aws::String m_jwksUri;
246
247 Aws::String m_scope;
248
249 Aws::Map<Aws::String, Aws::String> m_authenticationRequestExtraParams;
250 bool m_clientIdHasBeenSet = false;
251 bool m_clientSecretHasBeenSet = false;
252 bool m_issuerHasBeenSet = false;
253 bool m_authorizationEndpointHasBeenSet = false;
254 bool m_tokenEndpointHasBeenSet = false;
255 bool m_userInfoEndpointHasBeenSet = false;
256 bool m_logoutEndpointHasBeenSet = false;
257 bool m_jwksUriHasBeenSet = false;
258 bool m_scopeHasBeenSet = false;
259 bool m_authenticationRequestExtraParamsHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace SageMaker
264} // namespace Aws
void SetScope(ScopeT &&value)
Definition OidcConfig.h:191
const Aws::String & GetUserInfoEndpoint() const
Definition OidcConfig.h:132
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:98
OidcConfig & WithTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:121
const Aws::String & GetJwksUri() const
Definition OidcConfig.h:169
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
Definition OidcConfig.h:212
void SetIssuer(IssuerT &&value)
Definition OidcConfig.h:79
OidcConfig & WithLogoutEndpoint(LogoutEndpointT &&value)
Definition OidcConfig.h:158
const Aws::String & GetClientSecret() const
Definition OidcConfig.h:58
OidcConfig & WithJwksUri(JwksUriT &&value)
Definition OidcConfig.h:177
OidcConfig & WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
Definition OidcConfig.h:217
OidcConfig & WithScope(ScopeT &&value)
Definition OidcConfig.h:196
AWS_SAGEMAKER_API OidcConfig()=default
void SetClientId(ClientIdT &&value)
Definition OidcConfig.h:43
void SetLogoutEndpoint(LogoutEndpointT &&value)
Definition OidcConfig.h:153
const Aws::String & GetScope() const
Definition OidcConfig.h:188
OidcConfig & WithClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:66
void SetJwksUri(JwksUriT &&value)
Definition OidcConfig.h:172
const Aws::String & GetLogoutEndpoint() const
Definition OidcConfig.h:150
OidcConfig & WithClientId(ClientIdT &&value)
Definition OidcConfig.h:48
bool AuthenticationRequestExtraParamsHasBeenSet() const
Definition OidcConfig.h:210
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcConfig.h:95
AWS_SAGEMAKER_API OidcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIssuer() const
Definition OidcConfig.h:76
const Aws::String & GetTokenEndpoint() const
Definition OidcConfig.h:113
void SetClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:61
OidcConfig & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:103
AWS_SAGEMAKER_API OidcConfig(Aws::Utils::Json::JsonView jsonValue)
OidcConfig & AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT &&key, AuthenticationRequestExtraParamsValueT &&value)
Definition OidcConfig.h:222
bool AuthorizationEndpointHasBeenSet() const
Definition OidcConfig.h:96
const Aws::String & GetClientId() const
Definition OidcConfig.h:40
void SetUserInfoEndpoint(UserInfoEndpointT &&value)
Definition OidcConfig.h:135
const Aws::Map< Aws::String, Aws::String > & GetAuthenticationRequestExtraParams() const
Definition OidcConfig.h:207
OidcConfig & WithIssuer(IssuerT &&value)
Definition OidcConfig.h:84
OidcConfig & WithUserInfoEndpoint(UserInfoEndpointT &&value)
Definition OidcConfig.h:140
void SetTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:116
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue