AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ClientIdT = Aws::String>
49 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
50 template<typename ClientIdT = Aws::String>
51 OAuthCredentials& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
60 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
61 template<typename ClientSecretT = Aws::String>
62 void SetClientSecret(ClientSecretT&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
63 template<typename ClientSecretT = Aws::String>
64 OAuthCredentials& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
72 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
73 template<typename AccessTokenT = Aws::String>
74 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
75 template<typename AccessTokenT = Aws::String>
76 OAuthCredentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
78
80
83 inline const Aws::String& GetRefreshToken() const { return m_refreshToken; }
84 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
85 template<typename RefreshTokenT = Aws::String>
86 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::forward<RefreshTokenT>(value); }
87 template<typename RefreshTokenT = Aws::String>
88 OAuthCredentials& WithRefreshToken(RefreshTokenT&& value) { SetRefreshToken(std::forward<RefreshTokenT>(value)); return *this;}
90
92
96 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
97 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
98 template<typename OAuthRequestT = ConnectorOAuthRequest>
99 void SetOAuthRequest(OAuthRequestT&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::forward<OAuthRequestT>(value); }
100 template<typename OAuthRequestT = ConnectorOAuthRequest>
101 OAuthCredentials& WithOAuthRequest(OAuthRequestT&& value) { SetOAuthRequest(std::forward<OAuthRequestT>(value)); return *this;}
103 private:
104
105 Aws::String m_clientId;
106 bool m_clientIdHasBeenSet = false;
107
108 Aws::String m_clientSecret;
109 bool m_clientSecretHasBeenSet = false;
110
111 Aws::String m_accessToken;
112 bool m_accessTokenHasBeenSet = false;
113
114 Aws::String m_refreshToken;
115 bool m_refreshTokenHasBeenSet = false;
116
117 ConnectorOAuthRequest m_oAuthRequest;
118 bool m_oAuthRequestHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Appflow
123} // namespace Aws
AWS_APPFLOW_API OAuthCredentials()=default
void SetRefreshToken(RefreshTokenT &&value)
OAuthCredentials & WithClientSecret(ClientSecretT &&value)
const Aws::String & GetClientSecret() const
OAuthCredentials & WithRefreshToken(RefreshTokenT &&value)
void SetAccessToken(AccessTokenT &&value)
void SetOAuthRequest(OAuthRequestT &&value)
OAuthCredentials & WithAccessToken(AccessTokenT &&value)
OAuthCredentials & WithOAuthRequest(OAuthRequestT &&value)
void SetClientSecret(ClientSecretT &&value)
AWS_APPFLOW_API OAuthCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientId() const
const Aws::String & GetAccessToken() const
AWS_APPFLOW_API OAuthCredentials(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRefreshToken() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
OAuthCredentials & WithClientId(ClientIdT &&value)
const ConnectorOAuthRequest & GetOAuthRequest() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue