AWS SDK for C++  1.9.109
AWS SDK for C++
UserAuthConfigInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace RDS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const Aws::String& GetDescription() const{ return m_description; }
50 
55  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 
61  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 
67  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 
73  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 
79  inline UserAuthConfigInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 
85  inline UserAuthConfigInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 
91  inline UserAuthConfigInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
92 
93 
97  inline const Aws::String& GetUserName() const{ return m_userName; }
98 
102  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
103 
107  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
108 
112  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
113 
117  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
118 
122  inline UserAuthConfigInfo& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
123 
127  inline UserAuthConfigInfo& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
128 
132  inline UserAuthConfigInfo& WithUserName(const char* value) { SetUserName(value); return *this;}
133 
134 
139  inline const AuthScheme& GetAuthScheme() const{ return m_authScheme; }
140 
145  inline bool AuthSchemeHasBeenSet() const { return m_authSchemeHasBeenSet; }
146 
151  inline void SetAuthScheme(const AuthScheme& value) { m_authSchemeHasBeenSet = true; m_authScheme = value; }
152 
157  inline void SetAuthScheme(AuthScheme&& value) { m_authSchemeHasBeenSet = true; m_authScheme = std::move(value); }
158 
163  inline UserAuthConfigInfo& WithAuthScheme(const AuthScheme& value) { SetAuthScheme(value); return *this;}
164 
169  inline UserAuthConfigInfo& WithAuthScheme(AuthScheme&& value) { SetAuthScheme(std::move(value)); return *this;}
170 
171 
177  inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
178 
184  inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
185 
191  inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
192 
198  inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
199 
205  inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
206 
212  inline UserAuthConfigInfo& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
213 
219  inline UserAuthConfigInfo& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
220 
226  inline UserAuthConfigInfo& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
227 
228 
233  inline const IAMAuthMode& GetIAMAuth() const{ return m_iAMAuth; }
234 
239  inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
240 
245  inline void SetIAMAuth(const IAMAuthMode& value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = value; }
246 
251  inline void SetIAMAuth(IAMAuthMode&& value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = std::move(value); }
252 
257  inline UserAuthConfigInfo& WithIAMAuth(const IAMAuthMode& value) { SetIAMAuth(value); return *this;}
258 
263  inline UserAuthConfigInfo& WithIAMAuth(IAMAuthMode&& value) { SetIAMAuth(std::move(value)); return *this;}
264 
265  private:
266 
267  Aws::String m_description;
268  bool m_descriptionHasBeenSet;
269 
270  Aws::String m_userName;
271  bool m_userNameHasBeenSet;
272 
273  AuthScheme m_authScheme;
274  bool m_authSchemeHasBeenSet;
275 
276  Aws::String m_secretArn;
277  bool m_secretArnHasBeenSet;
278 
279  IAMAuthMode m_iAMAuth;
280  bool m_iAMAuthHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace RDS
285 } // namespace Aws
Aws::RDS::Model::UserAuthConfigInfo::WithDescription
UserAuthConfigInfo & WithDescription(const Aws::String &value)
Definition: UserAuthConfigInfo.h:79
Aws::RDS::Model::UserAuthConfigInfo::WithUserName
UserAuthConfigInfo & WithUserName(const char *value)
Definition: UserAuthConfigInfo.h:132
AuthScheme.h
Aws::RDS::Model::UserAuthConfigInfo::UserAuthConfigInfo
UserAuthConfigInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::UserAuthConfigInfo::WithSecretArn
UserAuthConfigInfo & WithSecretArn(const char *value)
Definition: UserAuthConfigInfo.h:226
Aws::RDS::Model::UserAuthConfigInfo::SetAuthScheme
void SetAuthScheme(const AuthScheme &value)
Definition: UserAuthConfigInfo.h:151
Aws::RDS::Model::UserAuthConfigInfo::AuthSchemeHasBeenSet
bool AuthSchemeHasBeenSet() const
Definition: UserAuthConfigInfo.h:145
Aws::RDS::Model::UserAuthConfigInfo::SetSecretArn
void SetSecretArn(const char *value)
Definition: UserAuthConfigInfo.h:205
Aws::RDS::Model::UserAuthConfigInfo::GetUserName
const Aws::String & GetUserName() const
Definition: UserAuthConfigInfo.h:97
Aws::RDS::Model::UserAuthConfigInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::UserAuthConfigInfo::operator=
UserAuthConfigInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IAMAuthMode.h
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::UserAuthConfigInfo::WithAuthScheme
UserAuthConfigInfo & WithAuthScheme(const AuthScheme &value)
Definition: UserAuthConfigInfo.h:163
Aws::RDS::Model::UserAuthConfigInfo::SetDescription
void SetDescription(const Aws::String &value)
Definition: UserAuthConfigInfo.h:61
Aws::RDS::Model::UserAuthConfigInfo::GetIAMAuth
const IAMAuthMode & GetIAMAuth() const
Definition: UserAuthConfigInfo.h:233
Aws::RDS::Model::UserAuthConfigInfo::SetDescription
void SetDescription(Aws::String &&value)
Definition: UserAuthConfigInfo.h:67
AWSStreamFwd.h
Aws::RDS::Model::UserAuthConfigInfo::SetSecretArn
void SetSecretArn(Aws::String &&value)
Definition: UserAuthConfigInfo.h:198
Aws::RDS::Model::UserAuthConfigInfo::WithSecretArn
UserAuthConfigInfo & WithSecretArn(const Aws::String &value)
Definition: UserAuthConfigInfo.h:212
Aws::RDS::Model::UserAuthConfigInfo::WithSecretArn
UserAuthConfigInfo & WithSecretArn(Aws::String &&value)
Definition: UserAuthConfigInfo.h:219
Aws::RDS::Model::UserAuthConfigInfo::SetUserName
void SetUserName(const char *value)
Definition: UserAuthConfigInfo.h:117
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::UserAuthConfigInfo::WithIAMAuth
UserAuthConfigInfo & WithIAMAuth(IAMAuthMode &&value)
Definition: UserAuthConfigInfo.h:263
Aws::RDS::Model::UserAuthConfigInfo::WithDescription
UserAuthConfigInfo & WithDescription(const char *value)
Definition: UserAuthConfigInfo.h:91
Aws::RDS::Model::UserAuthConfigInfo::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: UserAuthConfigInfo.h:102
Aws::RDS::Model::UserAuthConfigInfo::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UserAuthConfigInfo.h:55
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::UserAuthConfigInfo::IAMAuthHasBeenSet
bool IAMAuthHasBeenSet() const
Definition: UserAuthConfigInfo.h:239
Aws::RDS::Model::UserAuthConfigInfo::SetSecretArn
void SetSecretArn(const Aws::String &value)
Definition: UserAuthConfigInfo.h:191
Aws::RDS::Model::UserAuthConfigInfo::SetUserName
void SetUserName(Aws::String &&value)
Definition: UserAuthConfigInfo.h:112
Aws::RDS::Model::IAMAuthMode
IAMAuthMode
Definition: IAMAuthMode.h:17
Aws::RDS::Model::UserAuthConfigInfo::SetIAMAuth
void SetIAMAuth(IAMAuthMode &&value)
Definition: UserAuthConfigInfo.h:251
AWSString.h
Aws::RDS::Model::UserAuthConfigInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::UserAuthConfigInfo::UserAuthConfigInfo
UserAuthConfigInfo()
Aws::RDS::Model::UserAuthConfigInfo::SetUserName
void SetUserName(const Aws::String &value)
Definition: UserAuthConfigInfo.h:107
Aws::RDS::Model::UserAuthConfigInfo::WithDescription
UserAuthConfigInfo & WithDescription(Aws::String &&value)
Definition: UserAuthConfigInfo.h:85
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::UserAuthConfigInfo::SetDescription
void SetDescription(const char *value)
Definition: UserAuthConfigInfo.h:73
Aws::RDS::Model::UserAuthConfigInfo::SecretArnHasBeenSet
bool SecretArnHasBeenSet() const
Definition: UserAuthConfigInfo.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::UserAuthConfigInfo::SetAuthScheme
void SetAuthScheme(AuthScheme &&value)
Definition: UserAuthConfigInfo.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::UserAuthConfigInfo::WithUserName
UserAuthConfigInfo & WithUserName(const Aws::String &value)
Definition: UserAuthConfigInfo.h:122
Aws::RDS::Model::UserAuthConfigInfo::GetAuthScheme
const AuthScheme & GetAuthScheme() const
Definition: UserAuthConfigInfo.h:139
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::UserAuthConfigInfo::GetSecretArn
const Aws::String & GetSecretArn() const
Definition: UserAuthConfigInfo.h:177
Aws::RDS::Model::UserAuthConfigInfo::WithIAMAuth
UserAuthConfigInfo & WithIAMAuth(const IAMAuthMode &value)
Definition: UserAuthConfigInfo.h:257
Aws::RDS::Model::UserAuthConfigInfo
Definition: UserAuthConfigInfo.h:35
Aws::RDS::Model::UserAuthConfigInfo::WithUserName
UserAuthConfigInfo & WithUserName(Aws::String &&value)
Definition: UserAuthConfigInfo.h:127
Aws::RDS::Model::UserAuthConfigInfo::WithAuthScheme
UserAuthConfigInfo & WithAuthScheme(AuthScheme &&value)
Definition: UserAuthConfigInfo.h:169
Aws::RDS::Model::UserAuthConfigInfo::SetIAMAuth
void SetIAMAuth(const IAMAuthMode &value)
Definition: UserAuthConfigInfo.h:245
Aws::RDS::Model::UserAuthConfigInfo::GetDescription
const Aws::String & GetDescription() const
Definition: UserAuthConfigInfo.h:49
Aws::RDS::Model::AuthScheme
AuthScheme
Definition: AuthScheme.h:17