AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
OidcConfig.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AccessControlGrantType.h>
9#include <aws/amplifygen3/model/AccessControlTokenType.h>
10#include <aws/amplifygen3/model/RefreshTokenStrategy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyGen3 {
25namespace Model {
26
34 public:
35 AWS_AMPLIFYGEN3_API OidcConfig() = default;
36 AWS_AMPLIFYGEN3_API OidcConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYGEN3_API OidcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIssuerUrl() const { return m_issuerUrl; }
45 inline bool IssuerUrlHasBeenSet() const { return m_issuerUrlHasBeenSet; }
46 template <typename IssuerUrlT = Aws::String>
47 void SetIssuerUrl(IssuerUrlT&& value) {
48 m_issuerUrlHasBeenSet = true;
49 m_issuerUrl = std::forward<IssuerUrlT>(value);
50 }
51 template <typename IssuerUrlT = Aws::String>
52 OidcConfig& WithIssuerUrl(IssuerUrlT&& value) {
53 SetIssuerUrl(std::forward<IssuerUrlT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetClientId() const { return m_clientId; }
63 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
64 template <typename ClientIdT = Aws::String>
65 void SetClientId(ClientIdT&& value) {
66 m_clientIdHasBeenSet = true;
67 m_clientId = std::forward<ClientIdT>(value);
68 }
69 template <typename ClientIdT = Aws::String>
70 OidcConfig& WithClientId(ClientIdT&& value) {
71 SetClientId(std::forward<ClientIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
81 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
82 template <typename ClientSecretT = Aws::String>
83 void SetClientSecret(ClientSecretT&& value) {
84 m_clientSecretHasBeenSet = true;
85 m_clientSecret = std::forward<ClientSecretT>(value);
86 }
87 template <typename ClientSecretT = Aws::String>
88 OidcConfig& WithClientSecret(ClientSecretT&& value) {
89 SetClientSecret(std::forward<ClientSecretT>(value));
90 return *this;
91 }
93
95
98 inline AccessControlTokenType GetTokenType() const { return m_tokenType; }
99 inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; }
101 m_tokenTypeHasBeenSet = true;
102 m_tokenType = value;
103 }
105 SetTokenType(value);
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetTokenValidations() const { return m_tokenValidations; }
115 inline bool TokenValidationsHasBeenSet() const { return m_tokenValidationsHasBeenSet; }
116 template <typename TokenValidationsT = Aws::Vector<Aws::String>>
117 void SetTokenValidations(TokenValidationsT&& value) {
118 m_tokenValidationsHasBeenSet = true;
119 m_tokenValidations = std::forward<TokenValidationsT>(value);
120 }
121 template <typename TokenValidationsT = Aws::Vector<Aws::String>>
122 OidcConfig& WithTokenValidations(TokenValidationsT&& value) {
123 SetTokenValidations(std::forward<TokenValidationsT>(value));
124 return *this;
125 }
126 template <typename TokenValidationsT = Aws::String>
127 OidcConfig& AddTokenValidations(TokenValidationsT&& value) {
128 m_tokenValidationsHasBeenSet = true;
129 m_tokenValidations.emplace_back(std::forward<TokenValidationsT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
139 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
140 template <typename AuthorizationEndpointT = Aws::String>
141 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
142 m_authorizationEndpointHasBeenSet = true;
143 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
144 }
145 template <typename AuthorizationEndpointT = Aws::String>
146 OidcConfig& WithAuthorizationEndpoint(AuthorizationEndpointT&& value) {
147 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetTokenEndpoint() const { return m_tokenEndpoint; }
157 inline bool TokenEndpointHasBeenSet() const { return m_tokenEndpointHasBeenSet; }
158 template <typename TokenEndpointT = Aws::String>
159 void SetTokenEndpoint(TokenEndpointT&& value) {
160 m_tokenEndpointHasBeenSet = true;
161 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
162 }
163 template <typename TokenEndpointT = Aws::String>
164 OidcConfig& WithTokenEndpoint(TokenEndpointT&& value) {
165 SetTokenEndpoint(std::forward<TokenEndpointT>(value));
166 return *this;
167 }
169
171
174 inline AccessControlGrantType GetGrantType() const { return m_grantType; }
175 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
177 m_grantTypeHasBeenSet = true;
178 m_grantType = value;
179 }
181 SetGrantType(value);
182 return *this;
183 }
185
187
190 inline RefreshTokenStrategy GetRefreshTokenStrategy() const { return m_refreshTokenStrategy; }
191 inline bool RefreshTokenStrategyHasBeenSet() const { return m_refreshTokenStrategyHasBeenSet; }
193 m_refreshTokenStrategyHasBeenSet = true;
194 m_refreshTokenStrategy = value;
195 }
198 return *this;
199 }
201
203
206 inline const Aws::Map<Aws::String, Aws::String>& GetAuthorizeRequestParams() const { return m_authorizeRequestParams; }
207 inline bool AuthorizeRequestParamsHasBeenSet() const { return m_authorizeRequestParamsHasBeenSet; }
208 template <typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
209 void SetAuthorizeRequestParams(AuthorizeRequestParamsT&& value) {
210 m_authorizeRequestParamsHasBeenSet = true;
211 m_authorizeRequestParams = std::forward<AuthorizeRequestParamsT>(value);
212 }
213 template <typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
214 OidcConfig& WithAuthorizeRequestParams(AuthorizeRequestParamsT&& value) {
215 SetAuthorizeRequestParams(std::forward<AuthorizeRequestParamsT>(value));
216 return *this;
217 }
218 template <typename AuthorizeRequestParamsKeyT = Aws::String, typename AuthorizeRequestParamsValueT = Aws::String>
219 OidcConfig& AddAuthorizeRequestParams(AuthorizeRequestParamsKeyT&& key, AuthorizeRequestParamsValueT&& value) {
220 m_authorizeRequestParamsHasBeenSet = true;
221 m_authorizeRequestParams.emplace(std::forward<AuthorizeRequestParamsKeyT>(key), std::forward<AuthorizeRequestParamsValueT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Map<Aws::String, Aws::String>& GetTokenRequestParams() const { return m_tokenRequestParams; }
231 inline bool TokenRequestParamsHasBeenSet() const { return m_tokenRequestParamsHasBeenSet; }
232 template <typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
233 void SetTokenRequestParams(TokenRequestParamsT&& value) {
234 m_tokenRequestParamsHasBeenSet = true;
235 m_tokenRequestParams = std::forward<TokenRequestParamsT>(value);
236 }
237 template <typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
238 OidcConfig& WithTokenRequestParams(TokenRequestParamsT&& value) {
239 SetTokenRequestParams(std::forward<TokenRequestParamsT>(value));
240 return *this;
241 }
242 template <typename TokenRequestParamsKeyT = Aws::String, typename TokenRequestParamsValueT = Aws::String>
243 OidcConfig& AddTokenRequestParams(TokenRequestParamsKeyT&& key, TokenRequestParamsValueT&& value) {
244 m_tokenRequestParamsHasBeenSet = true;
245 m_tokenRequestParams.emplace(std::forward<TokenRequestParamsKeyT>(key), std::forward<TokenRequestParamsValueT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_issuerUrl;
251
252 Aws::String m_clientId;
253
254 Aws::String m_clientSecret;
255
257
258 Aws::Vector<Aws::String> m_tokenValidations;
259
260 Aws::String m_authorizationEndpoint;
261
262 Aws::String m_tokenEndpoint;
263
265
267
268 Aws::Map<Aws::String, Aws::String> m_authorizeRequestParams;
269
270 Aws::Map<Aws::String, Aws::String> m_tokenRequestParams;
271 bool m_issuerUrlHasBeenSet = false;
272 bool m_clientIdHasBeenSet = false;
273 bool m_clientSecretHasBeenSet = false;
274 bool m_tokenTypeHasBeenSet = false;
275 bool m_tokenValidationsHasBeenSet = false;
276 bool m_authorizationEndpointHasBeenSet = false;
277 bool m_tokenEndpointHasBeenSet = false;
278 bool m_grantTypeHasBeenSet = false;
279 bool m_refreshTokenStrategyHasBeenSet = false;
280 bool m_authorizeRequestParamsHasBeenSet = false;
281 bool m_tokenRequestParamsHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace AmplifyGen3
286} // namespace Aws
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:141
const Aws::String & GetClientSecret() const
Definition OidcConfig.h:80
AccessControlGrantType GetGrantType() const
Definition OidcConfig.h:174
OidcConfig & WithTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:164
void SetGrantType(AccessControlGrantType value)
Definition OidcConfig.h:176
RefreshTokenStrategy GetRefreshTokenStrategy() const
Definition OidcConfig.h:190
void SetClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:83
OidcConfig & WithRefreshTokenStrategy(RefreshTokenStrategy value)
Definition OidcConfig.h:196
OidcConfig & WithIssuerUrl(IssuerUrlT &&value)
Definition OidcConfig.h:52
OidcConfig & AddAuthorizeRequestParams(AuthorizeRequestParamsKeyT &&key, AuthorizeRequestParamsValueT &&value)
Definition OidcConfig.h:219
OidcConfig & AddTokenValidations(TokenValidationsT &&value)
Definition OidcConfig.h:127
AWS_AMPLIFYGEN3_API OidcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetTokenType(AccessControlTokenType value)
Definition OidcConfig.h:100
void SetAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
Definition OidcConfig.h:209
const Aws::Vector< Aws::String > & GetTokenValidations() const
Definition OidcConfig.h:114
void SetRefreshTokenStrategy(RefreshTokenStrategy value)
Definition OidcConfig.h:192
OidcConfig & WithGrantType(AccessControlGrantType value)
Definition OidcConfig.h:180
void SetIssuerUrl(IssuerUrlT &&value)
Definition OidcConfig.h:47
OidcConfig & WithAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
Definition OidcConfig.h:214
OidcConfig & WithTokenValidations(TokenValidationsT &&value)
Definition OidcConfig.h:122
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClientId() const
Definition OidcConfig.h:62
void SetTokenEndpoint(TokenEndpointT &&value)
Definition OidcConfig.h:159
OidcConfig & WithClientId(ClientIdT &&value)
Definition OidcConfig.h:70
OidcConfig & AddTokenRequestParams(TokenRequestParamsKeyT &&key, TokenRequestParamsValueT &&value)
Definition OidcConfig.h:243
AWS_AMPLIFYGEN3_API OidcConfig()=default
const Aws::String & GetTokenEndpoint() const
Definition OidcConfig.h:156
OidcConfig & WithTokenType(AccessControlTokenType value)
Definition OidcConfig.h:104
OidcConfig & WithTokenRequestParams(TokenRequestParamsT &&value)
Definition OidcConfig.h:238
void SetClientId(ClientIdT &&value)
Definition OidcConfig.h:65
OidcConfig & WithClientSecret(ClientSecretT &&value)
Definition OidcConfig.h:88
const Aws::Map< Aws::String, Aws::String > & GetAuthorizeRequestParams() const
Definition OidcConfig.h:206
void SetTokenRequestParams(TokenRequestParamsT &&value)
Definition OidcConfig.h:233
const Aws::String & GetAuthorizationEndpoint() const
Definition OidcConfig.h:138
OidcConfig & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
Definition OidcConfig.h:146
const Aws::Map< Aws::String, Aws::String > & GetTokenRequestParams() const
Definition OidcConfig.h:230
AccessControlTokenType GetTokenType() const
Definition OidcConfig.h:98
void SetTokenValidations(TokenValidationsT &&value)
Definition OidcConfig.h:117
const Aws::String & GetIssuerUrl() const
Definition OidcConfig.h:44
AWS_AMPLIFYGEN3_API OidcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue