AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CustomConnectorProfileCredentials.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Appflow
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_APPFLOW_API CustomConnectorProfileCredentials() = default;
42 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
51 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
52 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
55
57
61 inline const BasicAuthCredentials& GetBasic() const { return m_basic; }
62 inline bool BasicHasBeenSet() const { return m_basicHasBeenSet; }
63 template<typename BasicT = BasicAuthCredentials>
64 void SetBasic(BasicT&& value) { m_basicHasBeenSet = true; m_basic = std::forward<BasicT>(value); }
65 template<typename BasicT = BasicAuthCredentials>
66 CustomConnectorProfileCredentials& WithBasic(BasicT&& value) { SetBasic(std::forward<BasicT>(value)); return *this;}
68
70
73 inline const OAuth2Credentials& GetOauth2() const { return m_oauth2; }
74 inline bool Oauth2HasBeenSet() const { return m_oauth2HasBeenSet; }
75 template<typename Oauth2T = OAuth2Credentials>
76 void SetOauth2(Oauth2T&& value) { m_oauth2HasBeenSet = true; m_oauth2 = std::forward<Oauth2T>(value); }
77 template<typename Oauth2T = OAuth2Credentials>
78 CustomConnectorProfileCredentials& WithOauth2(Oauth2T&& value) { SetOauth2(std::forward<Oauth2T>(value)); return *this;}
80
82
85 inline const ApiKeyCredentials& GetApiKey() const { return m_apiKey; }
86 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
87 template<typename ApiKeyT = ApiKeyCredentials>
88 void SetApiKey(ApiKeyT&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::forward<ApiKeyT>(value); }
89 template<typename ApiKeyT = ApiKeyCredentials>
90 CustomConnectorProfileCredentials& WithApiKey(ApiKeyT&& value) { SetApiKey(std::forward<ApiKeyT>(value)); return *this;}
92
94
98 inline const CustomAuthCredentials& GetCustom() const { return m_custom; }
99 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
100 template<typename CustomT = CustomAuthCredentials>
101 void SetCustom(CustomT&& value) { m_customHasBeenSet = true; m_custom = std::forward<CustomT>(value); }
102 template<typename CustomT = CustomAuthCredentials>
103 CustomConnectorProfileCredentials& WithCustom(CustomT&& value) { SetCustom(std::forward<CustomT>(value)); return *this;}
105 private:
106
108 bool m_authenticationTypeHasBeenSet = false;
109
110 BasicAuthCredentials m_basic;
111 bool m_basicHasBeenSet = false;
112
113 OAuth2Credentials m_oauth2;
114 bool m_oauth2HasBeenSet = false;
115
116 ApiKeyCredentials m_apiKey;
117 bool m_apiKeyHasBeenSet = false;
118
119 CustomAuthCredentials m_custom;
120 bool m_customHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Appflow
125} // namespace Aws
CustomConnectorProfileCredentials & WithApiKey(ApiKeyT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
CustomConnectorProfileCredentials & WithOauth2(Oauth2T &&value)
CustomConnectorProfileCredentials & WithBasic(BasicT &&value)
AWS_APPFLOW_API CustomConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomConnectorProfileCredentials & WithAuthenticationType(AuthenticationType value)
CustomConnectorProfileCredentials & WithCustom(CustomT &&value)
AWS_APPFLOW_API CustomConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue