AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Authentication.h>
12#include <aws/elasticache/model/ResponseMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
29 class User
30 {
31 public:
32 AWS_ELASTICACHE_API User();
33 AWS_ELASTICACHE_API User(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICACHE_API User& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
39
41
44 inline const Aws::String& GetUserId() const{ return m_userId; }
45 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
46 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
47 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
48 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
49 inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
50 inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
51 inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
53
55
58 inline const Aws::String& GetUserName() const{ return m_userName; }
59 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
60 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
61 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
62 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
63 inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
64 inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
65 inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
67
69
72 inline const Aws::String& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
76 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
77 inline User& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
78 inline User& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
79 inline User& WithStatus(const char* value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::String& GetEngine() const{ return m_engine; }
87 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
88 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
89 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
90 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
91 inline User& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
92 inline User& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
93 inline User& WithEngine(const char* value) { SetEngine(value); return *this;}
95
97
100 inline const Aws::String& GetMinimumEngineVersion() const{ return m_minimumEngineVersion; }
101 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
102 inline void SetMinimumEngineVersion(const Aws::String& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = value; }
103 inline void SetMinimumEngineVersion(Aws::String&& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = std::move(value); }
104 inline void SetMinimumEngineVersion(const char* value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion.assign(value); }
105 inline User& WithMinimumEngineVersion(const Aws::String& value) { SetMinimumEngineVersion(value); return *this;}
106 inline User& WithMinimumEngineVersion(Aws::String&& value) { SetMinimumEngineVersion(std::move(value)); return *this;}
107 inline User& WithMinimumEngineVersion(const char* value) { SetMinimumEngineVersion(value); return *this;}
109
111
114 inline const Aws::String& GetAccessString() const{ return m_accessString; }
115 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
116 inline void SetAccessString(const Aws::String& value) { m_accessStringHasBeenSet = true; m_accessString = value; }
117 inline void SetAccessString(Aws::String&& value) { m_accessStringHasBeenSet = true; m_accessString = std::move(value); }
118 inline void SetAccessString(const char* value) { m_accessStringHasBeenSet = true; m_accessString.assign(value); }
119 inline User& WithAccessString(const Aws::String& value) { SetAccessString(value); return *this;}
120 inline User& WithAccessString(Aws::String&& value) { SetAccessString(std::move(value)); return *this;}
121 inline User& WithAccessString(const char* value) { SetAccessString(value); return *this;}
123
125
128 inline const Aws::Vector<Aws::String>& GetUserGroupIds() const{ return m_userGroupIds; }
129 inline bool UserGroupIdsHasBeenSet() const { return m_userGroupIdsHasBeenSet; }
130 inline void SetUserGroupIds(const Aws::Vector<Aws::String>& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds = value; }
131 inline void SetUserGroupIds(Aws::Vector<Aws::String>&& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds = std::move(value); }
132 inline User& WithUserGroupIds(const Aws::Vector<Aws::String>& value) { SetUserGroupIds(value); return *this;}
133 inline User& WithUserGroupIds(Aws::Vector<Aws::String>&& value) { SetUserGroupIds(std::move(value)); return *this;}
134 inline User& AddUserGroupIds(const Aws::String& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(value); return *this; }
135 inline User& AddUserGroupIds(Aws::String&& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(std::move(value)); return *this; }
136 inline User& AddUserGroupIds(const char* value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(value); return *this; }
138
140
143 inline const Authentication& GetAuthentication() const{ return m_authentication; }
144 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
145 inline void SetAuthentication(const Authentication& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
146 inline void SetAuthentication(Authentication&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
147 inline User& WithAuthentication(const Authentication& value) { SetAuthentication(value); return *this;}
148 inline User& WithAuthentication(Authentication&& value) { SetAuthentication(std::move(value)); return *this;}
150
152
155 inline const Aws::String& GetARN() const{ return m_aRN; }
156 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
157 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
158 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
159 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
160 inline User& WithARN(const Aws::String& value) { SetARN(value); return *this;}
161 inline User& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
162 inline User& WithARN(const char* value) { SetARN(value); return *this;}
164
166
167 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
168 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
169 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
170 inline User& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
171 inline User& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
173 private:
174
175 Aws::String m_userId;
176 bool m_userIdHasBeenSet = false;
177
178 Aws::String m_userName;
179 bool m_userNameHasBeenSet = false;
180
181 Aws::String m_status;
182 bool m_statusHasBeenSet = false;
183
184 Aws::String m_engine;
185 bool m_engineHasBeenSet = false;
186
187 Aws::String m_minimumEngineVersion;
188 bool m_minimumEngineVersionHasBeenSet = false;
189
190 Aws::String m_accessString;
191 bool m_accessStringHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_userGroupIds;
194 bool m_userGroupIdsHasBeenSet = false;
195
196 Authentication m_authentication;
197 bool m_authenticationHasBeenSet = false;
198
199 Aws::String m_aRN;
200 bool m_aRNHasBeenSet = false;
201
202 ResponseMetadata m_responseMetadata;
203 };
204
205} // namespace Model
206} // namespace ElastiCache
207} // namespace Aws
User & WithStatus(const Aws::String &value)
Definition User.h:77
void SetARN(const char *value)
Definition User.h:159
const Aws::Vector< Aws::String > & GetUserGroupIds() const
Definition User.h:128
void SetAccessString(const Aws::String &value)
Definition User.h:116
User & WithAuthentication(const Authentication &value)
Definition User.h:147
bool MinimumEngineVersionHasBeenSet() const
Definition User.h:101
const Authentication & GetAuthentication() const
Definition User.h:143
void SetAuthentication(const Authentication &value)
Definition User.h:145
User & WithUserId(Aws::String &&value)
Definition User.h:50
void SetMinimumEngineVersion(const Aws::String &value)
Definition User.h:102
AWS_ELASTICACHE_API User()
void SetUserGroupIds(Aws::Vector< Aws::String > &&value)
Definition User.h:131
User & WithAccessString(const Aws::String &value)
Definition User.h:119
bool StatusHasBeenSet() const
Definition User.h:73
void SetResponseMetadata(ResponseMetadata &&value)
Definition User.h:169
User & WithUserId(const Aws::String &value)
Definition User.h:49
AWS_ELASTICACHE_API User & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserId(const Aws::String &value)
Definition User.h:46
User & WithUserGroupIds(const Aws::Vector< Aws::String > &value)
Definition User.h:132
User & WithAccessString(const char *value)
Definition User.h:121
void SetMinimumEngineVersion(Aws::String &&value)
Definition User.h:103
bool EngineHasBeenSet() const
Definition User.h:87
const Aws::String & GetEngine() const
Definition User.h:86
User & WithUserId(const char *value)
Definition User.h:51
User & AddUserGroupIds(const Aws::String &value)
Definition User.h:134
void SetAccessString(const char *value)
Definition User.h:118
void SetARN(Aws::String &&value)
Definition User.h:158
const Aws::String & GetMinimumEngineVersion() const
Definition User.h:100
User & WithMinimumEngineVersion(Aws::String &&value)
Definition User.h:106
void SetEngine(Aws::String &&value)
Definition User.h:89
User & WithResponseMetadata(ResponseMetadata &&value)
Definition User.h:171
User & WithEngine(const char *value)
Definition User.h:93
void SetUserId(const char *value)
Definition User.h:48
void SetStatus(Aws::String &&value)
Definition User.h:75
bool ARNHasBeenSet() const
Definition User.h:156
bool UserIdHasBeenSet() const
Definition User.h:45
User & WithMinimumEngineVersion(const char *value)
Definition User.h:107
bool AccessStringHasBeenSet() const
Definition User.h:115
void SetARN(const Aws::String &value)
Definition User.h:157
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserName(Aws::String &&value)
Definition User.h:61
void SetResponseMetadata(const ResponseMetadata &value)
Definition User.h:168
void SetUserGroupIds(const Aws::Vector< Aws::String > &value)
Definition User.h:130
const Aws::String & GetAccessString() const
Definition User.h:114
void SetEngine(const char *value)
Definition User.h:90
User & AddUserGroupIds(Aws::String &&value)
Definition User.h:135
User & WithUserName(const Aws::String &value)
Definition User.h:63
void SetStatus(const Aws::String &value)
Definition User.h:74
bool UserNameHasBeenSet() const
Definition User.h:59
void SetUserName(const Aws::String &value)
Definition User.h:60
User & WithARN(Aws::String &&value)
Definition User.h:161
User & WithEngine(const Aws::String &value)
Definition User.h:91
User & WithAccessString(Aws::String &&value)
Definition User.h:120
bool AuthenticationHasBeenSet() const
Definition User.h:144
User & WithEngine(Aws::String &&value)
Definition User.h:92
const Aws::String & GetStatus() const
Definition User.h:72
User & WithStatus(Aws::String &&value)
Definition User.h:78
bool UserGroupIdsHasBeenSet() const
Definition User.h:129
void SetUserName(const char *value)
Definition User.h:62
User & WithStatus(const char *value)
Definition User.h:79
const Aws::String & GetUserId() const
Definition User.h:44
void SetStatus(const char *value)
Definition User.h:76
User & WithUserName(const char *value)
Definition User.h:65
User & WithUserGroupIds(Aws::Vector< Aws::String > &&value)
Definition User.h:133
void SetAuthentication(Authentication &&value)
Definition User.h:146
void SetMinimumEngineVersion(const char *value)
Definition User.h:104
void SetUserId(Aws::String &&value)
Definition User.h:47
const Aws::String & GetUserName() const
Definition User.h:58
User & WithAuthentication(Authentication &&value)
Definition User.h:148
User & WithMinimumEngineVersion(const Aws::String &value)
Definition User.h:105
User & WithUserName(Aws::String &&value)
Definition User.h:64
const ResponseMetadata & GetResponseMetadata() const
Definition User.h:167
void SetEngine(const Aws::String &value)
Definition User.h:88
User & AddUserGroupIds(const char *value)
Definition User.h:136
User & WithARN(const Aws::String &value)
Definition User.h:160
AWS_ELASTICACHE_API User(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAccessString(Aws::String &&value)
Definition User.h:117
User & WithResponseMetadata(const ResponseMetadata &value)
Definition User.h:170
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:155
User & WithARN(const char *value)
Definition User.h:162
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