AWS SDK for C++  1.9.108
AWS SDK for C++
UserAuthConfig.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 UserAuthConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 
85  inline UserAuthConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 
91  inline UserAuthConfig& 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 UserAuthConfig& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
123 
127  inline UserAuthConfig& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
128 
132  inline UserAuthConfig& 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 UserAuthConfig& WithAuthScheme(const AuthScheme& value) { SetAuthScheme(value); return *this;}
164 
169  inline UserAuthConfig& 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 UserAuthConfig& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
213 
219  inline UserAuthConfig& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
220 
226  inline UserAuthConfig& 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 UserAuthConfig& WithIAMAuth(const IAMAuthMode& value) { SetIAMAuth(value); return *this;}
258 
263  inline UserAuthConfig& 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::UserAuthConfig::SetDescription
void SetDescription(const char *value)
Definition: UserAuthConfig.h:73
AuthScheme.h
Aws::RDS::Model::UserAuthConfig::GetSecretArn
const Aws::String & GetSecretArn() const
Definition: UserAuthConfig.h:177
Aws::RDS::Model::UserAuthConfig::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: UserAuthConfig.h:102
Aws::RDS::Model::UserAuthConfig::operator=
UserAuthConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::UserAuthConfig::WithDescription
UserAuthConfig & WithDescription(const Aws::String &value)
Definition: UserAuthConfig.h:79
Aws::RDS::Model::UserAuthConfig::SetSecretArn
void SetSecretArn(const char *value)
Definition: UserAuthConfig.h:205
IAMAuthMode.h
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::UserAuthConfig::WithSecretArn
UserAuthConfig & WithSecretArn(const char *value)
Definition: UserAuthConfig.h:226
Aws::RDS::Model::UserAuthConfig::SetUserName
void SetUserName(const char *value)
Definition: UserAuthConfig.h:117
Aws::RDS::Model::UserAuthConfig::WithDescription
UserAuthConfig & WithDescription(const char *value)
Definition: UserAuthConfig.h:91
Aws::RDS::Model::UserAuthConfig::WithUserName
UserAuthConfig & WithUserName(const Aws::String &value)
Definition: UserAuthConfig.h:122
Aws::RDS::Model::UserAuthConfig::WithUserName
UserAuthConfig & WithUserName(Aws::String &&value)
Definition: UserAuthConfig.h:127
Aws::RDS::Model::UserAuthConfig::SetDescription
void SetDescription(const Aws::String &value)
Definition: UserAuthConfig.h:61
AWSStreamFwd.h
Aws::RDS::Model::UserAuthConfig::WithSecretArn
UserAuthConfig & WithSecretArn(const Aws::String &value)
Definition: UserAuthConfig.h:212
Aws::RDS::Model::UserAuthConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::UserAuthConfig::WithIAMAuth
UserAuthConfig & WithIAMAuth(const IAMAuthMode &value)
Definition: UserAuthConfig.h:257
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::UserAuthConfig::SecretArnHasBeenSet
bool SecretArnHasBeenSet() const
Definition: UserAuthConfig.h:184
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::UserAuthConfig::AuthSchemeHasBeenSet
bool AuthSchemeHasBeenSet() const
Definition: UserAuthConfig.h:145
Aws::RDS::Model::UserAuthConfig::UserAuthConfig
UserAuthConfig()
Aws::RDS::Model::IAMAuthMode
IAMAuthMode
Definition: IAMAuthMode.h:17
Aws::RDS::Model::UserAuthConfig::GetUserName
const Aws::String & GetUserName() const
Definition: UserAuthConfig.h:97
Aws::RDS::Model::UserAuthConfig::SetUserName
void SetUserName(Aws::String &&value)
Definition: UserAuthConfig.h:112
Aws::RDS::Model::UserAuthConfig::WithUserName
UserAuthConfig & WithUserName(const char *value)
Definition: UserAuthConfig.h:132
Aws::RDS::Model::UserAuthConfig::WithDescription
UserAuthConfig & WithDescription(Aws::String &&value)
Definition: UserAuthConfig.h:85
Aws::RDS::Model::UserAuthConfig::SetSecretArn
void SetSecretArn(const Aws::String &value)
Definition: UserAuthConfig.h:191
Aws::RDS::Model::UserAuthConfig::SetUserName
void SetUserName(const Aws::String &value)
Definition: UserAuthConfig.h:107
AWSString.h
Aws::RDS::Model::UserAuthConfig::WithSecretArn
UserAuthConfig & WithSecretArn(Aws::String &&value)
Definition: UserAuthConfig.h:219
Aws::RDS::Model::UserAuthConfig::SetAuthScheme
void SetAuthScheme(const AuthScheme &value)
Definition: UserAuthConfig.h:151
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::UserAuthConfig::GetAuthScheme
const AuthScheme & GetAuthScheme() const
Definition: UserAuthConfig.h:139
Aws::RDS::Model::UserAuthConfig::SetIAMAuth
void SetIAMAuth(IAMAuthMode &&value)
Definition: UserAuthConfig.h:251
Aws::RDS::Model::UserAuthConfig::WithAuthScheme
UserAuthConfig & WithAuthScheme(AuthScheme &&value)
Definition: UserAuthConfig.h:169
Aws::RDS::Model::UserAuthConfig::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UserAuthConfig.h:55
Aws::RDS::Model::UserAuthConfig::SetAuthScheme
void SetAuthScheme(AuthScheme &&value)
Definition: UserAuthConfig.h:157
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::UserAuthConfig::GetIAMAuth
const IAMAuthMode & GetIAMAuth() const
Definition: UserAuthConfig.h:233
Aws::RDS::Model::UserAuthConfig::WithAuthScheme
UserAuthConfig & WithAuthScheme(const AuthScheme &value)
Definition: UserAuthConfig.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::UserAuthConfig::IAMAuthHasBeenSet
bool IAMAuthHasBeenSet() const
Definition: UserAuthConfig.h:239
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::UserAuthConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::UserAuthConfig::SetSecretArn
void SetSecretArn(Aws::String &&value)
Definition: UserAuthConfig.h:198
Aws::RDS::Model::UserAuthConfig::SetDescription
void SetDescription(Aws::String &&value)
Definition: UserAuthConfig.h:67
Aws::RDS::Model::UserAuthConfig::WithIAMAuth
UserAuthConfig & WithIAMAuth(IAMAuthMode &&value)
Definition: UserAuthConfig.h:263
Aws::RDS::Model::UserAuthConfig::SetIAMAuth
void SetIAMAuth(const IAMAuthMode &value)
Definition: UserAuthConfig.h:245
Aws::RDS::Model::AuthScheme
AuthScheme
Definition: AuthScheme.h:17
Aws::RDS::Model::UserAuthConfig::UserAuthConfig
UserAuthConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::UserAuthConfig
Definition: UserAuthConfig.h:35
Aws::RDS::Model::UserAuthConfig::GetDescription
const Aws::String & GetDescription() const
Definition: UserAuthConfig.h:49