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>
34 AWS_SSOADMIN_API
Grant() =
default;
45 template <
typename AuthorizationCodeT = AuthorizationCodeGrant>
47 m_authorizationCodeHasBeenSet =
true;
48 m_authorizationCode = std::forward<AuthorizationCodeT>(value);
50 template <
typename AuthorizationCodeT = AuthorizationCodeGrant>
64 template <
typename JwtBearerT = JwtBearerGrant>
66 m_jwtBearerHasBeenSet =
true;
67 m_jwtBearer = std::forward<JwtBearerT>(value);
69 template <
typename JwtBearerT = JwtBearerGrant>
82 template <
typename RefreshTokenT = RefreshTokenGrant>
84 m_refreshTokenHasBeenSet =
true;
85 m_refreshToken = std::forward<RefreshTokenT>(value);
87 template <
typename RefreshTokenT = RefreshTokenGrant>
101 template <
typename TokenExchangeT = TokenExchangeGrant>
103 m_tokenExchangeHasBeenSet =
true;
104 m_tokenExchange = std::forward<TokenExchangeT>(value);
106 template <
typename TokenExchangeT = TokenExchangeGrant>
120 bool m_authorizationCodeHasBeenSet =
false;
121 bool m_jwtBearerHasBeenSet =
false;
122 bool m_refreshTokenHasBeenSet =
false;
123 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