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>
24namespace AmplifyGen3 {
46 template <
typename IssuerUrlT = Aws::String>
48 m_issuerUrlHasBeenSet =
true;
49 m_issuerUrl = std::forward<IssuerUrlT>(value);
51 template <
typename IssuerUrlT = Aws::String>
64 template <
typename ClientIdT = Aws::String>
66 m_clientIdHasBeenSet =
true;
67 m_clientId = std::forward<ClientIdT>(value);
69 template <
typename ClientIdT = Aws::String>
82 template <
typename ClientSecretT = Aws::String>
84 m_clientSecretHasBeenSet =
true;
85 m_clientSecret = std::forward<ClientSecretT>(value);
87 template <
typename ClientSecretT = Aws::String>
101 m_tokenTypeHasBeenSet =
true;
116 template <
typename TokenVal
idationsT = Aws::Vector<Aws::String>>
118 m_tokenValidationsHasBeenSet =
true;
119 m_tokenValidations = std::forward<TokenValidationsT>(value);
121 template <
typename TokenVal
idationsT = Aws::Vector<Aws::String>>
126 template <
typename TokenVal
idationsT = Aws::String>
128 m_tokenValidationsHasBeenSet =
true;
129 m_tokenValidations.emplace_back(std::forward<TokenValidationsT>(value));
140 template <
typename AuthorizationEndpo
intT = Aws::String>
142 m_authorizationEndpointHasBeenSet =
true;
143 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
145 template <
typename AuthorizationEndpo
intT = Aws::String>
158 template <
typename TokenEndpo
intT = Aws::String>
160 m_tokenEndpointHasBeenSet =
true;
161 m_tokenEndpoint = std::forward<TokenEndpointT>(value);
163 template <
typename TokenEndpo
intT = Aws::String>
177 m_grantTypeHasBeenSet =
true;
193 m_refreshTokenStrategyHasBeenSet =
true;
194 m_refreshTokenStrategy = value;
208 template <
typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
210 m_authorizeRequestParamsHasBeenSet =
true;
211 m_authorizeRequestParams = std::forward<AuthorizeRequestParamsT>(value);
213 template <
typename AuthorizeRequestParamsT = Aws::Map<Aws::String, Aws::String>>
218 template <
typename AuthorizeRequestParamsKeyT = Aws::String,
typename AuthorizeRequestParamsValueT = Aws::String>
220 m_authorizeRequestParamsHasBeenSet =
true;
221 m_authorizeRequestParams.emplace(std::forward<AuthorizeRequestParamsKeyT>(key), std::forward<AuthorizeRequestParamsValueT>(value));
232 template <
typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
234 m_tokenRequestParamsHasBeenSet =
true;
235 m_tokenRequestParams = std::forward<TokenRequestParamsT>(value);
237 template <
typename TokenRequestParamsT = Aws::Map<Aws::String, Aws::String>>
242 template <
typename TokenRequestParamsKeyT = Aws::String,
typename TokenRequestParamsValueT = Aws::String>
244 m_tokenRequestParamsHasBeenSet =
true;
245 m_tokenRequestParams.emplace(std::forward<TokenRequestParamsKeyT>(key), std::forward<TokenRequestParamsValueT>(value));
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;
void SetAuthorizationEndpoint(AuthorizationEndpointT &&value)
bool TokenEndpointHasBeenSet() const
bool IssuerUrlHasBeenSet() const
const Aws::String & GetClientSecret() const
AccessControlGrantType GetGrantType() const
OidcConfig & WithTokenEndpoint(TokenEndpointT &&value)
void SetGrantType(AccessControlGrantType value)
RefreshTokenStrategy GetRefreshTokenStrategy() const
bool AuthorizeRequestParamsHasBeenSet() const
void SetClientSecret(ClientSecretT &&value)
OidcConfig & WithRefreshTokenStrategy(RefreshTokenStrategy value)
OidcConfig & WithIssuerUrl(IssuerUrlT &&value)
bool ClientIdHasBeenSet() const
bool GrantTypeHasBeenSet() const
OidcConfig & AddAuthorizeRequestParams(AuthorizeRequestParamsKeyT &&key, AuthorizeRequestParamsValueT &&value)
OidcConfig & AddTokenValidations(TokenValidationsT &&value)
AWS_AMPLIFYGEN3_API OidcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetTokenType(AccessControlTokenType value)
void SetAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
const Aws::Vector< Aws::String > & GetTokenValidations() const
void SetRefreshTokenStrategy(RefreshTokenStrategy value)
OidcConfig & WithGrantType(AccessControlGrantType value)
void SetIssuerUrl(IssuerUrlT &&value)
OidcConfig & WithAuthorizeRequestParams(AuthorizeRequestParamsT &&value)
OidcConfig & WithTokenValidations(TokenValidationsT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClientId() const
void SetTokenEndpoint(TokenEndpointT &&value)
OidcConfig & WithClientId(ClientIdT &&value)
bool TokenTypeHasBeenSet() const
OidcConfig & AddTokenRequestParams(TokenRequestParamsKeyT &&key, TokenRequestParamsValueT &&value)
AWS_AMPLIFYGEN3_API OidcConfig()=default
bool TokenValidationsHasBeenSet() const
const Aws::String & GetTokenEndpoint() const
OidcConfig & WithTokenType(AccessControlTokenType value)
bool ClientSecretHasBeenSet() const
OidcConfig & WithTokenRequestParams(TokenRequestParamsT &&value)
void SetClientId(ClientIdT &&value)
OidcConfig & WithClientSecret(ClientSecretT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAuthorizeRequestParams() const
void SetTokenRequestParams(TokenRequestParamsT &&value)
bool TokenRequestParamsHasBeenSet() const
const Aws::String & GetAuthorizationEndpoint() const
bool RefreshTokenStrategyHasBeenSet() const
OidcConfig & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenRequestParams() const
AccessControlTokenType GetTokenType() const
bool AuthorizationEndpointHasBeenSet() const
void SetTokenValidations(TokenValidationsT &&value)
const Aws::String & GetIssuerUrl() const
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