AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuthenticationConfig.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/CustomAuthConfig.h>
9#include <aws/appflow/model/OAuth2Defaults.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Appflow {
22namespace Model {
23
31 public:
32 AWS_APPFLOW_API AuthenticationConfig() = default;
35 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetIsBasicAuthSupported() const { return m_isBasicAuthSupported; }
42 inline bool IsBasicAuthSupportedHasBeenSet() const { return m_isBasicAuthSupportedHasBeenSet; }
43 inline void SetIsBasicAuthSupported(bool value) {
44 m_isBasicAuthSupportedHasBeenSet = true;
45 m_isBasicAuthSupported = value;
46 }
49 return *this;
50 }
52
54
57 inline bool GetIsApiKeyAuthSupported() const { return m_isApiKeyAuthSupported; }
58 inline bool IsApiKeyAuthSupportedHasBeenSet() const { return m_isApiKeyAuthSupportedHasBeenSet; }
59 inline void SetIsApiKeyAuthSupported(bool value) {
60 m_isApiKeyAuthSupportedHasBeenSet = true;
61 m_isApiKeyAuthSupported = value;
62 }
65 return *this;
66 }
68
70
73 inline bool GetIsOAuth2Supported() const { return m_isOAuth2Supported; }
74 inline bool IsOAuth2SupportedHasBeenSet() const { return m_isOAuth2SupportedHasBeenSet; }
75 inline void SetIsOAuth2Supported(bool value) {
76 m_isOAuth2SupportedHasBeenSet = true;
77 m_isOAuth2Supported = value;
78 }
81 return *this;
82 }
84
86
89 inline bool GetIsCustomAuthSupported() const { return m_isCustomAuthSupported; }
90 inline bool IsCustomAuthSupportedHasBeenSet() const { return m_isCustomAuthSupportedHasBeenSet; }
91 inline void SetIsCustomAuthSupported(bool value) {
92 m_isCustomAuthSupportedHasBeenSet = true;
93 m_isCustomAuthSupported = value;
94 }
97 return *this;
98 }
100
102
105 inline const OAuth2Defaults& GetOAuth2Defaults() const { return m_oAuth2Defaults; }
106 inline bool OAuth2DefaultsHasBeenSet() const { return m_oAuth2DefaultsHasBeenSet; }
107 template <typename OAuth2DefaultsT = OAuth2Defaults>
108 void SetOAuth2Defaults(OAuth2DefaultsT&& value) {
109 m_oAuth2DefaultsHasBeenSet = true;
110 m_oAuth2Defaults = std::forward<OAuth2DefaultsT>(value);
111 }
112 template <typename OAuth2DefaultsT = OAuth2Defaults>
113 AuthenticationConfig& WithOAuth2Defaults(OAuth2DefaultsT&& value) {
114 SetOAuth2Defaults(std::forward<OAuth2DefaultsT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<CustomAuthConfig>& GetCustomAuthConfigs() const { return m_customAuthConfigs; }
124 inline bool CustomAuthConfigsHasBeenSet() const { return m_customAuthConfigsHasBeenSet; }
125 template <typename CustomAuthConfigsT = Aws::Vector<CustomAuthConfig>>
126 void SetCustomAuthConfigs(CustomAuthConfigsT&& value) {
127 m_customAuthConfigsHasBeenSet = true;
128 m_customAuthConfigs = std::forward<CustomAuthConfigsT>(value);
129 }
130 template <typename CustomAuthConfigsT = Aws::Vector<CustomAuthConfig>>
131 AuthenticationConfig& WithCustomAuthConfigs(CustomAuthConfigsT&& value) {
132 SetCustomAuthConfigs(std::forward<CustomAuthConfigsT>(value));
133 return *this;
134 }
135 template <typename CustomAuthConfigsT = CustomAuthConfig>
136 AuthenticationConfig& AddCustomAuthConfigs(CustomAuthConfigsT&& value) {
137 m_customAuthConfigsHasBeenSet = true;
138 m_customAuthConfigs.emplace_back(std::forward<CustomAuthConfigsT>(value));
139 return *this;
140 }
142 private:
143 bool m_isBasicAuthSupported{false};
144
145 bool m_isApiKeyAuthSupported{false};
146
147 bool m_isOAuth2Supported{false};
148
149 bool m_isCustomAuthSupported{false};
150
151 OAuth2Defaults m_oAuth2Defaults;
152
153 Aws::Vector<CustomAuthConfig> m_customAuthConfigs;
154 bool m_isBasicAuthSupportedHasBeenSet = false;
155 bool m_isApiKeyAuthSupportedHasBeenSet = false;
156 bool m_isOAuth2SupportedHasBeenSet = false;
157 bool m_isCustomAuthSupportedHasBeenSet = false;
158 bool m_oAuth2DefaultsHasBeenSet = false;
159 bool m_customAuthConfigsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Appflow
164} // namespace Aws
const OAuth2Defaults & GetOAuth2Defaults() const
AuthenticationConfig & AddCustomAuthConfigs(CustomAuthConfigsT &&value)
AWS_APPFLOW_API AuthenticationConfig(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfig & WithIsOAuth2Supported(bool value)
AuthenticationConfig & WithIsApiKeyAuthSupported(bool value)
AWS_APPFLOW_API AuthenticationConfig()=default
const Aws::Vector< CustomAuthConfig > & GetCustomAuthConfigs() const
AuthenticationConfig & WithIsBasicAuthSupported(bool value)
AuthenticationConfig & WithOAuth2Defaults(OAuth2DefaultsT &&value)
AuthenticationConfig & WithIsCustomAuthSupported(bool value)
void SetCustomAuthConfigs(CustomAuthConfigsT &&value)
AWS_APPFLOW_API AuthenticationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfig & WithCustomAuthConfigs(CustomAuthConfigsT &&value)
void SetOAuth2Defaults(OAuth2DefaultsT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue