AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthenticationConfigurationInput.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/AuthenticationType.h>
9#include <aws/glue/model/OAuth2PropertiesInput.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/glue/model/BasicAuthenticationCredentials.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLUE_API AuthenticationConfigurationInput() = default;
43
44
46
50 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
51 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
52 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
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) { m_oAuth2PropertiesHasBeenSet = true; m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value); }
64 template<typename OAuth2PropertiesT = OAuth2PropertiesInput>
65 AuthenticationConfigurationInput& WithOAuth2Properties(OAuth2PropertiesT&& value) { SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value)); return *this;}
67
69
73 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
74 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
75 template<typename SecretArnT = Aws::String>
76 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
77 template<typename SecretArnT = Aws::String>
78 AuthenticationConfigurationInput& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
80
82
86 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
87 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
88 template<typename KmsKeyArnT = Aws::String>
89 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
90 template<typename KmsKeyArnT = Aws::String>
91 AuthenticationConfigurationInput& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
93
95
99 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
100 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
101 template<typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
102 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) { m_basicAuthenticationCredentialsHasBeenSet = true; m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value); }
103 template<typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
104 AuthenticationConfigurationInput& WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) { SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value)); return *this;}
106
108
112 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAuthenticationCredentials() const { return m_customAuthenticationCredentials; }
113 inline bool CustomAuthenticationCredentialsHasBeenSet() const { return m_customAuthenticationCredentialsHasBeenSet; }
114 template<typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
115 void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) { m_customAuthenticationCredentialsHasBeenSet = true; m_customAuthenticationCredentials = std::forward<CustomAuthenticationCredentialsT>(value); }
116 template<typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
117 AuthenticationConfigurationInput& WithCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) { SetCustomAuthenticationCredentials(std::forward<CustomAuthenticationCredentialsT>(value)); return *this;}
118 template<typename CustomAuthenticationCredentialsKeyT = Aws::String, typename CustomAuthenticationCredentialsValueT = Aws::String>
119 AuthenticationConfigurationInput& AddCustomAuthenticationCredentials(CustomAuthenticationCredentialsKeyT&& key, CustomAuthenticationCredentialsValueT&& value) {
120 m_customAuthenticationCredentialsHasBeenSet = true; m_customAuthenticationCredentials.emplace(std::forward<CustomAuthenticationCredentialsKeyT>(key), std::forward<CustomAuthenticationCredentialsValueT>(value)); return *this;
121 }
123 private:
124
126 bool m_authenticationTypeHasBeenSet = false;
127
128 OAuth2PropertiesInput m_oAuth2Properties;
129 bool m_oAuth2PropertiesHasBeenSet = false;
130
131 Aws::String m_secretArn;
132 bool m_secretArnHasBeenSet = false;
133
134 Aws::String m_kmsKeyArn;
135 bool m_kmsKeyArnHasBeenSet = false;
136
137 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
138 bool m_basicAuthenticationCredentialsHasBeenSet = false;
139
140 Aws::Map<Aws::String, Aws::String> m_customAuthenticationCredentials;
141 bool m_customAuthenticationCredentialsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Glue
146} // 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