AWS SDK for C++

AWS SDK for C++ Version 1.11.690

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/OAuth2PropertiesInput.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 AuthenticationConfigurationInput() = default;
38
40
44 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
45 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
47 m_authenticationTypeHasBeenSet = true;
48 m_authenticationType = value;
49 }
52 return *this;
53 }
55
57
60 inline const OAuth2PropertiesInput& GetOAuth2Properties() const { return m_oAuth2Properties; }
61 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
62 template <typename OAuth2PropertiesT = OAuth2PropertiesInput>
63 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
64 m_oAuth2PropertiesHasBeenSet = true;
65 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
66 }
67 template <typename OAuth2PropertiesT = OAuth2PropertiesInput>
69 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
80 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
81 template <typename SecretArnT = Aws::String>
82 void SetSecretArn(SecretArnT&& value) {
83 m_secretArnHasBeenSet = true;
84 m_secretArn = std::forward<SecretArnT>(value);
85 }
86 template <typename SecretArnT = Aws::String>
88 SetSecretArn(std::forward<SecretArnT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
99 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
100 template <typename KmsKeyArnT = Aws::String>
101 void SetKmsKeyArn(KmsKeyArnT&& value) {
102 m_kmsKeyArnHasBeenSet = true;
103 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
104 }
105 template <typename KmsKeyArnT = Aws::String>
107 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
108 return *this;
109 }
111
113
117 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
118 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
119 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
120 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) {
121 m_basicAuthenticationCredentialsHasBeenSet = true;
122 m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value);
123 }
124 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
126 SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAuthenticationCredentials() const { return m_customAuthenticationCredentials; }
137 inline bool CustomAuthenticationCredentialsHasBeenSet() const { return m_customAuthenticationCredentialsHasBeenSet; }
138 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
139 void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) {
140 m_customAuthenticationCredentialsHasBeenSet = true;
141 m_customAuthenticationCredentials = std::forward<CustomAuthenticationCredentialsT>(value);
142 }
143 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
145 SetCustomAuthenticationCredentials(std::forward<CustomAuthenticationCredentialsT>(value));
146 return *this;
147 }
148 template <typename CustomAuthenticationCredentialsKeyT = Aws::String, typename CustomAuthenticationCredentialsValueT = Aws::String>
150 CustomAuthenticationCredentialsValueT&& value) {
151 m_customAuthenticationCredentialsHasBeenSet = true;
152 m_customAuthenticationCredentials.emplace(std::forward<CustomAuthenticationCredentialsKeyT>(key),
153 std::forward<CustomAuthenticationCredentialsValueT>(value));
154 return *this;
155 }
157 private:
159 bool m_authenticationTypeHasBeenSet = false;
160
161 OAuth2PropertiesInput m_oAuth2Properties;
162 bool m_oAuth2PropertiesHasBeenSet = false;
163
164 Aws::String m_secretArn;
165 bool m_secretArnHasBeenSet = false;
166
167 Aws::String m_kmsKeyArn;
168 bool m_kmsKeyArnHasBeenSet = false;
169
170 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
171 bool m_basicAuthenticationCredentialsHasBeenSet = false;
172
173 Aws::Map<Aws::String, Aws::String> m_customAuthenticationCredentials;
174 bool m_customAuthenticationCredentialsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Glue
179} // namespace Aws
AuthenticationConfigurationInput & WithKmsKeyArn(KmsKeyArnT &&value)
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
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)
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