AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserAuthConfig.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/AuthScheme.h>
11#include <aws/rds/model/IAMAuthMode.h>
12#include <aws/rds/model/ClientPasswordAuthType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RDS_API UserAuthConfig() = default;
39 AWS_RDS_API UserAuthConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetDescription() const { return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 template<typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
55 template<typename DescriptionT = Aws::String>
56 UserAuthConfig& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
58
60
63 inline const Aws::String& GetUserName() const { return m_userName; }
64 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
65 template<typename UserNameT = Aws::String>
66 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
67 template<typename UserNameT = Aws::String>
68 UserAuthConfig& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
70
72
76 inline AuthScheme GetAuthScheme() const { return m_authScheme; }
77 inline bool AuthSchemeHasBeenSet() const { return m_authSchemeHasBeenSet; }
78 inline void SetAuthScheme(AuthScheme value) { m_authSchemeHasBeenSet = true; m_authScheme = value; }
79 inline UserAuthConfig& WithAuthScheme(AuthScheme value) { SetAuthScheme(value); return *this;}
81
83
88 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
89 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
90 template<typename SecretArnT = Aws::String>
91 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
92 template<typename SecretArnT = Aws::String>
93 UserAuthConfig& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
95
97
103 inline IAMAuthMode GetIAMAuth() const { return m_iAMAuth; }
104 inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
105 inline void SetIAMAuth(IAMAuthMode value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = value; }
106 inline UserAuthConfig& WithIAMAuth(IAMAuthMode value) { SetIAMAuth(value); return *this;}
108
110
117 inline ClientPasswordAuthType GetClientPasswordAuthType() const { return m_clientPasswordAuthType; }
118 inline bool ClientPasswordAuthTypeHasBeenSet() const { return m_clientPasswordAuthTypeHasBeenSet; }
119 inline void SetClientPasswordAuthType(ClientPasswordAuthType value) { m_clientPasswordAuthTypeHasBeenSet = true; m_clientPasswordAuthType = value; }
122 private:
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_userName;
128 bool m_userNameHasBeenSet = false;
129
130 AuthScheme m_authScheme{AuthScheme::NOT_SET};
131 bool m_authSchemeHasBeenSet = false;
132
133 Aws::String m_secretArn;
134 bool m_secretArnHasBeenSet = false;
135
137 bool m_iAMAuthHasBeenSet = false;
138
140 bool m_clientPasswordAuthTypeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace RDS
145} // namespace Aws
void SetUserName(UserNameT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetSecretArn() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserAuthConfig & WithIAMAuth(IAMAuthMode value)
AWS_RDS_API UserAuthConfig()=default
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API UserAuthConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientPasswordAuthType GetClientPasswordAuthType() const
void SetIAMAuth(IAMAuthMode value)
UserAuthConfig & WithUserName(UserNameT &&value)
UserAuthConfig & WithDescription(DescriptionT &&value)
const Aws::String & GetUserName() const
void SetSecretArn(SecretArnT &&value)
AWS_RDS_API UserAuthConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAuthScheme(AuthScheme value)
UserAuthConfig & WithClientPasswordAuthType(ClientPasswordAuthType value)
UserAuthConfig & WithSecretArn(SecretArnT &&value)
UserAuthConfig & WithAuthScheme(AuthScheme value)
void SetClientPasswordAuthType(ClientPasswordAuthType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream