AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthConfiguration.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/Property.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API AuthConfiguration() = default;
41
42
44
47 inline const Property& GetAuthenticationType() const { return m_authenticationType; }
48 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
49 template<typename AuthenticationTypeT = Property>
50 void SetAuthenticationType(AuthenticationTypeT&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::forward<AuthenticationTypeT>(value); }
51 template<typename AuthenticationTypeT = Property>
52 AuthConfiguration& WithAuthenticationType(AuthenticationTypeT&& value) { SetAuthenticationType(std::forward<AuthenticationTypeT>(value)); return *this;}
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) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
63 template<typename SecretArnT = Property>
64 AuthConfiguration& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
66
68
72 inline const Aws::Map<Aws::String, Property>& GetOAuth2Properties() const { return m_oAuth2Properties; }
73 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
74 template<typename OAuth2PropertiesT = Aws::Map<Aws::String, Property>>
75 void SetOAuth2Properties(OAuth2PropertiesT&& value) { m_oAuth2PropertiesHasBeenSet = true; m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value); }
76 template<typename OAuth2PropertiesT = Aws::Map<Aws::String, Property>>
77 AuthConfiguration& WithOAuth2Properties(OAuth2PropertiesT&& value) { SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value)); return *this;}
78 template<typename OAuth2PropertiesKeyT = Aws::String, typename OAuth2PropertiesValueT = Property>
79 AuthConfiguration& AddOAuth2Properties(OAuth2PropertiesKeyT&& key, OAuth2PropertiesValueT&& value) {
80 m_oAuth2PropertiesHasBeenSet = true; m_oAuth2Properties.emplace(std::forward<OAuth2PropertiesKeyT>(key), std::forward<OAuth2PropertiesValueT>(value)); return *this;
81 }
83
85
89 inline const Aws::Map<Aws::String, Property>& GetBasicAuthenticationProperties() const { return m_basicAuthenticationProperties; }
90 inline bool BasicAuthenticationPropertiesHasBeenSet() const { return m_basicAuthenticationPropertiesHasBeenSet; }
91 template<typename BasicAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
92 void SetBasicAuthenticationProperties(BasicAuthenticationPropertiesT&& value) { m_basicAuthenticationPropertiesHasBeenSet = true; m_basicAuthenticationProperties = std::forward<BasicAuthenticationPropertiesT>(value); }
93 template<typename BasicAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
94 AuthConfiguration& WithBasicAuthenticationProperties(BasicAuthenticationPropertiesT&& value) { SetBasicAuthenticationProperties(std::forward<BasicAuthenticationPropertiesT>(value)); return *this;}
95 template<typename BasicAuthenticationPropertiesKeyT = Aws::String, typename BasicAuthenticationPropertiesValueT = Property>
96 AuthConfiguration& AddBasicAuthenticationProperties(BasicAuthenticationPropertiesKeyT&& key, BasicAuthenticationPropertiesValueT&& value) {
97 m_basicAuthenticationPropertiesHasBeenSet = true; m_basicAuthenticationProperties.emplace(std::forward<BasicAuthenticationPropertiesKeyT>(key), std::forward<BasicAuthenticationPropertiesValueT>(value)); return *this;
98 }
100
102
106 inline const Aws::Map<Aws::String, Property>& GetCustomAuthenticationProperties() const { return m_customAuthenticationProperties; }
107 inline bool CustomAuthenticationPropertiesHasBeenSet() const { return m_customAuthenticationPropertiesHasBeenSet; }
108 template<typename CustomAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
109 void SetCustomAuthenticationProperties(CustomAuthenticationPropertiesT&& value) { m_customAuthenticationPropertiesHasBeenSet = true; m_customAuthenticationProperties = std::forward<CustomAuthenticationPropertiesT>(value); }
110 template<typename CustomAuthenticationPropertiesT = Aws::Map<Aws::String, Property>>
111 AuthConfiguration& WithCustomAuthenticationProperties(CustomAuthenticationPropertiesT&& value) { SetCustomAuthenticationProperties(std::forward<CustomAuthenticationPropertiesT>(value)); return *this;}
112 template<typename CustomAuthenticationPropertiesKeyT = Aws::String, typename CustomAuthenticationPropertiesValueT = Property>
113 AuthConfiguration& AddCustomAuthenticationProperties(CustomAuthenticationPropertiesKeyT&& key, CustomAuthenticationPropertiesValueT&& value) {
114 m_customAuthenticationPropertiesHasBeenSet = true; m_customAuthenticationProperties.emplace(std::forward<CustomAuthenticationPropertiesKeyT>(key), std::forward<CustomAuthenticationPropertiesValueT>(value)); return *this;
115 }
117 private:
118
119 Property m_authenticationType;
120 bool m_authenticationTypeHasBeenSet = false;
121
122 Property m_secretArn;
123 bool m_secretArnHasBeenSet = false;
124
125 Aws::Map<Aws::String, Property> m_oAuth2Properties;
126 bool m_oAuth2PropertiesHasBeenSet = false;
127
128 Aws::Map<Aws::String, Property> m_basicAuthenticationProperties;
129 bool m_basicAuthenticationPropertiesHasBeenSet = false;
130
131 Aws::Map<Aws::String, Property> m_customAuthenticationProperties;
132 bool m_customAuthenticationPropertiesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Glue
137} // 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