AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/AuthenticationType.h>
11#include <aws/datazone/model/BasicAuthenticationCredentials.h>
12#include <aws/datazone/model/OAuth2Properties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
33 public:
34 AWS_DATAZONE_API AuthenticationConfigurationInput() = default;
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
44 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
46 m_authenticationTypeHasBeenSet = true;
47 m_authenticationType = value;
48 }
51 return *this;
52 }
54
56
59 inline const OAuth2Properties& GetOAuth2Properties() const { return m_oAuth2Properties; }
60 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
61 template <typename OAuth2PropertiesT = OAuth2Properties>
62 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
63 m_oAuth2PropertiesHasBeenSet = true;
64 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
65 }
66 template <typename OAuth2PropertiesT = OAuth2Properties>
68 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
78 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
79 template <typename SecretArnT = Aws::String>
80 void SetSecretArn(SecretArnT&& value) {
81 m_secretArnHasBeenSet = true;
82 m_secretArn = std::forward<SecretArnT>(value);
83 }
84 template <typename SecretArnT = Aws::String>
86 SetSecretArn(std::forward<SecretArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
96 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
97 template <typename KmsKeyArnT = Aws::String>
98 void SetKmsKeyArn(KmsKeyArnT&& value) {
99 m_kmsKeyArnHasBeenSet = true;
100 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
101 }
102 template <typename KmsKeyArnT = Aws::String>
104 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
105 return *this;
106 }
108
110
113 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
114 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
115 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
116 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) {
117 m_basicAuthenticationCredentialsHasBeenSet = true;
118 m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value);
119 }
120 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
122 SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAuthenticationCredentials() const { return m_customAuthenticationCredentials; }
132 inline bool CustomAuthenticationCredentialsHasBeenSet() const { return m_customAuthenticationCredentialsHasBeenSet; }
133 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
134 void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) {
135 m_customAuthenticationCredentialsHasBeenSet = true;
136 m_customAuthenticationCredentials = std::forward<CustomAuthenticationCredentialsT>(value);
137 }
138 template <typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
140 SetCustomAuthenticationCredentials(std::forward<CustomAuthenticationCredentialsT>(value));
141 return *this;
142 }
143 template <typename CustomAuthenticationCredentialsKeyT = Aws::String, typename CustomAuthenticationCredentialsValueT = Aws::String>
145 CustomAuthenticationCredentialsValueT&& value) {
146 m_customAuthenticationCredentialsHasBeenSet = true;
147 m_customAuthenticationCredentials.emplace(std::forward<CustomAuthenticationCredentialsKeyT>(key),
148 std::forward<CustomAuthenticationCredentialsValueT>(value));
149 return *this;
150 }
152 private:
154
155 OAuth2Properties m_oAuth2Properties;
156
157 Aws::String m_secretArn;
158
159 Aws::String m_kmsKeyArn;
160
161 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
162
163 Aws::Map<Aws::String, Aws::String> m_customAuthenticationCredentials;
164 bool m_authenticationTypeHasBeenSet = false;
165 bool m_oAuth2PropertiesHasBeenSet = false;
166 bool m_secretArnHasBeenSet = false;
167 bool m_kmsKeyArnHasBeenSet = false;
168 bool m_basicAuthenticationCredentialsHasBeenSet = false;
169 bool m_customAuthenticationCredentialsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace DataZone
174} // namespace Aws
void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
AuthenticationConfigurationInput & WithAuthenticationType(AuthenticationType value)
AWS_DATAZONE_API AuthenticationConfigurationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const BasicAuthenticationCredentials & GetBasicAuthenticationCredentials() const
AuthenticationConfigurationInput & WithOAuth2Properties(OAuth2PropertiesT &&value)
AuthenticationConfigurationInput & WithCustomAuthenticationCredentials(CustomAuthenticationCredentialsT &&value)
AuthenticationConfigurationInput & WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT &&value)
AuthenticationConfigurationInput & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_DATAZONE_API AuthenticationConfigurationInput()=default
AuthenticationConfigurationInput & WithSecretArn(SecretArnT &&value)
AuthenticationConfigurationInput & AddCustomAuthenticationCredentials(CustomAuthenticationCredentialsKeyT &&key, CustomAuthenticationCredentialsValueT &&value)
AWS_DATAZONE_API AuthenticationConfigurationInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetCustomAuthenticationCredentials() const
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