AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserAuthConfig.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 UserAuthConfig();
39 AWS_RDS_API UserAuthConfig(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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
54 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
55 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
56 inline UserAuthConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
57 inline UserAuthConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
58 inline UserAuthConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
60
62
65 inline const Aws::String& GetUserName() const{ return m_userName; }
66 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
67 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
68 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
69 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
70 inline UserAuthConfig& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
71 inline UserAuthConfig& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
72 inline UserAuthConfig& WithUserName(const char* value) { SetUserName(value); return *this;}
74
76
80 inline const AuthScheme& GetAuthScheme() const{ return m_authScheme; }
81 inline bool AuthSchemeHasBeenSet() const { return m_authSchemeHasBeenSet; }
82 inline void SetAuthScheme(const AuthScheme& value) { m_authSchemeHasBeenSet = true; m_authScheme = value; }
83 inline void SetAuthScheme(AuthScheme&& value) { m_authSchemeHasBeenSet = true; m_authScheme = std::move(value); }
84 inline UserAuthConfig& WithAuthScheme(const AuthScheme& value) { SetAuthScheme(value); return *this;}
85 inline UserAuthConfig& WithAuthScheme(AuthScheme&& value) { SetAuthScheme(std::move(value)); return *this;}
87
89
94 inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
95 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
96 inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
97 inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
98 inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
99 inline UserAuthConfig& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
100 inline UserAuthConfig& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
101 inline UserAuthConfig& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
103
105
111 inline const IAMAuthMode& GetIAMAuth() const{ return m_iAMAuth; }
112 inline bool IAMAuthHasBeenSet() const { return m_iAMAuthHasBeenSet; }
113 inline void SetIAMAuth(const IAMAuthMode& value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = value; }
114 inline void SetIAMAuth(IAMAuthMode&& value) { m_iAMAuthHasBeenSet = true; m_iAMAuth = std::move(value); }
115 inline UserAuthConfig& WithIAMAuth(const IAMAuthMode& value) { SetIAMAuth(value); return *this;}
116 inline UserAuthConfig& WithIAMAuth(IAMAuthMode&& value) { SetIAMAuth(std::move(value)); return *this;}
118
120
123 inline const ClientPasswordAuthType& GetClientPasswordAuthType() const{ return m_clientPasswordAuthType; }
124 inline bool ClientPasswordAuthTypeHasBeenSet() const { return m_clientPasswordAuthTypeHasBeenSet; }
125 inline void SetClientPasswordAuthType(const ClientPasswordAuthType& value) { m_clientPasswordAuthTypeHasBeenSet = true; m_clientPasswordAuthType = value; }
126 inline void SetClientPasswordAuthType(ClientPasswordAuthType&& value) { m_clientPasswordAuthTypeHasBeenSet = true; m_clientPasswordAuthType = std::move(value); }
130 private:
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::String m_userName;
136 bool m_userNameHasBeenSet = false;
137
138 AuthScheme m_authScheme;
139 bool m_authSchemeHasBeenSet = false;
140
141 Aws::String m_secretArn;
142 bool m_secretArnHasBeenSet = false;
143
144 IAMAuthMode m_iAMAuth;
145 bool m_iAMAuthHasBeenSet = false;
146
147 ClientPasswordAuthType m_clientPasswordAuthType;
148 bool m_clientPasswordAuthTypeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace RDS
153} // namespace Aws
void SetSecretArn(Aws::String &&value)
const Aws::String & GetDescription() const
void SetDescription(Aws::String &&value)
UserAuthConfig & WithDescription(Aws::String &&value)
void SetIAMAuth(IAMAuthMode &&value)
const Aws::String & GetSecretArn() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ClientPasswordAuthType & GetClientPasswordAuthType() const
void SetDescription(const char *value)
UserAuthConfig & WithAuthScheme(const AuthScheme &value)
void SetUserName(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAuthScheme(AuthScheme &&value)
AWS_RDS_API UserAuthConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserAuthConfig & WithClientPasswordAuthType(const ClientPasswordAuthType &value)
void SetUserName(const char *value)
UserAuthConfig & WithUserName(const Aws::String &value)
UserAuthConfig & WithAuthScheme(AuthScheme &&value)
const Aws::String & GetUserName() const
void SetIAMAuth(const IAMAuthMode &value)
void SetClientPasswordAuthType(const ClientPasswordAuthType &value)
UserAuthConfig & WithDescription(const Aws::String &value)
UserAuthConfig & WithSecretArn(const Aws::String &value)
void SetUserName(Aws::String &&value)
UserAuthConfig & WithDescription(const char *value)
UserAuthConfig & WithIAMAuth(const IAMAuthMode &value)
void SetDescription(const Aws::String &value)
UserAuthConfig & WithSecretArn(Aws::String &&value)
UserAuthConfig & WithSecretArn(const char *value)
void SetAuthScheme(const AuthScheme &value)
void SetClientPasswordAuthType(ClientPasswordAuthType &&value)
AWS_RDS_API UserAuthConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSecretArn(const char *value)
const AuthScheme & GetAuthScheme() const
UserAuthConfig & WithIAMAuth(IAMAuthMode &&value)
void SetSecretArn(const Aws::String &value)
UserAuthConfig & WithClientPasswordAuthType(ClientPasswordAuthType &&value)
UserAuthConfig & WithUserName(Aws::String &&value)
const IAMAuthMode & GetIAMAuth() const
UserAuthConfig & WithUserName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream