7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/ConnectorOAuthRequest.h>
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>
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>
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>
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>
98 template<
typename OAuthRequestT = ConnectorOAuthRequest>
99 void SetOAuthRequest(OAuthRequestT&& value) { m_oAuthRequestHasBeenSet =
true; m_oAuthRequest = std::forward<OAuthRequestT>(value); }
100 template<
typename OAuthRequestT = ConnectorOAuthRequest>
106 bool m_clientIdHasBeenSet =
false;
109 bool m_clientSecretHasBeenSet =
false;
112 bool m_accessTokenHasBeenSet =
false;
115 bool m_refreshTokenHasBeenSet =
false;
118 bool m_oAuthRequestHasBeenSet =
false;
bool OAuthRequestHasBeenSet() const
AWS_APPFLOW_API OAuthCredentials()=default
void SetRefreshToken(RefreshTokenT &&value)
OAuthCredentials & WithClientSecret(ClientSecretT &&value)
const Aws::String & GetClientSecret() const
bool RefreshTokenHasBeenSet() const
bool ClientSecretHasBeenSet() const
OAuthCredentials & WithRefreshToken(RefreshTokenT &&value)
void SetAccessToken(AccessTokenT &&value)
void SetClientId(ClientIdT &&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
bool AccessTokenHasBeenSet() const
const Aws::String & GetAccessToken() const
bool ClientIdHasBeenSet() 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