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/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AuthenticationType.h>
9#include <aws/datazone/model/BasicAuthenticationCredentials.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/datazone/model/OAuth2Properties.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 DataZone
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DATAZONE_API AuthenticationConfigurationInput() = default;
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
50 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
51 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
54
56
59 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
60 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
61 template<typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
62 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) { m_basicAuthenticationCredentialsHasBeenSet = true; m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value); }
63 template<typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
64 AuthenticationConfigurationInput& WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) { SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAuthenticationCredentials() const { return m_customAuthenticationCredentials; }
72 inline bool CustomAuthenticationCredentialsHasBeenSet() const { return m_customAuthenticationCredentialsHasBeenSet; }
73 template<typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
74 void SetCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) { m_customAuthenticationCredentialsHasBeenSet = true; m_customAuthenticationCredentials = std::forward<CustomAuthenticationCredentialsT>(value); }
75 template<typename CustomAuthenticationCredentialsT = Aws::Map<Aws::String, Aws::String>>
76 AuthenticationConfigurationInput& WithCustomAuthenticationCredentials(CustomAuthenticationCredentialsT&& value) { SetCustomAuthenticationCredentials(std::forward<CustomAuthenticationCredentialsT>(value)); return *this;}
77 template<typename CustomAuthenticationCredentialsKeyT = Aws::String, typename CustomAuthenticationCredentialsValueT = Aws::String>
78 AuthenticationConfigurationInput& AddCustomAuthenticationCredentials(CustomAuthenticationCredentialsKeyT&& key, CustomAuthenticationCredentialsValueT&& value) {
79 m_customAuthenticationCredentialsHasBeenSet = true; m_customAuthenticationCredentials.emplace(std::forward<CustomAuthenticationCredentialsKeyT>(key), std::forward<CustomAuthenticationCredentialsValueT>(value)); return *this;
80 }
82
84
87 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
88 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
89 template<typename KmsKeyArnT = Aws::String>
90 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
91 template<typename KmsKeyArnT = Aws::String>
92 AuthenticationConfigurationInput& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
94
96
99 inline const OAuth2Properties& GetOAuth2Properties() const { return m_oAuth2Properties; }
100 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
101 template<typename OAuth2PropertiesT = OAuth2Properties>
102 void SetOAuth2Properties(OAuth2PropertiesT&& value) { m_oAuth2PropertiesHasBeenSet = true; m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value); }
103 template<typename OAuth2PropertiesT = OAuth2Properties>
104 AuthenticationConfigurationInput& WithOAuth2Properties(OAuth2PropertiesT&& value) { SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value)); return *this;}
106
108
111 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
112 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
113 template<typename SecretArnT = Aws::String>
114 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
115 template<typename SecretArnT = Aws::String>
116 AuthenticationConfigurationInput& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
118 private:
119
121 bool m_authenticationTypeHasBeenSet = false;
122
123 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
124 bool m_basicAuthenticationCredentialsHasBeenSet = false;
125
126 Aws::Map<Aws::String, Aws::String> m_customAuthenticationCredentials;
127 bool m_customAuthenticationCredentialsHasBeenSet = false;
128
129 Aws::String m_kmsKeyArn;
130 bool m_kmsKeyArnHasBeenSet = false;
131
132 OAuth2Properties m_oAuth2Properties;
133 bool m_oAuth2PropertiesHasBeenSet = false;
134
135 Aws::String m_secretArn;
136 bool m_secretArnHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace DataZone
141} // 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