AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
AuthenticationConfigurationInput.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/AuthenticationType.h>
11#include <aws/glue/model/BasicAuthenticationCredentials.h>
12#include <aws/glue/model/CredentialBrokerProperties.h>
13#include <aws/glue/model/OAuth2PropertiesInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
34 public:
35 AWS_GLUE_API AuthenticationConfigurationInput() = default;
39
41
45 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
46 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
48 m_authenticationTypeHasBeenSet = true;
49 m_authenticationType = value;
50 }
56
58
61 inline const OAuth2PropertiesInput& GetOAuth2Properties() const { return m_oAuth2Properties; }
62 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
63 template <typename OAuth2PropertiesT = OAuth2PropertiesInput>
64 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
65 m_oAuth2PropertiesHasBeenSet = true;
66 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
67 }
68 template <typename OAuth2PropertiesT = OAuth2PropertiesInput>
70 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
81 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
82 template <typename SecretArnT = Aws::String>
83 void SetSecretArn(SecretArnT&& value) {
84 m_secretArnHasBeenSet = true;
85 m_secretArn = std::forward<SecretArnT>(value);
86 }
87 template <typename SecretArnT = Aws::String>
89 SetSecretArn(std::forward<SecretArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
100 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
101 template <typename KmsKeyArnT = Aws::String>
102 void SetKmsKeyArn(KmsKeyArnT&& value) {
103 m_kmsKeyArnHasBeenSet = true;
104 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
105 }
106 template <typename KmsKeyArnT = Aws::String>
108 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
109 return *this;
110 }
112
114
118 inline const CredentialBrokerProperties& GetCredentialBrokerProperties() const { return m_credentialBrokerProperties; }
119 inline bool CredentialBrokerPropertiesHasBeenSet() const { return m_credentialBrokerPropertiesHasBeenSet; }
120 template <typename CredentialBrokerPropertiesT = CredentialBrokerProperties>
121 void SetCredentialBrokerProperties(CredentialBrokerPropertiesT&& value) {
122 m_credentialBrokerPropertiesHasBeenSet = true;
123 m_credentialBrokerProperties = std::forward<CredentialBrokerPropertiesT>(value);
124 }
125 template <typename CredentialBrokerPropertiesT = CredentialBrokerProperties>
127 SetCredentialBrokerProperties(std::forward<CredentialBrokerPropertiesT>(value));
128 return *this;
129 }
131
133
137 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
138 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
139 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
140 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) {
141 m_basicAuthenticationCredentialsHasBeenSet = true;
142 m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value);
143 }
144 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
146 SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAuthenticationCredentials() const { return m_customAuthenticationCredentials; }
157 inline bool CustomAuthenticationCredentialsHasBeenSet() const { return m_customAuthenticationCredentialsHasBeenSet; }
158 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
159 void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) {
160 m_customAuthenticationCredentialsHasBeenSet = true;
161 m_customAuthenticationCredentials = std::forward<CustomAuthenticationCredentialsT>(value);
162 }
163 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
165 SetCustomAuthenticationCredentials(std::forward<CustomAuthenticationCredentialsT>(value));
166 return *this;
167 }
168 template <typename CustomAuthenticationCredentialsKeyT = Aws::String, typename CustomAuthenticationCredentialsValueT = Aws::String>
170 CustomAuthenticationCredentialsValueT&& value) {
171 m_customAuthenticationCredentialsHasBeenSet = true;
172 m_customAuthenticationCredentials.emplace(std::forward<CustomAuthenticationCredentialsKeyT>(key),
173 std::forward<CustomAuthenticationCredentialsValueT>(value));
174 return *this;
175 }
177 private:
179
180 OAuth2PropertiesInput m_oAuth2Properties;
181
182 Aws::String m_secretArn;
183
184 Aws::String m_kmsKeyArn;
185
186 CredentialBrokerProperties m_credentialBrokerProperties;
187
188 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
189
190 Aws::Map<Aws::String, Aws::String> m_customAuthenticationCredentials;
191 bool m_authenticationTypeHasBeenSet = false;
192 bool m_oAuth2PropertiesHasBeenSet = false;
193 bool m_secretArnHasBeenSet = false;
194 bool m_kmsKeyArnHasBeenSet = false;
195 bool m_credentialBrokerPropertiesHasBeenSet = false;
196 bool m_basicAuthenticationCredentialsHasBeenSet = false;
197 bool m_customAuthenticationCredentialsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace Glue
202} // namespace Aws
AuthenticationConfigurationInput & WithKmsKeyArn(KmsKeyArnT &&value)
const CredentialBrokerProperties & GetCredentialBrokerProperties() const
AuthenticationConfigurationInput & WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT &&value)
AuthenticationConfigurationInput & WithSecretArn(SecretArnT &&value)
const BasicAuthenticationCredentials & GetBasicAuthenticationCredentials() const
void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AuthenticationConfigurationInput & WithCredentialBrokerProperties(CredentialBrokerPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomAuthenticationCredentials() const
AWS_GLUE_API AuthenticationConfigurationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfigurationInput & WithOAuth2Properties(OAuth2PropertiesT &&value)
AuthenticationConfigurationInput & WithCustomAuthenticationCredentials(CustomAuthenticationCredentialsT &&value)
AWS_GLUE_API AuthenticationConfigurationInput(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfigurationInput & WithAuthenticationType(AuthenticationType value)
AuthenticationConfigurationInput & AddCustomAuthenticationCredentials(CustomAuthenticationCredentialsKeyT &&key, CustomAuthenticationCredentialsValueT &&value)
void SetCredentialBrokerProperties(CredentialBrokerPropertiesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue