AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GlueOAuth2Credentials.h
1
6#pragma once
7#include <aws/datazone/DataZone_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 DataZone
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_DATAZONE_API GlueOAuth2Credentials() = default;
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
45 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
46 template<typename AccessTokenT = Aws::String>
47 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
48 template<typename AccessTokenT = Aws::String>
49 GlueOAuth2Credentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetJwtToken() const { return m_jwtToken; }
57 inline bool JwtTokenHasBeenSet() const { return m_jwtTokenHasBeenSet; }
58 template<typename JwtTokenT = Aws::String>
59 void SetJwtToken(JwtTokenT&& value) { m_jwtTokenHasBeenSet = true; m_jwtToken = std::forward<JwtTokenT>(value); }
60 template<typename JwtTokenT = Aws::String>
61 GlueOAuth2Credentials& WithJwtToken(JwtTokenT&& value) { SetJwtToken(std::forward<JwtTokenT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRefreshToken() const { return m_refreshToken; }
69 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
70 template<typename RefreshTokenT = Aws::String>
71 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::forward<RefreshTokenT>(value); }
72 template<typename RefreshTokenT = Aws::String>
73 GlueOAuth2Credentials& WithRefreshToken(RefreshTokenT&& value) { SetRefreshToken(std::forward<RefreshTokenT>(value)); return *this;}
75
77
80 inline const Aws::String& GetUserManagedClientApplicationClientSecret() const { return m_userManagedClientApplicationClientSecret; }
81 inline bool UserManagedClientApplicationClientSecretHasBeenSet() const { return m_userManagedClientApplicationClientSecretHasBeenSet; }
82 template<typename UserManagedClientApplicationClientSecretT = Aws::String>
83 void SetUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT&& value) { m_userManagedClientApplicationClientSecretHasBeenSet = true; m_userManagedClientApplicationClientSecret = std::forward<UserManagedClientApplicationClientSecretT>(value); }
84 template<typename UserManagedClientApplicationClientSecretT = Aws::String>
85 GlueOAuth2Credentials& WithUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT&& value) { SetUserManagedClientApplicationClientSecret(std::forward<UserManagedClientApplicationClientSecretT>(value)); return *this;}
87 private:
88
89 Aws::String m_accessToken;
90 bool m_accessTokenHasBeenSet = false;
91
92 Aws::String m_jwtToken;
93 bool m_jwtTokenHasBeenSet = false;
94
95 Aws::String m_refreshToken;
96 bool m_refreshTokenHasBeenSet = false;
97
98 Aws::String m_userManagedClientApplicationClientSecret;
99 bool m_userManagedClientApplicationClientSecretHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace DataZone
104} // namespace Aws
void SetUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT &&value)
AWS_DATAZONE_API GlueOAuth2Credentials(Aws::Utils::Json::JsonView jsonValue)
GlueOAuth2Credentials & WithRefreshToken(RefreshTokenT &&value)
GlueOAuth2Credentials & WithAccessToken(AccessTokenT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
GlueOAuth2Credentials & WithUserManagedClientApplicationClientSecret(UserManagedClientApplicationClientSecretT &&value)
AWS_DATAZONE_API GlueOAuth2Credentials()=default
const Aws::String & GetUserManagedClientApplicationClientSecret() const
AWS_DATAZONE_API GlueOAuth2Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
GlueOAuth2Credentials & WithJwtToken(JwtTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue