AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOAuth2Defaults(const OAuth2Defaults& value) { m_oAuth2DefaultsHasBeenSet = true; m_oAuth2Defaults = value; }
90 inline void SetOAuth2Defaults(OAuth2Defaults&& value) { m_oAuth2DefaultsHasBeenSet = true; m_oAuth2Defaults = std::move(value); }
91 inline AuthenticationConfig& WithOAuth2Defaults(const OAuth2Defaults& value) { SetOAuth2Defaults(value); return *this;}
92 inline AuthenticationConfig& WithOAuth2Defaults(OAuth2Defaults&& value) { SetOAuth2Defaults(std::move(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 inline void SetCustomAuthConfigs(const Aws::Vector<CustomAuthConfig>& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs = value; }
102 inline void SetCustomAuthConfigs(Aws::Vector<CustomAuthConfig>&& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs = std::move(value); }
105 inline AuthenticationConfig& AddCustomAuthConfigs(const CustomAuthConfig& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs.push_back(value); return *this; }
106 inline AuthenticationConfig& AddCustomAuthConfigs(CustomAuthConfig&& value) { m_customAuthConfigsHasBeenSet = true; m_customAuthConfigs.push_back(std::move(value)); return *this; }
108 private:
109
110 bool m_isBasicAuthSupported;
111 bool m_isBasicAuthSupportedHasBeenSet = false;
112
113 bool m_isApiKeyAuthSupported;
114 bool m_isApiKeyAuthSupportedHasBeenSet = false;
115
116 bool m_isOAuth2Supported;
117 bool m_isOAuth2SupportedHasBeenSet = false;
118
119 bool m_isCustomAuthSupported;
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 & WithCustomAuthConfigs(Aws::Vector< CustomAuthConfig > &&value)
void SetOAuth2Defaults(OAuth2Defaults &&value)
void SetOAuth2Defaults(const OAuth2Defaults &value)
AWS_APPFLOW_API AuthenticationConfig(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfig & AddCustomAuthConfigs(const CustomAuthConfig &value)
AuthenticationConfig & WithIsOAuth2Supported(bool value)
AuthenticationConfig & WithOAuth2Defaults(const OAuth2Defaults &value)
AuthenticationConfig & WithIsApiKeyAuthSupported(bool value)
const Aws::Vector< CustomAuthConfig > & GetCustomAuthConfigs() const
void SetCustomAuthConfigs(Aws::Vector< CustomAuthConfig > &&value)
AuthenticationConfig & WithIsBasicAuthSupported(bool value)
AuthenticationConfig & WithIsCustomAuthSupported(bool value)
AWS_APPFLOW_API AuthenticationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfig & AddCustomAuthConfigs(CustomAuthConfig &&value)
void SetCustomAuthConfigs(const Aws::Vector< CustomAuthConfig > &value)
AuthenticationConfig & WithOAuth2Defaults(OAuth2Defaults &&value)
AuthenticationConfig & WithCustomAuthConfigs(const Aws::Vector< CustomAuthConfig > &value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue