AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OidcConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API OidcConfig() = default;
37 AWS_SAGEMAKER_API OidcConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API OidcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetClientId() const { return m_clientId; }
47 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
48 template<typename ClientIdT = Aws::String>
49 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
50 template<typename ClientIdT = Aws::String>
51 OidcConfig& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
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) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
62 template<typename ClientSecretT = Aws::String>
63 OidcConfig& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIssuer() const { return m_issuer; }
71 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
72 template<typename IssuerT = Aws::String>
73 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
74 template<typename IssuerT = Aws::String>
75 OidcConfig& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
77
79
83 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
84 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
85 template<typename AuthorizationEndpointT = Aws::String>
86 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value); }
87 template<typename AuthorizationEndpointT = Aws::String>
88 OidcConfig& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) { SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value)); return *this;}
90
92
95 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
96 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
97 template<typename TokenEndpointT = Aws::String>
98 void SetTokenEndpoint(TokenEndpointT&& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = std::forward<TokenEndpointT>(value); }
99 template<typename TokenEndpointT = Aws::String>
100 OidcConfig& WithTokenEndpoint(TokenEndpointT&& value) { SetTokenEndpoint(std::forward<TokenEndpointT>(value)); return *this;}
102
104
108 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
109 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
110 template<typename UserInfoEndpointT = Aws::String>
111 void SetUserInfoEndpoint(UserInfoEndpointT&& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value); }
112 template<typename UserInfoEndpointT = Aws::String>
113 OidcConfig& WithUserInfoEndpoint(UserInfoEndpointT&& value) { SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value)); return *this;}
115
117
120 inline const Aws::String& GetLogoutEndpoint() const { return m_logoutEndpoint; }
121 inline bool LogoutEndpointHasBeenSet() const { return m_logoutEndpointHasBeenSet; }
122 template<typename LogoutEndpointT = Aws::String>
123 void SetLogoutEndpoint(LogoutEndpointT&& value) { m_logoutEndpointHasBeenSet = true; m_logoutEndpoint = std::forward<LogoutEndpointT>(value); }
124 template<typename LogoutEndpointT = Aws::String>
125 OidcConfig& WithLogoutEndpoint(LogoutEndpointT&& value) { SetLogoutEndpoint(std::forward<LogoutEndpointT>(value)); return *this;}
127
129
133 inline const Aws::String& GetJwksUri() const { return m_jwksUri; }
134 inline bool JwksUriHasBeenSet() const { return m_jwksUriHasBeenSet; }
135 template<typename JwksUriT = Aws::String>
136 void SetJwksUri(JwksUriT&& value) { m_jwksUriHasBeenSet = true; m_jwksUri = std::forward<JwksUriT>(value); }
137 template<typename JwksUriT = Aws::String>
138 OidcConfig& WithJwksUri(JwksUriT&& value) { SetJwksUri(std::forward<JwksUriT>(value)); return *this;}
140
142
146 inline const Aws::String& GetScope() const { return m_scope; }
147 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
148 template<typename ScopeT = Aws::String>
149 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
150 template<typename ScopeT = Aws::String>
151 OidcConfig& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
153
155
159 inline const Aws::Map<Aws::String, Aws::String>& GetAuthenticationRequestExtraParams() const { return m_authenticationRequestExtraParams; }
160 inline bool AuthenticationRequestExtraParamsHasBeenSet() const { return m_authenticationRequestExtraParamsHasBeenSet; }
161 template<typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
162 void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) { m_authenticationRequestExtraParamsHasBeenSet = true; m_authenticationRequestExtraParams = std::forward<AuthenticationRequestExtraParamsT>(value); }
163 template<typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
164 OidcConfig& WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) { SetAuthenticationRequestExtraParams(std::forward<AuthenticationRequestExtraParamsT>(value)); return *this;}
165 template<typename AuthenticationRequestExtraParamsKeyT = Aws::String, typename AuthenticationRequestExtraParamsValueT = Aws::String>
166 OidcConfig& AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT&& key, AuthenticationRequestExtraParamsValueT&& value) {
167 m_authenticationRequestExtraParamsHasBeenSet = true; m_authenticationRequestExtraParams.emplace(std::forward<AuthenticationRequestExtraParamsKeyT>(key), std::forward<AuthenticationRequestExtraParamsValueT>(value)); return *this;
168 }
170 private:
171
172 Aws::String m_clientId;
173 bool m_clientIdHasBeenSet = false;
174
175 Aws::String m_clientSecret;
176 bool m_clientSecretHasBeenSet = false;
177
178 Aws::String m_issuer;
179 bool m_issuerHasBeenSet = false;
180
181 Aws::String m_authorizationEndpoint;
182 bool m_authorizationEndpointHasBeenSet = false;
183
184 Aws::String m_tokenEndpoint;
185 bool m_tokenEndpointHasBeenSet = false;
186
187 Aws::String m_userInfoEndpoint;
188 bool m_userInfoEndpointHasBeenSet = false;
189
190 Aws::String m_logoutEndpoint;
191 bool m_logoutEndpointHasBeenSet = false;
192
193 Aws::String m_jwksUri;
194 bool m_jwksUriHasBeenSet = false;
195
196 Aws::String m_scope;
197 bool m_scopeHasBeenSet = false;
198
199 Aws::Map<Aws::String, Aws::String> m_authenticationRequestExtraParams;
200 bool m_authenticationRequestExtraParamsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SageMaker
205} // namespace Aws
void SetScope(ScopeT &&value)
Definition OidcConfig.h:149
const Aws::String & GetUserInfoEndpoint() const
Definition OidcConfig.h:108
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:86
OidcConfig & WithTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:100
const Aws::String & GetJwksUri() const
Definition OidcConfig.h:133
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
Definition OidcConfig.h:162
void SetIssuer(IssuerT &&value)
Definition OidcConfig.h:73
OidcConfig & WithLogoutEndpoint(LogoutEndpointT &&value)
Definition OidcConfig.h:125
const Aws::String & GetClientSecret() const
Definition OidcConfig.h:58
OidcConfig & WithJwksUri(JwksUriT &&value)
Definition OidcConfig.h:138
OidcConfig & WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
Definition OidcConfig.h:164
OidcConfig & WithScope(ScopeT &&value)
Definition OidcConfig.h:151
AWS_SAGEMAKER_API OidcConfig()=default
void SetClientId(ClientIdT &&value)
Definition OidcConfig.h:49
void SetLogoutEndpoint(LogoutEndpointT &&value)
Definition OidcConfig.h:123
const Aws::String & GetScope() const
Definition OidcConfig.h:146
OidcConfig & WithClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:63
void SetJwksUri(JwksUriT &&value)
Definition OidcConfig.h:136
const Aws::String & GetLogoutEndpoint() const
Definition OidcConfig.h:120
OidcConfig & WithClientId(ClientIdT &&value)
Definition OidcConfig.h:51
bool AuthenticationRequestExtraParamsHasBeenSet() const
Definition OidcConfig.h:160
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcConfig.h:83
AWS_SAGEMAKER_API OidcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIssuer() const
Definition OidcConfig.h:70
const Aws::String & GetTokenEndpoint() const
Definition OidcConfig.h:95
void SetClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:61
OidcConfig & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:88
AWS_SAGEMAKER_API OidcConfig(Aws::Utils::Json::JsonView jsonValue)
OidcConfig & AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT &&key, AuthenticationRequestExtraParamsValueT &&value)
Definition OidcConfig.h:166
bool AuthorizationEndpointHasBeenSet() const
Definition OidcConfig.h:84
const Aws::String & GetClientId() const
Definition OidcConfig.h:46
void SetUserInfoEndpoint(UserInfoEndpointT &&value)
Definition OidcConfig.h:111
const Aws::Map< Aws::String, Aws::String > & GetAuthenticationRequestExtraParams() const
Definition OidcConfig.h:159
OidcConfig & WithIssuer(IssuerT &&value)
Definition OidcConfig.h:75
OidcConfig & WithUserInfoEndpoint(UserInfoEndpointT &&value)
Definition OidcConfig.h:113
void SetTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:98
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