AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthenticateOidcActionConfig.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/elasticloadbalancingv2/model/AuthenticateOidcActionConditionalBehaviorEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig() = default;
38 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API AuthenticateOidcActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetIssuer() const { return m_issuer; }
51 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
52 template<typename IssuerT = Aws::String>
53 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
54 template<typename IssuerT = Aws::String>
55 AuthenticateOidcActionConfig& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
57
59
63 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
64 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
65 template<typename AuthorizationEndpointT = Aws::String>
66 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value); }
67 template<typename AuthorizationEndpointT = Aws::String>
68 AuthenticateOidcActionConfig& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) { SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value)); return *this;}
70
72
76 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
77 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
78 template<typename TokenEndpointT = Aws::String>
79 void SetTokenEndpoint(TokenEndpointT&& value) { m_tokenEndpointHasBeenSet = true; m_tokenEndpoint = std::forward<TokenEndpointT>(value); }
80 template<typename TokenEndpointT = Aws::String>
81 AuthenticateOidcActionConfig& WithTokenEndpoint(TokenEndpointT&& value) { SetTokenEndpoint(std::forward<TokenEndpointT>(value)); return *this;}
83
85
89 inline const Aws::String& GetUserInfoEndpoint() const { return m_userInfoEndpoint; }
90 inline bool UserInfoEndpointHasBeenSet() const { return m_userInfoEndpointHasBeenSet; }
91 template<typename UserInfoEndpointT = Aws::String>
92 void SetUserInfoEndpoint(UserInfoEndpointT&& value) { m_userInfoEndpointHasBeenSet = true; m_userInfoEndpoint = std::forward<UserInfoEndpointT>(value); }
93 template<typename UserInfoEndpointT = Aws::String>
94 AuthenticateOidcActionConfig& WithUserInfoEndpoint(UserInfoEndpointT&& value) { SetUserInfoEndpoint(std::forward<UserInfoEndpointT>(value)); return *this;}
96
98
101 inline const Aws::String& GetClientId() const { return m_clientId; }
102 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
103 template<typename ClientIdT = Aws::String>
104 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
105 template<typename ClientIdT = Aws::String>
106 AuthenticateOidcActionConfig& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
108
110
115 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
116 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
117 template<typename ClientSecretT = Aws::String>
118 void SetClientSecret(ClientSecretT&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
119 template<typename ClientSecretT = Aws::String>
120 AuthenticateOidcActionConfig& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
122
124
128 inline const Aws::String& GetSessionCookieName() const { return m_sessionCookieName; }
129 inline bool SessionCookieNameHasBeenSet() const { return m_sessionCookieNameHasBeenSet; }
130 template<typename SessionCookieNameT = Aws::String>
131 void SetSessionCookieName(SessionCookieNameT&& value) { m_sessionCookieNameHasBeenSet = true; m_sessionCookieName = std::forward<SessionCookieNameT>(value); }
132 template<typename SessionCookieNameT = Aws::String>
133 AuthenticateOidcActionConfig& WithSessionCookieName(SessionCookieNameT&& value) { SetSessionCookieName(std::forward<SessionCookieNameT>(value)); return *this;}
135
137
142 inline const Aws::String& GetScope() const { return m_scope; }
143 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
144 template<typename ScopeT = Aws::String>
145 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
146 template<typename ScopeT = Aws::String>
147 AuthenticateOidcActionConfig& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
149
151
155 inline long long GetSessionTimeout() const { return m_sessionTimeout; }
156 inline bool SessionTimeoutHasBeenSet() const { return m_sessionTimeoutHasBeenSet; }
157 inline void SetSessionTimeout(long long value) { m_sessionTimeoutHasBeenSet = true; m_sessionTimeout = value; }
158 inline AuthenticateOidcActionConfig& WithSessionTimeout(long long value) { SetSessionTimeout(value); return *this;}
160
162
166 inline const Aws::Map<Aws::String, Aws::String>& GetAuthenticationRequestExtraParams() const { return m_authenticationRequestExtraParams; }
167 inline bool AuthenticationRequestExtraParamsHasBeenSet() const { return m_authenticationRequestExtraParamsHasBeenSet; }
168 template<typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
169 void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) { m_authenticationRequestExtraParamsHasBeenSet = true; m_authenticationRequestExtraParams = std::forward<AuthenticationRequestExtraParamsT>(value); }
170 template<typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
171 AuthenticateOidcActionConfig& WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) { SetAuthenticationRequestExtraParams(std::forward<AuthenticationRequestExtraParamsT>(value)); return *this;}
172 template<typename AuthenticationRequestExtraParamsKeyT = Aws::String, typename AuthenticationRequestExtraParamsValueT = Aws::String>
173 AuthenticateOidcActionConfig& AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT&& key, AuthenticationRequestExtraParamsValueT&& value) {
174 m_authenticationRequestExtraParamsHasBeenSet = true; m_authenticationRequestExtraParams.emplace(std::forward<AuthenticationRequestExtraParamsKeyT>(key), std::forward<AuthenticationRequestExtraParamsValueT>(value)); return *this;
175 }
177
179
186 inline AuthenticateOidcActionConditionalBehaviorEnum GetOnUnauthenticatedRequest() const { return m_onUnauthenticatedRequest; }
187 inline bool OnUnauthenticatedRequestHasBeenSet() const { return m_onUnauthenticatedRequestHasBeenSet; }
188 inline void SetOnUnauthenticatedRequest(AuthenticateOidcActionConditionalBehaviorEnum value) { m_onUnauthenticatedRequestHasBeenSet = true; m_onUnauthenticatedRequest = value; }
191
193
197 inline bool GetUseExistingClientSecret() const { return m_useExistingClientSecret; }
198 inline bool UseExistingClientSecretHasBeenSet() const { return m_useExistingClientSecretHasBeenSet; }
199 inline void SetUseExistingClientSecret(bool value) { m_useExistingClientSecretHasBeenSet = true; m_useExistingClientSecret = value; }
202 private:
203
204 Aws::String m_issuer;
205 bool m_issuerHasBeenSet = false;
206
207 Aws::String m_authorizationEndpoint;
208 bool m_authorizationEndpointHasBeenSet = false;
209
210 Aws::String m_tokenEndpoint;
211 bool m_tokenEndpointHasBeenSet = false;
212
213 Aws::String m_userInfoEndpoint;
214 bool m_userInfoEndpointHasBeenSet = false;
215
216 Aws::String m_clientId;
217 bool m_clientIdHasBeenSet = false;
218
219 Aws::String m_clientSecret;
220 bool m_clientSecretHasBeenSet = false;
221
222 Aws::String m_sessionCookieName;
223 bool m_sessionCookieNameHasBeenSet = false;
224
225 Aws::String m_scope;
226 bool m_scopeHasBeenSet = false;
227
228 long long m_sessionTimeout{0};
229 bool m_sessionTimeoutHasBeenSet = false;
230
231 Aws::Map<Aws::String, Aws::String> m_authenticationRequestExtraParams;
232 bool m_authenticationRequestExtraParamsHasBeenSet = false;
233
235 bool m_onUnauthenticatedRequestHasBeenSet = false;
236
237 bool m_useExistingClientSecret{false};
238 bool m_useExistingClientSecretHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace ElasticLoadBalancingv2
243} // 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