AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserAuthConfigInfo.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 UserAuthConfigInfo() = default;
39 AWS_RDS_API UserAuthConfigInfo(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 UserAuthConfigInfo& 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 UserAuthConfigInfo& 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 UserAuthConfigInfo& 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 UserAuthConfigInfo& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
95
97
101 inline IAMAuthMode GetIAMAuth() const { return m_iAMAuth; }
102 inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
103 inline void SetIAMAuth(IAMAuthMode value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = value; }
104 inline UserAuthConfigInfo& WithIAMAuth(IAMAuthMode value) { SetIAMAuth(value); return *this;}
106
108
111 inline ClientPasswordAuthType GetClientPasswordAuthType() const { return m_clientPasswordAuthType; }
112 inline bool ClientPasswordAuthTypeHasBeenSet() const { return m_clientPasswordAuthTypeHasBeenSet; }
113 inline void SetClientPasswordAuthType(ClientPasswordAuthType value) { m_clientPasswordAuthTypeHasBeenSet = true; m_clientPasswordAuthType = value; }
116 private:
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_userName;
122 bool m_userNameHasBeenSet = false;
123
124 AuthScheme m_authScheme{AuthScheme::NOT_SET};
125 bool m_authSchemeHasBeenSet = false;
126
127 Aws::String m_secretArn;
128 bool m_secretArnHasBeenSet = false;
129
131 bool m_iAMAuthHasBeenSet = false;
132
134 bool m_clientPasswordAuthTypeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace RDS
139} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UserAuthConfigInfo & WithIAMAuth(IAMAuthMode value)
void SetClientPasswordAuthType(ClientPasswordAuthType value)
AWS_RDS_API UserAuthConfigInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserAuthConfigInfo & WithAuthScheme(AuthScheme value)
const Aws::String & GetSecretArn() const
AWS_RDS_API UserAuthConfigInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
UserAuthConfigInfo & WithDescription(DescriptionT &&value)
UserAuthConfigInfo & WithUserName(UserNameT &&value)
UserAuthConfigInfo & WithClientPasswordAuthType(ClientPasswordAuthType value)
void SetSecretArn(SecretArnT &&value)
const Aws::String & GetUserName() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(DescriptionT &&value)
AWS_RDS_API UserAuthConfigInfo()=default
const Aws::String & GetDescription() const
UserAuthConfigInfo & WithSecretArn(SecretArnT &&value)
ClientPasswordAuthType GetClientPasswordAuthType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream