AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AuthConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/Property.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API AuthConfiguration() = default;
36
38
41 inline const Property& GetAuthenticationType() const { return m_authenticationType; }
42 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
43 template <typename AuthenticationTypeT = Property>
44 void SetAuthenticationType(AuthenticationTypeT&& value) {
45 m_authenticationTypeHasBeenSet = true;
46 m_authenticationType = std::forward<AuthenticationTypeT>(value);
47 }
48 template <typename AuthenticationTypeT = Property>
49 AuthConfiguration& WithAuthenticationType(AuthenticationTypeT&& value) {
50 SetAuthenticationType(std::forward<AuthenticationTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Property& GetSecretArn() const { return m_secretArn; }
60 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
61 template <typename SecretArnT = Property>
62 void SetSecretArn(SecretArnT&& value) {
63 m_secretArnHasBeenSet = true;
64 m_secretArn = std::forward<SecretArnT>(value);
65 }
66 template <typename SecretArnT = Property>
67 AuthConfiguration& WithSecretArn(SecretArnT&& value) {
68 SetSecretArn(std::forward<SecretArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Property>& GetOAuth2Properties() const { return m_oAuth2Properties; }
79 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
80 template <typename OAuth2PropertiesT = Aws::Map<Aws::String, Property>>
81 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
82 m_oAuth2PropertiesHasBeenSet = true;
83 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
84 }
85 template <typename OAuth2PropertiesT = Aws::Map<Aws::String, Property>>
86 AuthConfiguration& WithOAuth2Properties(OAuth2PropertiesT&& value) {
87 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
88 return *this;
89 }
90 template <typename OAuth2PropertiesKeyT = Aws::String, typename OAuth2PropertiesValueT = Property>
91 AuthConfiguration& AddOAuth2Properties(OAuth2PropertiesKeyT&& key, OAuth2PropertiesValueT&& value) {
92 m_oAuth2PropertiesHasBeenSet = true;
93 m_oAuth2Properties.emplace(std::forward<OAuth2PropertiesKeyT>(key), std::forward<OAuth2PropertiesValueT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Map<Aws::String, Property>& GetBasicAuthenticationProperties() const { return m_basicAuthenticationProperties; }
104 inline bool BasicAuthenticationPropertiesHasBeenSet() const { return m_basicAuthenticationPropertiesHasBeenSet; }
105 template <typename BasicAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
106 void SetBasicAuthenticationProperties(BasicAuthenticationPropertiesT&& value) {
107 m_basicAuthenticationPropertiesHasBeenSet = true;
108 m_basicAuthenticationProperties = std::forward<BasicAuthenticationPropertiesT>(value);
109 }
110 template <typename BasicAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
111 AuthConfiguration& WithBasicAuthenticationProperties(BasicAuthenticationPropertiesT&& value) {
112 SetBasicAuthenticationProperties(std::forward<BasicAuthenticationPropertiesT>(value));
113 return *this;
114 }
115 template <typename BasicAuthenticationPropertiesKeyT = Aws::String, typename BasicAuthenticationPropertiesValueT = Property>
116 AuthConfiguration& AddBasicAuthenticationProperties(BasicAuthenticationPropertiesKeyT&& key,
117 BasicAuthenticationPropertiesValueT&& value) {
118 m_basicAuthenticationPropertiesHasBeenSet = true;
119 m_basicAuthenticationProperties.emplace(std::forward<BasicAuthenticationPropertiesKeyT>(key),
120 std::forward<BasicAuthenticationPropertiesValueT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Map<Aws::String, Property>& GetCustomAuthenticationProperties() const { return m_customAuthenticationProperties; }
131 inline bool CustomAuthenticationPropertiesHasBeenSet() const { return m_customAuthenticationPropertiesHasBeenSet; }
132 template <typename CustomAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
133 void SetCustomAuthenticationProperties(CustomAuthenticationPropertiesT&& value) {
134 m_customAuthenticationPropertiesHasBeenSet = true;
135 m_customAuthenticationProperties = std::forward<CustomAuthenticationPropertiesT>(value);
136 }
137 template <typename CustomAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
138 AuthConfiguration& WithCustomAuthenticationProperties(CustomAuthenticationPropertiesT&& value) {
139 SetCustomAuthenticationProperties(std::forward<CustomAuthenticationPropertiesT>(value));
140 return *this;
141 }
142 template <typename CustomAuthenticationPropertiesKeyT = Aws::String, typename CustomAuthenticationPropertiesValueT = Property>
143 AuthConfiguration& AddCustomAuthenticationProperties(CustomAuthenticationPropertiesKeyT&& key,
144 CustomAuthenticationPropertiesValueT&& value) {
145 m_customAuthenticationPropertiesHasBeenSet = true;
146 m_customAuthenticationProperties.emplace(std::forward<CustomAuthenticationPropertiesKeyT>(key),
147 std::forward<CustomAuthenticationPropertiesValueT>(value));
148 return *this;
149 }
151 private:
152 Property m_authenticationType;
153
154 Property m_secretArn;
155
156 Aws::Map<Aws::String, Property> m_oAuth2Properties;
157
158 Aws::Map<Aws::String, Property> m_basicAuthenticationProperties;
159
160 Aws::Map<Aws::String, Property> m_customAuthenticationProperties;
161 bool m_authenticationTypeHasBeenSet = false;
162 bool m_secretArnHasBeenSet = false;
163 bool m_oAuth2PropertiesHasBeenSet = false;
164 bool m_basicAuthenticationPropertiesHasBeenSet = false;
165 bool m_customAuthenticationPropertiesHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Glue
170} // namespace Aws
AuthConfiguration & WithAuthenticationType(AuthenticationTypeT &&value)
AuthConfiguration & WithBasicAuthenticationProperties(BasicAuthenticationPropertiesT &&value)
void SetOAuth2Properties(OAuth2PropertiesT &&value)
AuthConfiguration & AddBasicAuthenticationProperties(BasicAuthenticationPropertiesKeyT &&key, BasicAuthenticationPropertiesValueT &&value)
const Property & GetSecretArn() const
AuthConfiguration & WithOAuth2Properties(OAuth2PropertiesT &&value)
AuthConfiguration & WithCustomAuthenticationProperties(CustomAuthenticationPropertiesT &&value)
void SetCustomAuthenticationProperties(CustomAuthenticationPropertiesT &&value)
void SetAuthenticationType(AuthenticationTypeT &&value)
const Property & GetAuthenticationType() const
const Aws::Map< Aws::String, Property > & GetOAuth2Properties() const
const Aws::Map< Aws::String, Property > & GetBasicAuthenticationProperties() const
AuthConfiguration & WithSecretArn(SecretArnT &&value)
AWS_GLUE_API AuthConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSecretArn(SecretArnT &&value)
AuthConfiguration & AddOAuth2Properties(OAuth2PropertiesKeyT &&key, OAuth2PropertiesValueT &&value)
AWS_GLUE_API AuthConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API AuthConfiguration()=default
AuthConfiguration & AddCustomAuthenticationProperties(CustomAuthenticationPropertiesKeyT &&key, CustomAuthenticationPropertiesValueT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBasicAuthenticationProperties(BasicAuthenticationPropertiesT &&value)
const Aws::Map< Aws::String, Property > & GetCustomAuthenticationProperties() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue