AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Grant.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSOAdmin
25{
26namespace Model
27{
28
36 class Grant
37 {
38 public:
39 AWS_SSOADMIN_API Grant();
40 AWS_SSOADMIN_API Grant(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSOADMIN_API Grant& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AuthorizationCodeGrant& GetAuthorizationCode() const{ return m_authorizationCode; }
50 inline bool AuthorizationCodeHasBeenSet() const { return m_authorizationCodeHasBeenSet; }
51 inline void SetAuthorizationCode(const AuthorizationCodeGrant& value) { m_authorizationCodeHasBeenSet = true; m_authorizationCode = value; }
52 inline void SetAuthorizationCode(AuthorizationCodeGrant&& value) { m_authorizationCodeHasBeenSet = true; m_authorizationCode = std::move(value); }
53 inline Grant& WithAuthorizationCode(const AuthorizationCodeGrant& value) { SetAuthorizationCode(value); return *this;}
54 inline Grant& WithAuthorizationCode(AuthorizationCodeGrant&& value) { SetAuthorizationCode(std::move(value)); return *this;}
56
58
62 inline const JwtBearerGrant& GetJwtBearer() const{ return m_jwtBearer; }
63 inline bool JwtBearerHasBeenSet() const { return m_jwtBearerHasBeenSet; }
64 inline void SetJwtBearer(const JwtBearerGrant& value) { m_jwtBearerHasBeenSet = true; m_jwtBearer = value; }
65 inline void SetJwtBearer(JwtBearerGrant&& value) { m_jwtBearerHasBeenSet = true; m_jwtBearer = std::move(value); }
66 inline Grant& WithJwtBearer(const JwtBearerGrant& value) { SetJwtBearer(value); return *this;}
67 inline Grant& WithJwtBearer(JwtBearerGrant&& value) { SetJwtBearer(std::move(value)); return *this;}
69
71
74 inline const RefreshTokenGrant& GetRefreshToken() const{ return m_refreshToken; }
75 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
76 inline void SetRefreshToken(const RefreshTokenGrant& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
77 inline void SetRefreshToken(RefreshTokenGrant&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
78 inline Grant& WithRefreshToken(const RefreshTokenGrant& value) { SetRefreshToken(value); return *this;}
79 inline Grant& WithRefreshToken(RefreshTokenGrant&& value) { SetRefreshToken(std::move(value)); return *this;}
81
83
87 inline const TokenExchangeGrant& GetTokenExchange() const{ return m_tokenExchange; }
88 inline bool TokenExchangeHasBeenSet() const { return m_tokenExchangeHasBeenSet; }
89 inline void SetTokenExchange(const TokenExchangeGrant& value) { m_tokenExchangeHasBeenSet = true; m_tokenExchange = value; }
90 inline void SetTokenExchange(TokenExchangeGrant&& value) { m_tokenExchangeHasBeenSet = true; m_tokenExchange = std::move(value); }
91 inline Grant& WithTokenExchange(const TokenExchangeGrant& value) { SetTokenExchange(value); return *this;}
92 inline Grant& WithTokenExchange(TokenExchangeGrant&& value) { SetTokenExchange(std::move(value)); return *this;}
94 private:
95
96 AuthorizationCodeGrant m_authorizationCode;
97 bool m_authorizationCodeHasBeenSet = false;
98
99 JwtBearerGrant m_jwtBearer;
100 bool m_jwtBearerHasBeenSet = false;
101
102 RefreshTokenGrant m_refreshToken;
103 bool m_refreshTokenHasBeenSet = false;
104
105 TokenExchangeGrant m_tokenExchange;
106 bool m_tokenExchangeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SSOAdmin
111} // namespace Aws
AWS_SSOADMIN_API Grant(Aws::Utils::Json::JsonView jsonValue)
void SetTokenExchange(const TokenExchangeGrant &value)
Definition Grant.h:89
bool AuthorizationCodeHasBeenSet() const
Definition Grant.h:50
Grant & WithJwtBearer(const JwtBearerGrant &value)
Definition Grant.h:66
const RefreshTokenGrant & GetRefreshToken() const
Definition Grant.h:74
Grant & WithJwtBearer(JwtBearerGrant &&value)
Definition Grant.h:67
void SetTokenExchange(TokenExchangeGrant &&value)
Definition Grant.h:90
void SetRefreshToken(const RefreshTokenGrant &value)
Definition Grant.h:76
Grant & WithTokenExchange(TokenExchangeGrant &&value)
Definition Grant.h:92
bool TokenExchangeHasBeenSet() const
Definition Grant.h:88
Grant & WithRefreshToken(RefreshTokenGrant &&value)
Definition Grant.h:79
bool JwtBearerHasBeenSet() const
Definition Grant.h:63
Grant & WithAuthorizationCode(AuthorizationCodeGrant &&value)
Definition Grant.h:54
void SetRefreshToken(RefreshTokenGrant &&value)
Definition Grant.h:77
AWS_SSOADMIN_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJwtBearer(const JwtBearerGrant &value)
Definition Grant.h:64
void SetJwtBearer(JwtBearerGrant &&value)
Definition Grant.h:65
Grant & WithRefreshToken(const RefreshTokenGrant &value)
Definition Grant.h:78
const AuthorizationCodeGrant & GetAuthorizationCode() const
Definition Grant.h:49
const TokenExchangeGrant & GetTokenExchange() const
Definition Grant.h:87
const JwtBearerGrant & GetJwtBearer() const
Definition Grant.h:62
Grant & WithTokenExchange(const TokenExchangeGrant &value)
Definition Grant.h:91
Grant & WithAuthorizationCode(const AuthorizationCodeGrant &value)
Definition Grant.h:53
AWS_SSOADMIN_API Grant()
void SetAuthorizationCode(const AuthorizationCodeGrant &value)
Definition Grant.h:51
void SetAuthorizationCode(AuthorizationCodeGrant &&value)
Definition Grant.h:52
bool RefreshTokenHasBeenSet() const
Definition Grant.h:75
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue