AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserAuthConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10#include <aws/rds/model/AuthScheme.h>
11#include <aws/rds/model/ClientPasswordAuthType.h>
12#include <aws/rds/model/IAMAuthMode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS {
23namespace Model {
24
32 public:
33 AWS_RDS_API UserAuthConfig() = default;
34 AWS_RDS_API UserAuthConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::String& GetDescription() const { return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 template <typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) {
49 m_descriptionHasBeenSet = true;
50 m_description = std::forward<DescriptionT>(value);
51 }
52 template <typename DescriptionT = Aws::String>
53 UserAuthConfig& WithDescription(DescriptionT&& value) {
54 SetDescription(std::forward<DescriptionT>(value));
55 return *this;
56 }
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) {
67 m_userNameHasBeenSet = true;
68 m_userName = std::forward<UserNameT>(value);
69 }
70 template <typename UserNameT = Aws::String>
71 UserAuthConfig& WithUserName(UserNameT&& value) {
72 SetUserName(std::forward<UserNameT>(value));
73 return *this;
74 }
76
78
82 inline AuthScheme GetAuthScheme() const { return m_authScheme; }
83 inline bool AuthSchemeHasBeenSet() const { return m_authSchemeHasBeenSet; }
84 inline void SetAuthScheme(AuthScheme value) {
85 m_authSchemeHasBeenSet = true;
86 m_authScheme = value;
87 }
89 SetAuthScheme(value);
90 return *this;
91 }
93
95
100 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
101 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
102 template <typename SecretArnT = Aws::String>
103 void SetSecretArn(SecretArnT&& value) {
104 m_secretArnHasBeenSet = true;
105 m_secretArn = std::forward<SecretArnT>(value);
106 }
107 template <typename SecretArnT = Aws::String>
108 UserAuthConfig& WithSecretArn(SecretArnT&& value) {
109 SetSecretArn(std::forward<SecretArnT>(value));
110 return *this;
111 }
113
115
121 inline IAMAuthMode GetIAMAuth() const { return m_iAMAuth; }
122 inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
123 inline void SetIAMAuth(IAMAuthMode value) {
124 m_iAMAuthHasBeenSet = true;
125 m_iAMAuth = value;
126 }
128 SetIAMAuth(value);
129 return *this;
130 }
132
134
141 inline ClientPasswordAuthType GetClientPasswordAuthType() const { return m_clientPasswordAuthType; }
142 inline bool ClientPasswordAuthTypeHasBeenSet() const { return m_clientPasswordAuthTypeHasBeenSet; }
144 m_clientPasswordAuthTypeHasBeenSet = true;
145 m_clientPasswordAuthType = value;
146 }
149 return *this;
150 }
152 private:
153 Aws::String m_description;
154
155 Aws::String m_userName;
156
157 AuthScheme m_authScheme{AuthScheme::NOT_SET};
158
159 Aws::String m_secretArn;
160
162
164 bool m_descriptionHasBeenSet = false;
165 bool m_userNameHasBeenSet = false;
166 bool m_authSchemeHasBeenSet = false;
167 bool m_secretArnHasBeenSet = false;
168 bool m_iAMAuthHasBeenSet = false;
169 bool m_clientPasswordAuthTypeHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace RDS
174} // 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