AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuthenticateCognitoActionConfig.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/AuthenticateCognitoActionConditionalBehaviorEnum.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 AuthenticateCognitoActionConfig() = default;
33 AWS_ELASTICLOADBALANCINGV2_API AuthenticateCognitoActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICLOADBALANCINGV2_API AuthenticateCognitoActionConfig& 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
44 inline const Aws::String& GetUserPoolArn() const { return m_userPoolArn; }
45 inline bool UserPoolArnHasBeenSet() const { return m_userPoolArnHasBeenSet; }
46 template <typename UserPoolArnT = Aws::String>
47 void SetUserPoolArn(UserPoolArnT&& value) {
48 m_userPoolArnHasBeenSet = true;
49 m_userPoolArn = std::forward<UserPoolArnT>(value);
50 }
51 template <typename UserPoolArnT = Aws::String>
53 SetUserPoolArn(std::forward<UserPoolArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetUserPoolClientId() const { return m_userPoolClientId; }
63 inline bool UserPoolClientIdHasBeenSet() const { return m_userPoolClientIdHasBeenSet; }
64 template <typename UserPoolClientIdT = Aws::String>
65 void SetUserPoolClientId(UserPoolClientIdT&& value) {
66 m_userPoolClientIdHasBeenSet = true;
67 m_userPoolClientId = std::forward<UserPoolClientIdT>(value);
68 }
69 template <typename UserPoolClientIdT = Aws::String>
71 SetUserPoolClientId(std::forward<UserPoolClientIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetUserPoolDomain() const { return m_userPoolDomain; }
82 inline bool UserPoolDomainHasBeenSet() const { return m_userPoolDomainHasBeenSet; }
83 template <typename UserPoolDomainT = Aws::String>
84 void SetUserPoolDomain(UserPoolDomainT&& value) {
85 m_userPoolDomainHasBeenSet = true;
86 m_userPoolDomain = std::forward<UserPoolDomainT>(value);
87 }
88 template <typename UserPoolDomainT = Aws::String>
90 SetUserPoolDomain(std::forward<UserPoolDomainT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetSessionCookieName() const { return m_sessionCookieName; }
101 inline bool SessionCookieNameHasBeenSet() const { return m_sessionCookieNameHasBeenSet; }
102 template <typename SessionCookieNameT = Aws::String>
103 void SetSessionCookieName(SessionCookieNameT&& value) {
104 m_sessionCookieNameHasBeenSet = true;
105 m_sessionCookieName = std::forward<SessionCookieNameT>(value);
106 }
107 template <typename SessionCookieNameT = Aws::String>
109 SetSessionCookieName(std::forward<SessionCookieNameT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::String& GetScope() const { return m_scope; }
121 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
122 template <typename ScopeT = Aws::String>
123 void SetScope(ScopeT&& value) {
124 m_scopeHasBeenSet = true;
125 m_scope = std::forward<ScopeT>(value);
126 }
127 template <typename ScopeT = Aws::String>
129 SetScope(std::forward<ScopeT>(value));
130 return *this;
131 }
133
135
139 inline long long GetSessionTimeout() const { return m_sessionTimeout; }
140 inline bool SessionTimeoutHasBeenSet() const { return m_sessionTimeoutHasBeenSet; }
141 inline void SetSessionTimeout(long long value) {
142 m_sessionTimeoutHasBeenSet = true;
143 m_sessionTimeout = value;
144 }
146 SetSessionTimeout(value);
147 return *this;
148 }
150
152
157 return m_authenticationRequestExtraParams;
158 }
159 inline bool AuthenticationRequestExtraParamsHasBeenSet() const { return m_authenticationRequestExtraParamsHasBeenSet; }
160 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
161 void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
162 m_authenticationRequestExtraParamsHasBeenSet = true;
163 m_authenticationRequestExtraParams = std::forward<AuthenticationRequestExtraParamsT>(value);
164 }
165 template <typename AuthenticationRequestExtraParamsT = Aws::Map<Aws::String, Aws::String>>
166 AuthenticateCognitoActionConfig& WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT&& value) {
167 SetAuthenticationRequestExtraParams(std::forward<AuthenticationRequestExtraParamsT>(value));
168 return *this;
169 }
170 template <typename AuthenticationRequestExtraParamsKeyT = Aws::String, typename AuthenticationRequestExtraParamsValueT = Aws::String>
171 AuthenticateCognitoActionConfig& AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT&& key,
172 AuthenticationRequestExtraParamsValueT&& value) {
173 m_authenticationRequestExtraParamsHasBeenSet = true;
174 m_authenticationRequestExtraParams.emplace(std::forward<AuthenticationRequestExtraParamsKeyT>(key),
175 std::forward<AuthenticationRequestExtraParamsValueT>(value));
176 return *this;
177 }
179
181
188 inline AuthenticateCognitoActionConditionalBehaviorEnum GetOnUnauthenticatedRequest() const { return m_onUnauthenticatedRequest; }
189 inline bool OnUnauthenticatedRequestHasBeenSet() const { return m_onUnauthenticatedRequestHasBeenSet; }
191 m_onUnauthenticatedRequestHasBeenSet = true;
192 m_onUnauthenticatedRequest = value;
193 }
196 return *this;
197 }
199 private:
200 Aws::String m_userPoolArn;
201
202 Aws::String m_userPoolClientId;
203
204 Aws::String m_userPoolDomain;
205
206 Aws::String m_sessionCookieName;
207
208 Aws::String m_scope;
209
210 long long m_sessionTimeout{0};
211
212 Aws::Map<Aws::String, Aws::String> m_authenticationRequestExtraParams;
213
215 bool m_userPoolArnHasBeenSet = false;
216 bool m_userPoolClientIdHasBeenSet = false;
217 bool m_userPoolDomainHasBeenSet = false;
218 bool m_sessionCookieNameHasBeenSet = false;
219 bool m_scopeHasBeenSet = false;
220 bool m_sessionTimeoutHasBeenSet = false;
221 bool m_authenticationRequestExtraParamsHasBeenSet = false;
222 bool m_onUnauthenticatedRequestHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace ElasticLoadBalancingv2
227} // namespace Aws
AuthenticateCognitoActionConditionalBehaviorEnum GetOnUnauthenticatedRequest() const
AuthenticateCognitoActionConfig & WithAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
AWS_ELASTICLOADBALANCINGV2_API AuthenticateCognitoActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AuthenticateCognitoActionConfig & WithUserPoolClientId(UserPoolClientIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAuthenticationRequestExtraParams() const
AuthenticateCognitoActionConfig & WithOnUnauthenticatedRequest(AuthenticateCognitoActionConditionalBehaviorEnum value)
AuthenticateCognitoActionConfig & WithUserPoolDomain(UserPoolDomainT &&value)
void SetAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API AuthenticateCognitoActionConfig()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOnUnauthenticatedRequest(AuthenticateCognitoActionConditionalBehaviorEnum value)
AuthenticateCognitoActionConfig & AddAuthenticationRequestExtraParams(AuthenticationRequestExtraParamsKeyT &&key, AuthenticationRequestExtraParamsValueT &&value)
AuthenticateCognitoActionConfig & WithUserPoolArn(UserPoolArnT &&value)
AWS_ELASTICLOADBALANCINGV2_API AuthenticateCognitoActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AuthenticateCognitoActionConfig & WithSessionCookieName(SessionCookieNameT &&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