AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserGroup.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/ResponseMetadata.h>
12#include <aws/elasticache/model/UserGroupPendingChanges.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 UserGroup {
26 public:
27 AWS_ELASTICACHE_API UserGroup() = default;
28 AWS_ELASTICACHE_API UserGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICACHE_API UserGroup& 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& GetUserGroupId() const { return m_userGroupId; }
39 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
40 template <typename UserGroupIdT = Aws::String>
41 void SetUserGroupId(UserGroupIdT&& value) {
42 m_userGroupIdHasBeenSet = true;
43 m_userGroupId = std::forward<UserGroupIdT>(value);
44 }
45 template <typename UserGroupIdT = Aws::String>
46 UserGroup& WithUserGroupId(UserGroupIdT&& value) {
47 SetUserGroupId(std::forward<UserGroupIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 template <typename StatusT = Aws::String>
60 void SetStatus(StatusT&& value) {
61 m_statusHasBeenSet = true;
62 m_status = std::forward<StatusT>(value);
63 }
64 template <typename StatusT = Aws::String>
65 UserGroup& WithStatus(StatusT&& value) {
66 SetStatus(std::forward<StatusT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEngine() const { return m_engine; }
76 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
77 template <typename EngineT = Aws::String>
78 void SetEngine(EngineT&& value) {
79 m_engineHasBeenSet = true;
80 m_engine = std::forward<EngineT>(value);
81 }
82 template <typename EngineT = Aws::String>
83 UserGroup& WithEngine(EngineT&& value) {
84 SetEngine(std::forward<EngineT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
94 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
95 template <typename UserIdsT = Aws::Vector<Aws::String>>
96 void SetUserIds(UserIdsT&& value) {
97 m_userIdsHasBeenSet = true;
98 m_userIds = std::forward<UserIdsT>(value);
99 }
100 template <typename UserIdsT = Aws::Vector<Aws::String>>
101 UserGroup& WithUserIds(UserIdsT&& value) {
102 SetUserIds(std::forward<UserIdsT>(value));
103 return *this;
104 }
105 template <typename UserIdsT = Aws::String>
106 UserGroup& AddUserIds(UserIdsT&& value) {
107 m_userIdsHasBeenSet = true;
108 m_userIds.emplace_back(std::forward<UserIdsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
118 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
119 template <typename MinimumEngineVersionT = Aws::String>
120 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) {
121 m_minimumEngineVersionHasBeenSet = true;
122 m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value);
123 }
124 template <typename MinimumEngineVersionT = Aws::String>
125 UserGroup& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
126 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
127 return *this;
128 }
130
132
135 inline const UserGroupPendingChanges& GetPendingChanges() const { return m_pendingChanges; }
136 inline bool PendingChangesHasBeenSet() const { return m_pendingChangesHasBeenSet; }
137 template <typename PendingChangesT = UserGroupPendingChanges>
138 void SetPendingChanges(PendingChangesT&& value) {
139 m_pendingChangesHasBeenSet = true;
140 m_pendingChanges = std::forward<PendingChangesT>(value);
141 }
142 template <typename PendingChangesT = UserGroupPendingChanges>
143 UserGroup& WithPendingChanges(PendingChangesT&& value) {
144 SetPendingChanges(std::forward<PendingChangesT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Aws::String>& GetReplicationGroups() const { return m_replicationGroups; }
154 inline bool ReplicationGroupsHasBeenSet() const { return m_replicationGroupsHasBeenSet; }
155 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
156 void SetReplicationGroups(ReplicationGroupsT&& value) {
157 m_replicationGroupsHasBeenSet = true;
158 m_replicationGroups = std::forward<ReplicationGroupsT>(value);
159 }
160 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
161 UserGroup& WithReplicationGroups(ReplicationGroupsT&& value) {
162 SetReplicationGroups(std::forward<ReplicationGroupsT>(value));
163 return *this;
164 }
165 template <typename ReplicationGroupsT = Aws::String>
166 UserGroup& AddReplicationGroups(ReplicationGroupsT&& value) {
167 m_replicationGroupsHasBeenSet = true;
168 m_replicationGroups.emplace_back(std::forward<ReplicationGroupsT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Vector<Aws::String>& GetServerlessCaches() const { return m_serverlessCaches; }
179 inline bool ServerlessCachesHasBeenSet() const { return m_serverlessCachesHasBeenSet; }
180 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
181 void SetServerlessCaches(ServerlessCachesT&& value) {
182 m_serverlessCachesHasBeenSet = true;
183 m_serverlessCaches = std::forward<ServerlessCachesT>(value);
184 }
185 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
186 UserGroup& WithServerlessCaches(ServerlessCachesT&& value) {
187 SetServerlessCaches(std::forward<ServerlessCachesT>(value));
188 return *this;
189 }
190 template <typename ServerlessCachesT = Aws::String>
191 UserGroup& AddServerlessCaches(ServerlessCachesT&& value) {
192 m_serverlessCachesHasBeenSet = true;
193 m_serverlessCaches.emplace_back(std::forward<ServerlessCachesT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetARN() const { return m_aRN; }
203 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
204 template <typename ARNT = Aws::String>
205 void SetARN(ARNT&& value) {
206 m_aRNHasBeenSet = true;
207 m_aRN = std::forward<ARNT>(value);
208 }
209 template <typename ARNT = Aws::String>
210 UserGroup& WithARN(ARNT&& value) {
211 SetARN(std::forward<ARNT>(value));
212 return *this;
213 }
215
217
218 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
219 template <typename ResponseMetadataT = ResponseMetadata>
220 void SetResponseMetadata(ResponseMetadataT&& value) {
221 m_responseMetadataHasBeenSet = true;
222 m_responseMetadata = std::forward<ResponseMetadataT>(value);
223 }
224 template <typename ResponseMetadataT = ResponseMetadata>
225 UserGroup& WithResponseMetadata(ResponseMetadataT&& value) {
226 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_userGroupId;
232
233 Aws::String m_status;
234
235 Aws::String m_engine;
236
237 Aws::Vector<Aws::String> m_userIds;
238
239 Aws::String m_minimumEngineVersion;
240
241 UserGroupPendingChanges m_pendingChanges;
242
243 Aws::Vector<Aws::String> m_replicationGroups;
244
245 Aws::Vector<Aws::String> m_serverlessCaches;
246
247 Aws::String m_aRN;
248
249 ResponseMetadata m_responseMetadata;
250 bool m_userGroupIdHasBeenSet = false;
251 bool m_statusHasBeenSet = false;
252 bool m_engineHasBeenSet = false;
253 bool m_userIdsHasBeenSet = false;
254 bool m_minimumEngineVersionHasBeenSet = false;
255 bool m_pendingChangesHasBeenSet = false;
256 bool m_replicationGroupsHasBeenSet = false;
257 bool m_serverlessCachesHasBeenSet = false;
258 bool m_aRNHasBeenSet = false;
259 bool m_responseMetadataHasBeenSet = true;
260};
261
262} // namespace Model
263} // namespace ElastiCache
264} // namespace Aws
UserGroup & WithPendingChanges(PendingChangesT &&value)
Definition UserGroup.h:143
const Aws::Vector< Aws::String > & GetReplicationGroups() const
Definition UserGroup.h:153
void SetServerlessCaches(ServerlessCachesT &&value)
Definition UserGroup.h:181
UserGroup & AddReplicationGroups(ReplicationGroupsT &&value)
Definition UserGroup.h:166
UserGroup & AddServerlessCaches(ServerlessCachesT &&value)
Definition UserGroup.h:191
void SetEngine(EngineT &&value)
Definition UserGroup.h:78
const Aws::String & GetStatus() const
Definition UserGroup.h:57
void SetUserIds(UserIdsT &&value)
Definition UserGroup.h:96
UserGroup & WithEngine(EngineT &&value)
Definition UserGroup.h:83
const Aws::Vector< Aws::String > & GetUserIds() const
Definition UserGroup.h:93
const Aws::Vector< Aws::String > & GetServerlessCaches() const
Definition UserGroup.h:178
bool MinimumEngineVersionHasBeenSet() const
Definition UserGroup.h:118
AWS_ELASTICACHE_API UserGroup()=default
void SetUserGroupId(UserGroupIdT &&value)
Definition UserGroup.h:41
UserGroup & AddUserIds(UserIdsT &&value)
Definition UserGroup.h:106
UserGroup & WithUserGroupId(UserGroupIdT &&value)
Definition UserGroup.h:46
AWS_ELASTICACHE_API UserGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API UserGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetUserGroupId() const
Definition UserGroup.h:38
const Aws::String & GetARN() const
Definition UserGroup.h:202
UserGroup & WithStatus(StatusT &&value)
Definition UserGroup.h:65
UserGroup & WithResponseMetadata(ResponseMetadataT &&value)
Definition UserGroup.h:225
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition UserGroup.h:120
void SetStatus(StatusT &&value)
Definition UserGroup.h:60
UserGroup & WithARN(ARNT &&value)
Definition UserGroup.h:210
void SetResponseMetadata(ResponseMetadataT &&value)
Definition UserGroup.h:220
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetEngine() const
Definition UserGroup.h:75
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetMinimumEngineVersion() const
Definition UserGroup.h:117
UserGroup & WithUserIds(UserIdsT &&value)
Definition UserGroup.h:101
UserGroup & WithReplicationGroups(ReplicationGroupsT &&value)
Definition UserGroup.h:161
UserGroup & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition UserGroup.h:125
UserGroup & WithServerlessCaches(ServerlessCachesT &&value)
Definition UserGroup.h:186
void SetPendingChanges(PendingChangesT &&value)
Definition UserGroup.h:138
void SetReplicationGroups(ReplicationGroupsT &&value)
Definition UserGroup.h:156
const ResponseMetadata & GetResponseMetadata() const
Definition UserGroup.h:218
const UserGroupPendingChanges & GetPendingChanges() const
Definition UserGroup.h:135
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