AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserGroup.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/UserGroupPendingChanges.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
30 {
31 public:
32 AWS_ELASTICACHE_API UserGroup();
33 AWS_ELASTICACHE_API UserGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICACHE_API UserGroup& 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& GetUserGroupId() const{ return m_userGroupId; }
45 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
46 inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
47 inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
48 inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
49 inline UserGroup& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
50 inline UserGroup& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
51 inline UserGroup& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
53
55
59 inline const Aws::String& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
64 inline UserGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
65 inline UserGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
66 inline UserGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
68
70
73 inline const Aws::String& GetEngine() const{ return m_engine; }
74 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
75 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
76 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
77 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
78 inline UserGroup& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
79 inline UserGroup& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
80 inline UserGroup& WithEngine(const char* value) { SetEngine(value); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
88 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
89 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
90 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
91 inline UserGroup& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
92 inline UserGroup& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
93 inline UserGroup& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
94 inline UserGroup& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
95 inline UserGroup& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
97
99
102 inline const Aws::String& GetMinimumEngineVersion() const{ return m_minimumEngineVersion; }
103 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
104 inline void SetMinimumEngineVersion(const Aws::String& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = value; }
105 inline void SetMinimumEngineVersion(Aws::String&& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = std::move(value); }
106 inline void SetMinimumEngineVersion(const char* value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion.assign(value); }
107 inline UserGroup& WithMinimumEngineVersion(const Aws::String& value) { SetMinimumEngineVersion(value); return *this;}
108 inline UserGroup& WithMinimumEngineVersion(Aws::String&& value) { SetMinimumEngineVersion(std::move(value)); return *this;}
109 inline UserGroup& WithMinimumEngineVersion(const char* value) { SetMinimumEngineVersion(value); return *this;}
111
113
116 inline const UserGroupPendingChanges& GetPendingChanges() const{ return m_pendingChanges; }
117 inline bool PendingChangesHasBeenSet() const { return m_pendingChangesHasBeenSet; }
118 inline void SetPendingChanges(const UserGroupPendingChanges& value) { m_pendingChangesHasBeenSet = true; m_pendingChanges = value; }
119 inline void SetPendingChanges(UserGroupPendingChanges&& value) { m_pendingChangesHasBeenSet = true; m_pendingChanges = std::move(value); }
120 inline UserGroup& WithPendingChanges(const UserGroupPendingChanges& value) { SetPendingChanges(value); return *this;}
121 inline UserGroup& WithPendingChanges(UserGroupPendingChanges&& value) { SetPendingChanges(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<Aws::String>& GetReplicationGroups() const{ return m_replicationGroups; }
129 inline bool ReplicationGroupsHasBeenSet() const { return m_replicationGroupsHasBeenSet; }
130 inline void SetReplicationGroups(const Aws::Vector<Aws::String>& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups = value; }
131 inline void SetReplicationGroups(Aws::Vector<Aws::String>&& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups = std::move(value); }
133 inline UserGroup& WithReplicationGroups(Aws::Vector<Aws::String>&& value) { SetReplicationGroups(std::move(value)); return *this;}
134 inline UserGroup& AddReplicationGroups(const Aws::String& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups.push_back(value); return *this; }
135 inline UserGroup& AddReplicationGroups(Aws::String&& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups.push_back(std::move(value)); return *this; }
136 inline UserGroup& AddReplicationGroups(const char* value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups.push_back(value); return *this; }
138
140
144 inline const Aws::Vector<Aws::String>& GetServerlessCaches() const{ return m_serverlessCaches; }
145 inline bool ServerlessCachesHasBeenSet() const { return m_serverlessCachesHasBeenSet; }
146 inline void SetServerlessCaches(const Aws::Vector<Aws::String>& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches = value; }
147 inline void SetServerlessCaches(Aws::Vector<Aws::String>&& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches = std::move(value); }
148 inline UserGroup& WithServerlessCaches(const Aws::Vector<Aws::String>& value) { SetServerlessCaches(value); return *this;}
149 inline UserGroup& WithServerlessCaches(Aws::Vector<Aws::String>&& value) { SetServerlessCaches(std::move(value)); return *this;}
150 inline UserGroup& AddServerlessCaches(const Aws::String& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches.push_back(value); return *this; }
151 inline UserGroup& AddServerlessCaches(Aws::String&& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches.push_back(std::move(value)); return *this; }
152 inline UserGroup& AddServerlessCaches(const char* value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches.push_back(value); return *this; }
154
156
159 inline const Aws::String& GetARN() const{ return m_aRN; }
160 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
161 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
162 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
163 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
164 inline UserGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;}
165 inline UserGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
166 inline UserGroup& WithARN(const char* value) { SetARN(value); return *this;}
168
170
171 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
172 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
173 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
174 inline UserGroup& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
175 inline UserGroup& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
177 private:
178
179 Aws::String m_userGroupId;
180 bool m_userGroupIdHasBeenSet = false;
181
182 Aws::String m_status;
183 bool m_statusHasBeenSet = false;
184
185 Aws::String m_engine;
186 bool m_engineHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_userIds;
189 bool m_userIdsHasBeenSet = false;
190
191 Aws::String m_minimumEngineVersion;
192 bool m_minimumEngineVersionHasBeenSet = false;
193
194 UserGroupPendingChanges m_pendingChanges;
195 bool m_pendingChangesHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_replicationGroups;
198 bool m_replicationGroupsHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_serverlessCaches;
201 bool m_serverlessCachesHasBeenSet = false;
202
203 Aws::String m_aRN;
204 bool m_aRNHasBeenSet = false;
205
206 ResponseMetadata m_responseMetadata;
207 };
208
209} // namespace Model
210} // namespace ElastiCache
211} // namespace Aws
void SetARN(const char *value)
Definition UserGroup.h:163
UserGroup & WithStatus(Aws::String &&value)
Definition UserGroup.h:65
UserGroup & WithPendingChanges(UserGroupPendingChanges &&value)
Definition UserGroup.h:121
void SetARN(const Aws::String &value)
Definition UserGroup.h:161
UserGroup & AddUserIds(const char *value)
Definition UserGroup.h:95
UserGroup & AddServerlessCaches(const Aws::String &value)
Definition UserGroup.h:150
void SetUserGroupId(const Aws::String &value)
Definition UserGroup.h:46
const Aws::Vector< Aws::String > & GetReplicationGroups() const
Definition UserGroup.h:128
UserGroup & AddServerlessCaches(Aws::String &&value)
Definition UserGroup.h:151
UserGroup & WithStatus(const Aws::String &value)
Definition UserGroup.h:64
UserGroup & AddUserIds(Aws::String &&value)
Definition UserGroup.h:94
UserGroup & WithUserGroupId(Aws::String &&value)
Definition UserGroup.h:50
UserGroup & WithReplicationGroups(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:133
UserGroup & WithResponseMetadata(const ResponseMetadata &value)
Definition UserGroup.h:174
void SetMinimumEngineVersion(const Aws::String &value)
Definition UserGroup.h:104
UserGroup & WithUserGroupId(const Aws::String &value)
Definition UserGroup.h:49
void SetMinimumEngineVersion(Aws::String &&value)
Definition UserGroup.h:105
UserGroup & AddServerlessCaches(const char *value)
Definition UserGroup.h:152
const Aws::String & GetStatus() const
Definition UserGroup.h:59
void SetStatus(Aws::String &&value)
Definition UserGroup.h:62
UserGroup & WithPendingChanges(const UserGroupPendingChanges &value)
Definition UserGroup.h:120
const Aws::Vector< Aws::String > & GetUserIds() const
Definition UserGroup.h:87
const Aws::Vector< Aws::String > & GetServerlessCaches() const
Definition UserGroup.h:144
UserGroup & WithARN(const char *value)
Definition UserGroup.h:166
UserGroup & WithServerlessCaches(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:148
void SetUserGroupId(Aws::String &&value)
Definition UserGroup.h:47
bool MinimumEngineVersionHasBeenSet() const
Definition UserGroup.h:103
UserGroup & AddReplicationGroups(const char *value)
Definition UserGroup.h:136
UserGroup & WithResponseMetadata(ResponseMetadata &&value)
Definition UserGroup.h:175
UserGroup & WithUserIds(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:92
UserGroup & WithUserIds(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:91
void SetServerlessCaches(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:147
void SetMinimumEngineVersion(const char *value)
Definition UserGroup.h:106
UserGroup & WithReplicationGroups(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:132
void SetResponseMetadata(const ResponseMetadata &value)
Definition UserGroup.h:172
void SetReplicationGroups(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:131
AWS_ELASTICACHE_API UserGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPendingChanges(UserGroupPendingChanges &&value)
Definition UserGroup.h:119
void SetPendingChanges(const UserGroupPendingChanges &value)
Definition UserGroup.h:118
UserGroup & WithEngine(const Aws::String &value)
Definition UserGroup.h:78
AWS_ELASTICACHE_API UserGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEngine(const char *value)
Definition UserGroup.h:77
const Aws::String & GetUserGroupId() const
Definition UserGroup.h:44
const Aws::String & GetARN() const
Definition UserGroup.h:159
UserGroup & WithMinimumEngineVersion(const char *value)
Definition UserGroup.h:109
UserGroup & AddUserIds(const Aws::String &value)
Definition UserGroup.h:93
UserGroup & WithARN(Aws::String &&value)
Definition UserGroup.h:165
void SetUserIds(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:90
void SetStatus(const Aws::String &value)
Definition UserGroup.h:61
void SetStatus(const char *value)
Definition UserGroup.h:63
void SetEngine(Aws::String &&value)
Definition UserGroup.h:76
UserGroup & WithMinimumEngineVersion(const Aws::String &value)
Definition UserGroup.h:107
void SetARN(Aws::String &&value)
Definition UserGroup.h:162
UserGroup & WithServerlessCaches(Aws::Vector< Aws::String > &&value)
Definition UserGroup.h:149
UserGroup & AddReplicationGroups(Aws::String &&value)
Definition UserGroup.h:135
UserGroup & AddReplicationGroups(const Aws::String &value)
Definition UserGroup.h:134
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:73
void SetUserGroupId(const char *value)
Definition UserGroup.h:48
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserGroup & WithStatus(const char *value)
Definition UserGroup.h:66
const Aws::String & GetMinimumEngineVersion() const
Definition UserGroup.h:102
void SetEngine(const Aws::String &value)
Definition UserGroup.h:75
UserGroup & WithEngine(const char *value)
Definition UserGroup.h:80
UserGroup & WithUserGroupId(const char *value)
Definition UserGroup.h:51
void SetServerlessCaches(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:146
UserGroup & WithEngine(Aws::String &&value)
Definition UserGroup.h:79
void SetResponseMetadata(ResponseMetadata &&value)
Definition UserGroup.h:173
UserGroup & WithMinimumEngineVersion(Aws::String &&value)
Definition UserGroup.h:108
void SetReplicationGroups(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:130
AWS_ELASTICACHE_API UserGroup()
const ResponseMetadata & GetResponseMetadata() const
Definition UserGroup.h:171
void SetUserIds(const Aws::Vector< Aws::String > &value)
Definition UserGroup.h:89
UserGroup & WithARN(const Aws::String &value)
Definition UserGroup.h:164
const UserGroupPendingChanges & GetPendingChanges() const
Definition UserGroup.h:116
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