AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OAuthCredentials.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 OAuthCredentials();
37 AWS_APPFLOW_API OAuthCredentials(Aws::Utils::Json::JsonView jsonValue);
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 OAuthCredentials& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
52 inline OAuthCredentials& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
53 inline OAuthCredentials& 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 OAuthCredentials& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
67 inline OAuthCredentials& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
68 inline OAuthCredentials& 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 OAuthCredentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
81 inline OAuthCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
82 inline OAuthCredentials& 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 OAuthCredentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
95 inline OAuthCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
96 inline OAuthCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
98
100
104 inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; }
105 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
106 inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; }
107 inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); }
108 inline OAuthCredentials& WithOAuthRequest(const ConnectorOAuthRequest& value) { SetOAuthRequest(value); return *this;}
109 inline OAuthCredentials& WithOAuthRequest(ConnectorOAuthRequest&& value) { SetOAuthRequest(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_clientId;
114 bool m_clientIdHasBeenSet = false;
115
116 Aws::String m_clientSecret;
117 bool m_clientSecretHasBeenSet = false;
118
119 Aws::String m_accessToken;
120 bool m_accessTokenHasBeenSet = false;
121
122 Aws::String m_refreshToken;
123 bool m_refreshTokenHasBeenSet = false;
124
125 ConnectorOAuthRequest m_oAuthRequest;
126 bool m_oAuthRequestHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Appflow
131} // namespace Aws
OAuthCredentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
OAuthCredentials & WithAccessToken(const char *value)
OAuthCredentials & WithClientSecret(const char *value)
void SetClientSecret(const char *value)
void SetRefreshToken(const Aws::String &value)
const Aws::String & GetClientSecret() const
OAuthCredentials & WithRefreshToken(const Aws::String &value)
OAuthCredentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
void SetAccessToken(const Aws::String &value)
OAuthCredentials & WithRefreshToken(const char *value)
OAuthCredentials & WithAccessToken(const Aws::String &value)
void SetOAuthRequest(const ConnectorOAuthRequest &value)
void SetOAuthRequest(ConnectorOAuthRequest &&value)
OAuthCredentials & WithAccessToken(Aws::String &&value)
AWS_APPFLOW_API OAuthCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuthCredentials & WithClientSecret(Aws::String &&value)
const Aws::String & GetClientId() const
void SetClientId(Aws::String &&value)
OAuthCredentials & WithRefreshToken(Aws::String &&value)
void SetRefreshToken(const char *value)
void SetClientSecret(Aws::String &&value)
void SetAccessToken(Aws::String &&value)
void SetClientId(const Aws::String &value)
OAuthCredentials & WithClientId(Aws::String &&value)
const Aws::String & GetAccessToken() const
void SetRefreshToken(Aws::String &&value)
OAuthCredentials & WithClientSecret(const Aws::String &value)
void SetClientSecret(const Aws::String &value)
AWS_APPFLOW_API OAuthCredentials(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRefreshToken() const
OAuthCredentials & WithClientId(const char *value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
OAuthCredentials & WithClientId(const Aws::String &value)
const ConnectorOAuthRequest & GetOAuthRequest() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue