7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/AuthenticationType.h>
9#include <aws/appflow/model/BasicAuthCredentials.h>
10#include <aws/appflow/model/OAuth2Credentials.h>
11#include <aws/appflow/model/ApiKeyCredentials.h>
12#include <aws/appflow/model/CustomAuthCredentials.h>
63 template<
typename BasicT = BasicAuthCredentials>
64 void SetBasic(BasicT&& value) { m_basicHasBeenSet =
true; m_basic = std::forward<BasicT>(value); }
65 template<
typename BasicT = BasicAuthCredentials>
75 template<
typename Oauth2T = OAuth2Credentials>
76 void SetOauth2(Oauth2T&& value) { m_oauth2HasBeenSet =
true; m_oauth2 = std::forward<Oauth2T>(value); }
77 template<
typename Oauth2T = OAuth2Credentials>
87 template<
typename ApiKeyT = ApiKeyCredentials>
88 void SetApiKey(ApiKeyT&& value) { m_apiKeyHasBeenSet =
true; m_apiKey = std::forward<ApiKeyT>(value); }
89 template<
typename ApiKeyT = ApiKeyCredentials>
100 template<
typename CustomT = CustomAuthCredentials>
101 void SetCustom(CustomT&& value) { m_customHasBeenSet =
true; m_custom = std::forward<CustomT>(value); }
102 template<
typename CustomT = CustomAuthCredentials>
108 bool m_authenticationTypeHasBeenSet =
false;
110 BasicAuthCredentials m_basic;
111 bool m_basicHasBeenSet =
false;
113 OAuth2Credentials m_oauth2;
114 bool m_oauth2HasBeenSet =
false;
116 ApiKeyCredentials m_apiKey;
117 bool m_apiKeyHasBeenSet =
false;
119 CustomAuthCredentials m_custom;
120 bool m_customHasBeenSet =
false;
void SetBasic(BasicT &&value)
CustomConnectorProfileCredentials & WithApiKey(ApiKeyT &&value)
const OAuth2Credentials & GetOauth2() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
bool CustomHasBeenSet() const
bool BasicHasBeenSet() const
bool Oauth2HasBeenSet() const
bool AuthenticationTypeHasBeenSet() const
CustomConnectorProfileCredentials & WithOauth2(Oauth2T &&value)
bool ApiKeyHasBeenSet() const
const CustomAuthCredentials & GetCustom() const
const ApiKeyCredentials & GetApiKey() const
CustomConnectorProfileCredentials & WithBasic(BasicT &&value)
AWS_APPFLOW_API CustomConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOauth2(Oauth2T &&value)
void SetApiKey(ApiKeyT &&value)
CustomConnectorProfileCredentials & WithAuthenticationType(AuthenticationType value)
CustomConnectorProfileCredentials & WithCustom(CustomT &&value)
AuthenticationType GetAuthenticationType() const
void SetCustom(CustomT &&value)
void SetAuthenticationType(AuthenticationType value)
AWS_APPFLOW_API CustomConnectorProfileCredentials()=default
const BasicAuthCredentials & GetBasic() const
AWS_APPFLOW_API CustomConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue