AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthenticationConfig.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/OAuth2Defaults.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appflow/model/CustomAuthConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPFLOW_API AuthenticationConfig() = default;
40 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetIsBasicAuthSupported() const { return m_isBasicAuthSupported; }
48 inline bool IsBasicAuthSupportedHasBeenSet() const { return m_isBasicAuthSupportedHasBeenSet; }
49 inline void SetIsBasicAuthSupported(bool value) { m_isBasicAuthSupportedHasBeenSet = true; m_isBasicAuthSupported = value; }
50 inline AuthenticationConfig& WithIsBasicAuthSupported(bool value) { SetIsBasicAuthSupported(value); return *this;}
52
54
57 inline bool GetIsApiKeyAuthSupported() const { return m_isApiKeyAuthSupported; }
58 inline bool IsApiKeyAuthSupportedHasBeenSet() const { return m_isApiKeyAuthSupportedHasBeenSet; }
59 inline void SetIsApiKeyAuthSupported(bool value) { m_isApiKeyAuthSupportedHasBeenSet = true; m_isApiKeyAuthSupported = value; }
60 inline AuthenticationConfig& WithIsApiKeyAuthSupported(bool value) { SetIsApiKeyAuthSupported(value); return *this;}
62
64
67 inline bool GetIsOAuth2Supported() const { return m_isOAuth2Supported; }
68 inline bool IsOAuth2SupportedHasBeenSet() const { return m_isOAuth2SupportedHasBeenSet; }
69 inline void SetIsOAuth2Supported(bool value) { m_isOAuth2SupportedHasBeenSet = true; m_isOAuth2Supported = value; }
70 inline AuthenticationConfig& WithIsOAuth2Supported(bool value) { SetIsOAuth2Supported(value); return *this;}
72
74
77 inline bool GetIsCustomAuthSupported() const { return m_isCustomAuthSupported; }
78 inline bool IsCustomAuthSupportedHasBeenSet() const { return m_isCustomAuthSupportedHasBeenSet; }
79 inline void SetIsCustomAuthSupported(bool value) { m_isCustomAuthSupportedHasBeenSet = true; m_isCustomAuthSupported = value; }
80 inline AuthenticationConfig& WithIsCustomAuthSupported(bool value) { SetIsCustomAuthSupported(value); return *this;}
82
84
87 inline const OAuth2Defaults& GetOAuth2Defaults() const { return m_oAuth2Defaults; }
88 inline bool OAuth2DefaultsHasBeenSet() const { return m_oAuth2DefaultsHasBeenSet; }
89 template<typename OAuth2DefaultsT = OAuth2Defaults>
90 void SetOAuth2Defaults(OAuth2DefaultsT&& value) { m_oAuth2DefaultsHasBeenSet = true; m_oAuth2Defaults = std::forward<OAuth2DefaultsT>(value); }
91 template<typename OAuth2DefaultsT = OAuth2Defaults>
92 AuthenticationConfig& WithOAuth2Defaults(OAuth2DefaultsT&& value) { SetOAuth2Defaults(std::forward<OAuth2DefaultsT>(value)); return *this;}
94
96
99 inline const Aws::Vector<CustomAuthConfig>& GetCustomAuthConfigs() const { return m_customAuthConfigs; }
100 inline bool CustomAuthConfigsHasBeenSet() const { return m_customAuthConfigsHasBeenSet; }
101 template<typename CustomAuthConfigsT = Aws::Vector<CustomAuthConfig>>
102 void SetCustomAuthConfigs(CustomAuthConfigsT&& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs = std::forward<CustomAuthConfigsT>(value); }
103 template<typename CustomAuthConfigsT = Aws::Vector<CustomAuthConfig>>
104 AuthenticationConfig& WithCustomAuthConfigs(CustomAuthConfigsT&& value) { SetCustomAuthConfigs(std::forward<CustomAuthConfigsT>(value)); return *this;}
105 template<typename CustomAuthConfigsT = CustomAuthConfig>
106 AuthenticationConfig& AddCustomAuthConfigs(CustomAuthConfigsT&& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs.emplace_back(std::forward<CustomAuthConfigsT>(value)); return *this; }
108 private:
109
110 bool m_isBasicAuthSupported{false};
111 bool m_isBasicAuthSupportedHasBeenSet = false;
112
113 bool m_isApiKeyAuthSupported{false};
114 bool m_isApiKeyAuthSupportedHasBeenSet = false;
115
116 bool m_isOAuth2Supported{false};
117 bool m_isOAuth2SupportedHasBeenSet = false;
118
119 bool m_isCustomAuthSupported{false};
120 bool m_isCustomAuthSupportedHasBeenSet = false;
121
122 OAuth2Defaults m_oAuth2Defaults;
123 bool m_oAuth2DefaultsHasBeenSet = false;
124
125 Aws::Vector<CustomAuthConfig> m_customAuthConfigs;
126 bool m_customAuthConfigsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Appflow
131} // 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