AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserAuthConfigInfo.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 UserAuthConfigInfo() = default;
34 AWS_RDS_API UserAuthConfigInfo(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 UserAuthConfigInfo& 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 UserAuthConfigInfo& 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 UserAuthConfigInfo& WithSecretArn(SecretArnT&& value) {
109 SetSecretArn(std::forward<SecretArnT>(value));
110 return *this;
111 }
113
115
119 inline IAMAuthMode GetIAMAuth() const { return m_iAMAuth; }
120 inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
121 inline void SetIAMAuth(IAMAuthMode value) {
122 m_iAMAuthHasBeenSet = true;
123 m_iAMAuth = value;
124 }
126 SetIAMAuth(value);
127 return *this;
128 }
130
132
135 inline ClientPasswordAuthType GetClientPasswordAuthType() const { return m_clientPasswordAuthType; }
136 inline bool ClientPasswordAuthTypeHasBeenSet() const { return m_clientPasswordAuthTypeHasBeenSet; }
138 m_clientPasswordAuthTypeHasBeenSet = true;
139 m_clientPasswordAuthType = value;
140 }
143 return *this;
144 }
146 private:
147 Aws::String m_description;
148
149 Aws::String m_userName;
150
151 AuthScheme m_authScheme{AuthScheme::NOT_SET};
152
153 Aws::String m_secretArn;
154
156
158 bool m_descriptionHasBeenSet = false;
159 bool m_userNameHasBeenSet = false;
160 bool m_authSchemeHasBeenSet = false;
161 bool m_secretArnHasBeenSet = false;
162 bool m_iAMAuthHasBeenSet = false;
163 bool m_clientPasswordAuthTypeHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace RDS
168} // 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)
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