AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ModifyUserGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace ElastiCache {
26namespace Model {
28 public:
29 AWS_ELASTICACHE_API ModifyUserGroupResult() = default;
32
34
37 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
38 template <typename UserGroupIdT = Aws::String>
39 void SetUserGroupId(UserGroupIdT&& value) {
40 m_userGroupIdHasBeenSet = true;
41 m_userGroupId = std::forward<UserGroupIdT>(value);
42 }
43 template <typename UserGroupIdT = Aws::String>
44 ModifyUserGroupResult& WithUserGroupId(UserGroupIdT&& value) {
45 SetUserGroupId(std::forward<UserGroupIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetStatus() const { return m_status; }
56 template <typename StatusT = Aws::String>
57 void SetStatus(StatusT&& value) {
58 m_statusHasBeenSet = true;
59 m_status = std::forward<StatusT>(value);
60 }
61 template <typename StatusT = Aws::String>
63 SetStatus(std::forward<StatusT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetEngine() const { return m_engine; }
73 template <typename EngineT = Aws::String>
74 void SetEngine(EngineT&& value) {
75 m_engineHasBeenSet = true;
76 m_engine = std::forward<EngineT>(value);
77 }
78 template <typename EngineT = Aws::String>
80 SetEngine(std::forward<EngineT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
90 template <typename UserIdsT = Aws::Vector<Aws::String>>
91 void SetUserIds(UserIdsT&& value) {
92 m_userIdsHasBeenSet = true;
93 m_userIds = std::forward<UserIdsT>(value);
94 }
95 template <typename UserIdsT = Aws::Vector<Aws::String>>
97 SetUserIds(std::forward<UserIdsT>(value));
98 return *this;
99 }
100 template <typename UserIdsT = Aws::String>
102 m_userIdsHasBeenSet = true;
103 m_userIds.emplace_back(std::forward<UserIdsT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
113 template <typename MinimumEngineVersionT = Aws::String>
114 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) {
115 m_minimumEngineVersionHasBeenSet = true;
116 m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value);
117 }
118 template <typename MinimumEngineVersionT = Aws::String>
119 ModifyUserGroupResult& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
120 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
121 return *this;
122 }
124
126
129 inline const UserGroupPendingChanges& GetPendingChanges() const { return m_pendingChanges; }
130 template <typename PendingChangesT = UserGroupPendingChanges>
131 void SetPendingChanges(PendingChangesT&& value) {
132 m_pendingChangesHasBeenSet = true;
133 m_pendingChanges = std::forward<PendingChangesT>(value);
134 }
135 template <typename PendingChangesT = UserGroupPendingChanges>
136 ModifyUserGroupResult& WithPendingChanges(PendingChangesT&& value) {
137 SetPendingChanges(std::forward<PendingChangesT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Aws::String>& GetReplicationGroups() const { return m_replicationGroups; }
147 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
148 void SetReplicationGroups(ReplicationGroupsT&& value) {
149 m_replicationGroupsHasBeenSet = true;
150 m_replicationGroups = std::forward<ReplicationGroupsT>(value);
151 }
152 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
153 ModifyUserGroupResult& WithReplicationGroups(ReplicationGroupsT&& value) {
154 SetReplicationGroups(std::forward<ReplicationGroupsT>(value));
155 return *this;
156 }
157 template <typename ReplicationGroupsT = Aws::String>
158 ModifyUserGroupResult& AddReplicationGroups(ReplicationGroupsT&& value) {
159 m_replicationGroupsHasBeenSet = true;
160 m_replicationGroups.emplace_back(std::forward<ReplicationGroupsT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Vector<Aws::String>& GetServerlessCaches() const { return m_serverlessCaches; }
171 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
172 void SetServerlessCaches(ServerlessCachesT&& value) {
173 m_serverlessCachesHasBeenSet = true;
174 m_serverlessCaches = std::forward<ServerlessCachesT>(value);
175 }
176 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
177 ModifyUserGroupResult& WithServerlessCaches(ServerlessCachesT&& value) {
178 SetServerlessCaches(std::forward<ServerlessCachesT>(value));
179 return *this;
180 }
181 template <typename ServerlessCachesT = Aws::String>
182 ModifyUserGroupResult& AddServerlessCaches(ServerlessCachesT&& value) {
183 m_serverlessCachesHasBeenSet = true;
184 m_serverlessCaches.emplace_back(std::forward<ServerlessCachesT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetARN() const { return m_aRN; }
194 template <typename ARNT = Aws::String>
195 void SetARN(ARNT&& value) {
196 m_aRNHasBeenSet = true;
197 m_aRN = std::forward<ARNT>(value);
198 }
199 template <typename ARNT = Aws::String>
201 SetARN(std::forward<ARNT>(value));
202 return *this;
203 }
205
207
208 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
209 template <typename ResponseMetadataT = ResponseMetadata>
210 void SetResponseMetadata(ResponseMetadataT&& value) {
211 m_responseMetadataHasBeenSet = true;
212 m_responseMetadata = std::forward<ResponseMetadataT>(value);
213 }
214 template <typename ResponseMetadataT = ResponseMetadata>
215 ModifyUserGroupResult& WithResponseMetadata(ResponseMetadataT&& value) {
216 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
217 return *this;
218 }
220 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
221
222 private:
223 Aws::String m_userGroupId;
224
225 Aws::String m_status;
226
227 Aws::String m_engine;
228
229 Aws::Vector<Aws::String> m_userIds;
230
231 Aws::String m_minimumEngineVersion;
232
233 UserGroupPendingChanges m_pendingChanges;
234
235 Aws::Vector<Aws::String> m_replicationGroups;
236
237 Aws::Vector<Aws::String> m_serverlessCaches;
238
239 Aws::String m_aRN;
240
241 ResponseMetadata m_responseMetadata;
242 Aws::Http::HttpResponseCode m_HttpResponseCode;
243 bool m_userGroupIdHasBeenSet = false;
244 bool m_statusHasBeenSet = false;
245 bool m_engineHasBeenSet = false;
246 bool m_userIdsHasBeenSet = false;
247 bool m_minimumEngineVersionHasBeenSet = false;
248 bool m_pendingChangesHasBeenSet = false;
249 bool m_replicationGroupsHasBeenSet = false;
250 bool m_serverlessCachesHasBeenSet = false;
251 bool m_aRNHasBeenSet = false;
252 bool m_responseMetadataHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace ElastiCache
257} // namespace Aws
const UserGroupPendingChanges & GetPendingChanges() const
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
ModifyUserGroupResult & WithUserGroupId(UserGroupIdT &&value)
ModifyUserGroupResult & AddUserIds(UserIdsT &&value)
ModifyUserGroupResult & WithPendingChanges(PendingChangesT &&value)
ModifyUserGroupResult & WithUserIds(UserIdsT &&value)
ModifyUserGroupResult & WithResponseMetadata(ResponseMetadataT &&value)
void SetReplicationGroups(ReplicationGroupsT &&value)
const Aws::Vector< Aws::String > & GetUserIds() const
AWS_ELASTICACHE_API ModifyUserGroupResult()=default
AWS_ELASTICACHE_API ModifyUserGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Aws::String > & GetServerlessCaches() const
ModifyUserGroupResult & WithServerlessCaches(ServerlessCachesT &&value)
const ResponseMetadata & GetResponseMetadata() const
ModifyUserGroupResult & AddReplicationGroups(ReplicationGroupsT &&value)
ModifyUserGroupResult & AddServerlessCaches(ServerlessCachesT &&value)
ModifyUserGroupResult & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ModifyUserGroupResult & WithEngine(EngineT &&value)
AWS_ELASTICACHE_API ModifyUserGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyUserGroupResult & WithStatus(StatusT &&value)
ModifyUserGroupResult & WithARN(ARNT &&value)
ModifyUserGroupResult & WithReplicationGroups(ReplicationGroupsT &&value)
const Aws::Vector< Aws::String > & GetReplicationGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument