7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/model/AuthorizationCodeGrant.h>
9#include <aws/sso-admin/model/JwtBearerGrant.h>
10#include <aws/sso-admin/model/RefreshTokenGrant.h>
11#include <aws/sso-admin/model/TokenExchangeGrant.h>
39 AWS_SSOADMIN_API
Grant() =
default;
51 template<
typename AuthorizationCodeT = AuthorizationCodeGrant>
52 void SetAuthorizationCode(AuthorizationCodeT&& value) { m_authorizationCodeHasBeenSet =
true; m_authorizationCode = std::forward<AuthorizationCodeT>(value); }
53 template<
typename AuthorizationCodeT = AuthorizationCodeGrant>
64 template<
typename JwtBearerT = JwtBearerGrant>
65 void SetJwtBearer(JwtBearerT&& value) { m_jwtBearerHasBeenSet =
true; m_jwtBearer = std::forward<JwtBearerT>(value); }
66 template<
typename JwtBearerT = JwtBearerGrant>
76 template<
typename RefreshTokenT = RefreshTokenGrant>
77 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet =
true; m_refreshToken = std::forward<RefreshTokenT>(value); }
78 template<
typename RefreshTokenT = RefreshTokenGrant>
89 template<
typename TokenExchangeT = TokenExchangeGrant>
90 void SetTokenExchange(TokenExchangeT&& value) { m_tokenExchangeHasBeenSet =
true; m_tokenExchange = std::forward<TokenExchangeT>(value); }
91 template<
typename TokenExchangeT = TokenExchangeGrant>
97 bool m_authorizationCodeHasBeenSet =
false;
100 bool m_jwtBearerHasBeenSet =
false;
103 bool m_refreshTokenHasBeenSet =
false;
106 bool m_tokenExchangeHasBeenSet =
false;
Grant & WithTokenExchange(TokenExchangeT &&value)
AWS_SSOADMIN_API Grant(Aws::Utils::Json::JsonView jsonValue)
void SetRefreshToken(RefreshTokenT &&value)
Grant & WithJwtBearer(JwtBearerT &&value)
void SetAuthorizationCode(AuthorizationCodeT &&value)
bool AuthorizationCodeHasBeenSet() const
const RefreshTokenGrant & GetRefreshToken() const
bool TokenExchangeHasBeenSet() const
bool JwtBearerHasBeenSet() const
AWS_SSOADMIN_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API Grant()=default
void SetTokenExchange(TokenExchangeT &&value)
const AuthorizationCodeGrant & GetAuthorizationCode() const
void SetJwtBearer(JwtBearerT &&value)
const TokenExchangeGrant & GetTokenExchange() const
const JwtBearerGrant & GetJwtBearer() const
Grant & WithRefreshToken(RefreshTokenT &&value)
bool RefreshTokenHasBeenSet() const
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
Grant & WithAuthorizationCode(AuthorizationCodeT &&value)
Aws::Utils::Json::JsonValue JsonValue