AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
User.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/Authentication.h>
12#include <aws/elasticache/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache {
23namespace Model {
24
25class User {
26 public:
27 AWS_ELASTICACHE_API User() = default;
28 AWS_ELASTICACHE_API User(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICACHE_API User& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
30
31 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
32 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
33
35
38 inline const Aws::String& GetUserId() const { return m_userId; }
39 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
40 template <typename UserIdT = Aws::String>
41 void SetUserId(UserIdT&& value) {
42 m_userIdHasBeenSet = true;
43 m_userId = std::forward<UserIdT>(value);
44 }
45 template <typename UserIdT = Aws::String>
46 User& WithUserId(UserIdT&& value) {
47 SetUserId(std::forward<UserIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserName() const { return m_userName; }
57 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
58 template <typename UserNameT = Aws::String>
59 void SetUserName(UserNameT&& value) {
60 m_userNameHasBeenSet = true;
61 m_userName = std::forward<UserNameT>(value);
62 }
63 template <typename UserNameT = Aws::String>
64 User& WithUserName(UserNameT&& value) {
65 SetUserName(std::forward<UserNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template <typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) {
78 m_statusHasBeenSet = true;
79 m_status = std::forward<StatusT>(value);
80 }
81 template <typename StatusT = Aws::String>
82 User& WithStatus(StatusT&& value) {
83 SetStatus(std::forward<StatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetEngine() const { return m_engine; }
93 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
94 template <typename EngineT = Aws::String>
95 void SetEngine(EngineT&& value) {
96 m_engineHasBeenSet = true;
97 m_engine = std::forward<EngineT>(value);
98 }
99 template <typename EngineT = Aws::String>
100 User& WithEngine(EngineT&& value) {
101 SetEngine(std::forward<EngineT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
111 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
112 template <typename MinimumEngineVersionT = Aws::String>
113 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) {
114 m_minimumEngineVersionHasBeenSet = true;
115 m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value);
116 }
117 template <typename MinimumEngineVersionT = Aws::String>
118 User& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
119 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAccessString() const { return m_accessString; }
129 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
130 template <typename AccessStringT = Aws::String>
131 void SetAccessString(AccessStringT&& value) {
132 m_accessStringHasBeenSet = true;
133 m_accessString = std::forward<AccessStringT>(value);
134 }
135 template <typename AccessStringT = Aws::String>
136 User& WithAccessString(AccessStringT&& value) {
137 SetAccessString(std::forward<AccessStringT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Aws::String>& GetUserGroupIds() const { return m_userGroupIds; }
147 inline bool UserGroupIdsHasBeenSet() const { return m_userGroupIdsHasBeenSet; }
148 template <typename UserGroupIdsT = Aws::Vector<Aws::String>>
149 void SetUserGroupIds(UserGroupIdsT&& value) {
150 m_userGroupIdsHasBeenSet = true;
151 m_userGroupIds = std::forward<UserGroupIdsT>(value);
152 }
153 template <typename UserGroupIdsT = Aws::Vector<Aws::String>>
154 User& WithUserGroupIds(UserGroupIdsT&& value) {
155 SetUserGroupIds(std::forward<UserGroupIdsT>(value));
156 return *this;
157 }
158 template <typename UserGroupIdsT = Aws::String>
159 User& AddUserGroupIds(UserGroupIdsT&& value) {
160 m_userGroupIdsHasBeenSet = true;
161 m_userGroupIds.emplace_back(std::forward<UserGroupIdsT>(value));
162 return *this;
163 }
165
167
170 inline const Authentication& GetAuthentication() const { return m_authentication; }
171 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
172 template <typename AuthenticationT = Authentication>
173 void SetAuthentication(AuthenticationT&& value) {
174 m_authenticationHasBeenSet = true;
175 m_authentication = std::forward<AuthenticationT>(value);
176 }
177 template <typename AuthenticationT = Authentication>
178 User& WithAuthentication(AuthenticationT&& value) {
179 SetAuthentication(std::forward<AuthenticationT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetARN() const { return m_aRN; }
189 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
190 template <typename ARNT = Aws::String>
191 void SetARN(ARNT&& value) {
192 m_aRNHasBeenSet = true;
193 m_aRN = std::forward<ARNT>(value);
194 }
195 template <typename ARNT = Aws::String>
196 User& WithARN(ARNT&& value) {
197 SetARN(std::forward<ARNT>(value));
198 return *this;
199 }
201
203
204 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
205 template <typename ResponseMetadataT = ResponseMetadata>
206 void SetResponseMetadata(ResponseMetadataT&& value) {
207 m_responseMetadataHasBeenSet = true;
208 m_responseMetadata = std::forward<ResponseMetadataT>(value);
209 }
210 template <typename ResponseMetadataT = ResponseMetadata>
211 User& WithResponseMetadata(ResponseMetadataT&& value) {
212 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_userId;
218
219 Aws::String m_userName;
220
221 Aws::String m_status;
222
223 Aws::String m_engine;
224
225 Aws::String m_minimumEngineVersion;
226
227 Aws::String m_accessString;
228
229 Aws::Vector<Aws::String> m_userGroupIds;
230
231 Authentication m_authentication;
232
233 Aws::String m_aRN;
234
235 ResponseMetadata m_responseMetadata;
236 bool m_userIdHasBeenSet = false;
237 bool m_userNameHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_engineHasBeenSet = false;
240 bool m_minimumEngineVersionHasBeenSet = false;
241 bool m_accessStringHasBeenSet = false;
242 bool m_userGroupIdsHasBeenSet = false;
243 bool m_authenticationHasBeenSet = false;
244 bool m_aRNHasBeenSet = false;
245 bool m_responseMetadataHasBeenSet = true;
246};
247
248} // namespace Model
249} // namespace ElastiCache
250} // namespace Aws
const Aws::Vector< Aws::String > & GetUserGroupIds() const
Definition User.h:146
User & WithUserGroupIds(UserGroupIdsT &&value)
Definition User.h:154
bool MinimumEngineVersionHasBeenSet() const
Definition User.h:111
User & WithUserId(UserIdT &&value)
Definition User.h:46
const Authentication & GetAuthentication() const
Definition User.h:170
User & AddUserGroupIds(UserGroupIdsT &&value)
Definition User.h:159
void SetUserName(UserNameT &&value)
Definition User.h:59
bool StatusHasBeenSet() const
Definition User.h:75
AWS_ELASTICACHE_API User & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
User & WithAccessString(AccessStringT &&value)
Definition User.h:136
void SetUserId(UserIdT &&value)
Definition User.h:41
bool EngineHasBeenSet() const
Definition User.h:93
const Aws::String & GetEngine() const
Definition User.h:92
User & WithUserName(UserNameT &&value)
Definition User.h:64
const Aws::String & GetMinimumEngineVersion() const
Definition User.h:110
bool ARNHasBeenSet() const
Definition User.h:189
bool UserIdHasBeenSet() const
Definition User.h:39
bool AccessStringHasBeenSet() const
Definition User.h:129
void SetAuthentication(AuthenticationT &&value)
Definition User.h:173
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserGroupIds(UserGroupIdsT &&value)
Definition User.h:149
const Aws::String & GetAccessString() const
Definition User.h:128
void SetAccessString(AccessStringT &&value)
Definition User.h:131
void SetARN(ARNT &&value)
Definition User.h:191
bool UserNameHasBeenSet() const
Definition User.h:57
bool AuthenticationHasBeenSet() const
Definition User.h:171
User & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition User.h:118
const Aws::String & GetStatus() const
Definition User.h:74
bool UserGroupIdsHasBeenSet() const
Definition User.h:147
const Aws::String & GetUserId() const
Definition User.h:38
User & WithStatus(StatusT &&value)
Definition User.h:82
User & WithARN(ARNT &&value)
Definition User.h:196
User & WithResponseMetadata(ResponseMetadataT &&value)
Definition User.h:211
AWS_ELASTICACHE_API User()=default
const Aws::String & GetUserName() const
Definition User.h:56
User & WithAuthentication(AuthenticationT &&value)
Definition User.h:178
void SetEngine(EngineT &&value)
Definition User.h:95
const ResponseMetadata & GetResponseMetadata() const
Definition User.h:204
AWS_ELASTICACHE_API User(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResponseMetadata(ResponseMetadataT &&value)
Definition User.h:206
User & WithEngine(EngineT &&value)
Definition User.h:100
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition User.h:113
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetARN() const
Definition User.h:188
void SetStatus(StatusT &&value)
Definition User.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream