AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ConnectorAuthenticationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/AuthenticationType.h>
10#include <aws/glue/model/BasicAuthenticationProperties.h>
11#include <aws/glue/model/ConnectorOAuth2Properties.h>
12#include <aws/glue/model/CustomAuthenticationProperties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
33 public:
34 AWS_GLUE_API ConnectorAuthenticationConfiguration() = default;
38
40
44 inline const Aws::Vector<AuthenticationType>& GetAuthenticationTypes() const { return m_authenticationTypes; }
45 inline bool AuthenticationTypesHasBeenSet() const { return m_authenticationTypesHasBeenSet; }
46 template <typename AuthenticationTypesT = Aws::Vector<AuthenticationType>>
47 void SetAuthenticationTypes(AuthenticationTypesT&& value) {
48 m_authenticationTypesHasBeenSet = true;
49 m_authenticationTypes = std::forward<AuthenticationTypesT>(value);
50 }
51 template <typename AuthenticationTypesT = Aws::Vector<AuthenticationType>>
53 SetAuthenticationTypes(std::forward<AuthenticationTypesT>(value));
54 return *this;
55 }
57 m_authenticationTypesHasBeenSet = true;
58 m_authenticationTypes.push_back(value);
59 return *this;
60 }
62
64
65 inline const ConnectorOAuth2Properties& GetOAuth2Properties() const { return m_oAuth2Properties; }
66 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
67 template <typename OAuth2PropertiesT = ConnectorOAuth2Properties>
68 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
69 m_oAuth2PropertiesHasBeenSet = true;
70 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
71 }
72 template <typename OAuth2PropertiesT = ConnectorOAuth2Properties>
74 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
75 return *this;
76 }
78
80
81 inline const BasicAuthenticationProperties& GetBasicAuthenticationProperties() const { return m_basicAuthenticationProperties; }
82 inline bool BasicAuthenticationPropertiesHasBeenSet() const { return m_basicAuthenticationPropertiesHasBeenSet; }
83 template <typename BasicAuthenticationPropertiesT = BasicAuthenticationProperties>
84 void SetBasicAuthenticationProperties(BasicAuthenticationPropertiesT&& value) {
85 m_basicAuthenticationPropertiesHasBeenSet = true;
86 m_basicAuthenticationProperties = std::forward<BasicAuthenticationPropertiesT>(value);
87 }
88 template <typename BasicAuthenticationPropertiesT = BasicAuthenticationProperties>
90 SetBasicAuthenticationProperties(std::forward<BasicAuthenticationPropertiesT>(value));
91 return *this;
92 }
94
96
97 inline const CustomAuthenticationProperties& GetCustomAuthenticationProperties() const { return m_customAuthenticationProperties; }
98 inline bool CustomAuthenticationPropertiesHasBeenSet() const { return m_customAuthenticationPropertiesHasBeenSet; }
99 template <typename CustomAuthenticationPropertiesT = CustomAuthenticationProperties>
100 void SetCustomAuthenticationProperties(CustomAuthenticationPropertiesT&& value) {
101 m_customAuthenticationPropertiesHasBeenSet = true;
102 m_customAuthenticationProperties = std::forward<CustomAuthenticationPropertiesT>(value);
103 }
104 template <typename CustomAuthenticationPropertiesT = CustomAuthenticationProperties>
106 SetCustomAuthenticationProperties(std::forward<CustomAuthenticationPropertiesT>(value));
107 return *this;
108 }
110 private:
111 Aws::Vector<AuthenticationType> m_authenticationTypes;
112
113 ConnectorOAuth2Properties m_oAuth2Properties;
114
115 BasicAuthenticationProperties m_basicAuthenticationProperties;
116
117 CustomAuthenticationProperties m_customAuthenticationProperties;
118 bool m_authenticationTypesHasBeenSet = false;
119 bool m_oAuth2PropertiesHasBeenSet = false;
120 bool m_basicAuthenticationPropertiesHasBeenSet = false;
121 bool m_customAuthenticationPropertiesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Glue
126} // namespace Aws
ConnectorAuthenticationConfiguration & AddAuthenticationTypes(AuthenticationType value)
void SetBasicAuthenticationProperties(BasicAuthenticationPropertiesT &&value)
ConnectorAuthenticationConfiguration & WithCustomAuthenticationProperties(CustomAuthenticationPropertiesT &&value)
AWS_GLUE_API ConnectorAuthenticationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorAuthenticationConfiguration & WithAuthenticationTypes(AuthenticationTypesT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectorAuthenticationConfiguration & WithBasicAuthenticationProperties(BasicAuthenticationPropertiesT &&value)
const CustomAuthenticationProperties & GetCustomAuthenticationProperties() const
const Aws::Vector< AuthenticationType > & GetAuthenticationTypes() const
void SetCustomAuthenticationProperties(CustomAuthenticationPropertiesT &&value)
ConnectorAuthenticationConfiguration & WithOAuth2Properties(OAuth2PropertiesT &&value)
AWS_GLUE_API ConnectorAuthenticationConfiguration(Aws::Utils::Json::JsonView jsonValue)
const BasicAuthenticationProperties & GetBasicAuthenticationProperties() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue