AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CustomConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ApiKeyCredentials.h>
9#include <aws/appflow/model/AuthenticationType.h>
10#include <aws/appflow/model/BasicAuthCredentials.h>
11#include <aws/appflow/model/CustomAuthCredentials.h>
12#include <aws/appflow/model/OAuth2Credentials.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow {
24namespace Model {
25
33 public:
34 AWS_APPFLOW_API CustomConnectorProfileCredentials() = default;
37 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
45 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
47 m_authenticationTypeHasBeenSet = true;
48 m_authenticationType = value;
49 }
52 return *this;
53 }
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) {
65 m_basicHasBeenSet = true;
66 m_basic = std::forward<BasicT>(value);
67 }
68 template <typename BasicT = BasicAuthCredentials>
70 SetBasic(std::forward<BasicT>(value));
71 return *this;
72 }
74
76
79 inline const OAuth2Credentials& GetOauth2() const { return m_oauth2; }
80 inline bool Oauth2HasBeenSet() const { return m_oauth2HasBeenSet; }
81 template <typename Oauth2T = OAuth2Credentials>
82 void SetOauth2(Oauth2T&& value) {
83 m_oauth2HasBeenSet = true;
84 m_oauth2 = std::forward<Oauth2T>(value);
85 }
86 template <typename Oauth2T = OAuth2Credentials>
88 SetOauth2(std::forward<Oauth2T>(value));
89 return *this;
90 }
92
94
97 inline const ApiKeyCredentials& GetApiKey() const { return m_apiKey; }
98 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
99 template <typename ApiKeyT = ApiKeyCredentials>
100 void SetApiKey(ApiKeyT&& value) {
101 m_apiKeyHasBeenSet = true;
102 m_apiKey = std::forward<ApiKeyT>(value);
103 }
104 template <typename ApiKeyT = ApiKeyCredentials>
106 SetApiKey(std::forward<ApiKeyT>(value));
107 return *this;
108 }
110
112
116 inline const CustomAuthCredentials& GetCustom() const { return m_custom; }
117 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
118 template <typename CustomT = CustomAuthCredentials>
119 void SetCustom(CustomT&& value) {
120 m_customHasBeenSet = true;
121 m_custom = std::forward<CustomT>(value);
122 }
123 template <typename CustomT = CustomAuthCredentials>
125 SetCustom(std::forward<CustomT>(value));
126 return *this;
127 }
129 private:
131
132 BasicAuthCredentials m_basic;
133
134 OAuth2Credentials m_oauth2;
135
136 ApiKeyCredentials m_apiKey;
137
138 CustomAuthCredentials m_custom;
139 bool m_authenticationTypeHasBeenSet = false;
140 bool m_basicHasBeenSet = false;
141 bool m_oauth2HasBeenSet = false;
142 bool m_apiKeyHasBeenSet = false;
143 bool m_customHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Appflow
148} // 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