AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OAuth2Credentials.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GLUE_API OAuth2Credentials() = default;
39
40
42
46 inline const Aws::String& GetUserManagedClientApplicationClientSecret() const { return m_userManagedClientApplicationClientSecret; }
47 inline bool UserManagedClientApplicationClientSecretHasBeenSet() const { return m_userManagedClientApplicationClientSecretHasBeenSet; }
48 template<typename UserManagedClientApplicationClientSecretT = Aws::String>
49 void SetUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT&& value) { m_userManagedClientApplicationClientSecretHasBeenSet = true; m_userManagedClientApplicationClientSecret = std::forward<UserManagedClientApplicationClientSecretT>(value); }
50 template<typename UserManagedClientApplicationClientSecretT = Aws::String>
51 OAuth2Credentials& WithUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT&& value) { SetUserManagedClientApplicationClientSecret(std::forward<UserManagedClientApplicationClientSecretT>(value)); return *this;}
53
55
58 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
59 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
60 template<typename AccessTokenT = Aws::String>
61 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
62 template<typename AccessTokenT = Aws::String>
63 OAuth2Credentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRefreshToken() const { return m_refreshToken; }
71 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
72 template<typename RefreshTokenT = Aws::String>
73 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::forward<RefreshTokenT>(value); }
74 template<typename RefreshTokenT = Aws::String>
75 OAuth2Credentials& WithRefreshToken(RefreshTokenT&& value) { SetRefreshToken(std::forward<RefreshTokenT>(value)); return *this;}
77
79
82 inline const Aws::String& GetJwtToken() const { return m_jwtToken; }
83 inline bool JwtTokenHasBeenSet() const { return m_jwtTokenHasBeenSet; }
84 template<typename JwtTokenT = Aws::String>
85 void SetJwtToken(JwtTokenT&& value) { m_jwtTokenHasBeenSet = true; m_jwtToken = std::forward<JwtTokenT>(value); }
86 template<typename JwtTokenT = Aws::String>
87 OAuth2Credentials& WithJwtToken(JwtTokenT&& value) { SetJwtToken(std::forward<JwtTokenT>(value)); return *this;}
89 private:
90
91 Aws::String m_userManagedClientApplicationClientSecret;
92 bool m_userManagedClientApplicationClientSecretHasBeenSet = false;
93
94 Aws::String m_accessToken;
95 bool m_accessTokenHasBeenSet = false;
96
97 Aws::String m_refreshToken;
98 bool m_refreshTokenHasBeenSet = false;
99
100 Aws::String m_jwtToken;
101 bool m_jwtTokenHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Glue
106} // namespace Aws
const Aws::String & GetJwtToken() const
void SetUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT &&value)
OAuth2Credentials & WithRefreshToken(RefreshTokenT &&value)
AWS_GLUE_API OAuth2Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccessToken(AccessTokenT &&value)
AWS_GLUE_API OAuth2Credentials(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserManagedClientApplicationClientSecret() const
OAuth2Credentials & WithUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT &&value)
void SetRefreshToken(RefreshTokenT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
OAuth2Credentials & WithAccessToken(AccessTokenT &&value)
const Aws::String & GetAccessToken() const
bool UserManagedClientApplicationClientSecretHasBeenSet() const
const Aws::String & GetRefreshToken() const
OAuth2Credentials & WithJwtToken(JwtTokenT &&value)
AWS_GLUE_API OAuth2Credentials()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue