AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuthenticateOidcActionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/AuthenticateOidcActionConditionalBehaviorEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2 {
22namespace Model {
23
31 public:
32 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig() = default;
33 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::String& GetIssuer() const { return m_issuer; }
46 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
47 template <typename IssuerT = Aws::String>
48 void SetIssuer(IssuerT&& value) {
49 m_issuerHasBeenSet = true;
50 m_issuer = std::forward<IssuerT>(value);
51 }
52 template <typename IssuerT = Aws::String>
54 SetIssuer(std::forward<IssuerT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
65 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
66 template <typename AuthorizationEndpointT = Aws::String>
67 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
68 m_authorizationEndpointHasBeenSet = true;
69 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
70 }
71 template <typename AuthorizationEndpointT = Aws::String>
73 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
84 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
85 template <typename TokenEndpointT = Aws::String>
86 void SetTokenEndpoint(TokenEndpointT&& value) {
87 m_tokenEndpointHasBeenSet = true;
88 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
89 }
90 template <typename TokenEndpointT = Aws::String>
92 SetTokenEndpoint(std::forward<TokenEndpointT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
103 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
104 template <typename UserInfoEndpointT = Aws::String>
105 void SetUserInfoEndpoint(UserInfoEndpointT&& value) {
106 m_userInfoEndpointHasBeenSet = true;
107 m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value);
108 }
109 template <typename UserInfoEndpointT = Aws::String>
111 SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetClientId() const { return m_clientId; }
121 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
122 template <typename ClientIdT = Aws::String>
123 void SetClientId(ClientIdT&& value) {
124 m_clientIdHasBeenSet = true;
125 m_clientId = std::forward<ClientIdT>(value);
126 }
127 template <typename ClientIdT = Aws::String>
129 SetClientId(std::forward<ClientIdT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
141 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
142 template <typename ClientSecretT = Aws::String>
143 void SetClientSecret(ClientSecretT&& value) {
144 m_clientSecretHasBeenSet = true;
145 m_clientSecret = std::forward<ClientSecretT>(value);
146 }
147 template <typename ClientSecretT = Aws::String>
149 SetClientSecret(std::forward<ClientSecretT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetSessionCookieName() const { return m_sessionCookieName; }
160 inline bool SessionCookieNameHasBeenSet() const { return m_sessionCookieNameHasBeenSet; }
161 template <typename SessionCookieNameT = Aws::String>
162 void SetSessionCookieName(SessionCookieNameT&& value) {
163 m_sessionCookieNameHasBeenSet = true;
164 m_sessionCookieName = std::forward<SessionCookieNameT>(value);
165 }
166 template <typename SessionCookieNameT = Aws::String>
168 SetSessionCookieName(std::forward<SessionCookieNameT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::String& GetScope() const { return m_scope; }
180 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
181 template <typename ScopeT = Aws::String>
182 void SetScope(ScopeT&& value) {
183 m_scopeHasBeenSet = true;
184 m_scope = std::forward<ScopeT>(value);
185 }
186 template <typename ScopeT = Aws::String>
188 SetScope(std::forward<ScopeT>(value));
189 return *this;
190 }
192
194
198 inline long long GetSessionTimeout() const { return m_sessionTimeout; }
199 inline bool SessionTimeoutHasBeenSet() const { return m_sessionTimeoutHasBeenSet; }
200 inline void SetSessionTimeout(long long value) {
201 m_sessionTimeoutHasBeenSet = true;
202 m_sessionTimeout = value;
203 }
205 SetSessionTimeout(value);
206 return *this;
207 }
209
211
216 return m_authenticationRequestExtraParams;
217 }
218 inline bool AuthenticationRequestExtraParamsHasBeenSet() const { return m_authenticationRequestExtraParamsHasBeenSet; }
219 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
220 void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
221 m_authenticationRequestExtraParamsHasBeenSet = true;
222 m_authenticationRequestExtraParams = std::forward<AuthenticationRequestExtraParamsT>(value);
223 }
224 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
225 AuthenticateOidcActionConfig& WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
226 SetAuthenticationRequestExtraParams(std::forward<AuthenticationRequestExtraParamsT>(value));
227 return *this;
228 }
229 template <typename AuthenticationRequestExtraParamsKeyT = Aws::String, typename AuthenticationRequestExtraParamsValueT = Aws::String>
230 AuthenticateOidcActionConfig& AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT&& key,
231 AuthenticationRequestExtraParamsValueT&& value) {
232 m_authenticationRequestExtraParamsHasBeenSet = true;
233 m_authenticationRequestExtraParams.emplace(std::forward<AuthenticationRequestExtraParamsKeyT>(key),
234 std::forward<AuthenticationRequestExtraParamsValueT>(value));
235 return *this;
236 }
238
240
247 inline AuthenticateOidcActionConditionalBehaviorEnum GetOnUnauthenticatedRequest() const { return m_onUnauthenticatedRequest; }
248 inline bool OnUnauthenticatedRequestHasBeenSet() const { return m_onUnauthenticatedRequestHasBeenSet; }
250 m_onUnauthenticatedRequestHasBeenSet = true;
251 m_onUnauthenticatedRequest = value;
252 }
255 return *this;
256 }
258
260
264 inline bool GetUseExistingClientSecret() const { return m_useExistingClientSecret; }
265 inline bool UseExistingClientSecretHasBeenSet() const { return m_useExistingClientSecretHasBeenSet; }
266 inline void SetUseExistingClientSecret(bool value) {
267 m_useExistingClientSecretHasBeenSet = true;
268 m_useExistingClientSecret = value;
269 }
272 return *this;
273 }
275 private:
276 Aws::String m_issuer;
277
278 Aws::String m_authorizationEndpoint;
279
280 Aws::String m_tokenEndpoint;
281
282 Aws::String m_userInfoEndpoint;
283
284 Aws::String m_clientId;
285
286 Aws::String m_clientSecret;
287
288 Aws::String m_sessionCookieName;
289
290 Aws::String m_scope;
291
292 long long m_sessionTimeout{0};
293
294 Aws::Map<Aws::String, Aws::String> m_authenticationRequestExtraParams;
295
297
298 bool m_useExistingClientSecret{false};
299 bool m_issuerHasBeenSet = false;
300 bool m_authorizationEndpointHasBeenSet = false;
301 bool m_tokenEndpointHasBeenSet = false;
302 bool m_userInfoEndpointHasBeenSet = false;
303 bool m_clientIdHasBeenSet = false;
304 bool m_clientSecretHasBeenSet = false;
305 bool m_sessionCookieNameHasBeenSet = false;
306 bool m_scopeHasBeenSet = false;
307 bool m_sessionTimeoutHasBeenSet = false;
308 bool m_authenticationRequestExtraParamsHasBeenSet = false;
309 bool m_onUnauthenticatedRequestHasBeenSet = false;
310 bool m_useExistingClientSecretHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace ElasticLoadBalancingv2
315} // namespace Aws
AuthenticateOidcActionConfig & WithClientSecret(ClientSecretT &&value)
AuthenticateOidcActionConfig & WithSessionCookieName(SessionCookieNameT &&value)
AuthenticateOidcActionConfig & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AuthenticateOidcActionConfig & WithUserInfoEndpoint(UserInfoEndpointT &&value)
AuthenticateOidcActionConfig & WithTokenEndpoint(TokenEndpointT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AuthenticateOidcActionConfig & AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT &&key, AuthenticationRequestExtraParamsValueT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AuthenticateOidcActionConditionalBehaviorEnum GetOnUnauthenticatedRequest() const
const Aws::Map< Aws::String, Aws::String > & GetAuthenticationRequestExtraParams() const
AuthenticateOidcActionConfig & WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOnUnauthenticatedRequest(AuthenticateOidcActionConditionalBehaviorEnum value)
AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig()=default
void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
AuthenticateOidcActionConfig & WithOnUnauthenticatedRequest(AuthenticateOidcActionConditionalBehaviorEnum value)
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
std::basic_ostream< char, std::char_traits< char > > OStream