AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OAuth2Credentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/ConnectorOAuthRequest.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPFLOW_API OAuth2Credentials();
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetClientId() const{ return m_clientId; }
47 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
48 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
49 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
50 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
51 inline OAuth2Credentials& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
52 inline OAuth2Credentials& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
53 inline OAuth2Credentials& WithClientId(const char* value) { SetClientId(value); return *this;}
55
57
61 inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
62 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
63 inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
64 inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
65 inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
66 inline OAuth2Credentials& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
67 inline OAuth2Credentials& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
68 inline OAuth2Credentials& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
70
72
75 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
76 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
77 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
78 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
79 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
80 inline OAuth2Credentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
81 inline OAuth2Credentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
82 inline OAuth2Credentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
84
86
89 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
90 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
91 inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
92 inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
93 inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
94 inline OAuth2Credentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
95 inline OAuth2Credentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
96 inline OAuth2Credentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
98
100
101 inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; }
102 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
103 inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; }
104 inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); }
105 inline OAuth2Credentials& WithOAuthRequest(const ConnectorOAuthRequest& value) { SetOAuthRequest(value); return *this;}
106 inline OAuth2Credentials& WithOAuthRequest(ConnectorOAuthRequest&& value) { SetOAuthRequest(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_clientId;
111 bool m_clientIdHasBeenSet = false;
112
113 Aws::String m_clientSecret;
114 bool m_clientSecretHasBeenSet = false;
115
116 Aws::String m_accessToken;
117 bool m_accessTokenHasBeenSet = false;
118
119 Aws::String m_refreshToken;
120 bool m_refreshTokenHasBeenSet = false;
121
122 ConnectorOAuthRequest m_oAuthRequest;
123 bool m_oAuthRequestHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Appflow
128} // namespace Aws
const Aws::String & GetAccessToken() const
void SetOAuthRequest(const ConnectorOAuthRequest &value)
void SetAccessToken(Aws::String &&value)
OAuth2Credentials & WithClientSecret(const char *value)
OAuth2Credentials & WithAccessToken(const Aws::String &value)
OAuth2Credentials & WithClientSecret(const Aws::String &value)
AWS_APPFLOW_API OAuth2Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2Credentials & WithAccessToken(const char *value)
void SetAccessToken(const Aws::String &value)
const Aws::String & GetClientSecret() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRefreshToken(Aws::String &&value)
void SetRefreshToken(const Aws::String &value)
const Aws::String & GetRefreshToken() const
OAuth2Credentials & WithRefreshToken(Aws::String &&value)
OAuth2Credentials & WithRefreshToken(const Aws::String &value)
OAuth2Credentials & WithClientId(const char *value)
const ConnectorOAuthRequest & GetOAuthRequest() const
OAuth2Credentials & WithRefreshToken(const char *value)
void SetClientSecret(Aws::String &&value)
OAuth2Credentials & WithClientId(const Aws::String &value)
void SetOAuthRequest(ConnectorOAuthRequest &&value)
OAuth2Credentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
OAuth2Credentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
const Aws::String & GetClientId() const
OAuth2Credentials & WithAccessToken(Aws::String &&value)
AWS_APPFLOW_API OAuth2Credentials(Aws::Utils::Json::JsonView jsonValue)
void SetClientId(const Aws::String &value)
OAuth2Credentials & WithClientSecret(Aws::String &&value)
OAuth2Credentials & WithClientId(Aws::String &&value)
void SetClientSecret(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue