AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateUserGroupResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10#include <aws/elasticache/model/ResponseMetadata.h>
11#include <aws/elasticache/model/UserGroupPendingChanges.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache {
25namespace Model {
27 public:
28 AWS_ELASTICACHE_API CreateUserGroupResult() = default;
31
33
36 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
37 template <typename UserGroupIdT = Aws::String>
38 void SetUserGroupId(UserGroupIdT&& value) {
39 m_userGroupIdHasBeenSet = true;
40 m_userGroupId = std::forward<UserGroupIdT>(value);
41 }
42 template <typename UserGroupIdT = Aws::String>
43 CreateUserGroupResult& WithUserGroupId(UserGroupIdT&& value) {
44 SetUserGroupId(std::forward<UserGroupIdT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetStatus() const { return m_status; }
55 template <typename StatusT = Aws::String>
56 void SetStatus(StatusT&& value) {
57 m_statusHasBeenSet = true;
58 m_status = std::forward<StatusT>(value);
59 }
60 template <typename StatusT = Aws::String>
62 SetStatus(std::forward<StatusT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetEngine() const { return m_engine; }
72 template <typename EngineT = Aws::String>
73 void SetEngine(EngineT&& value) {
74 m_engineHasBeenSet = true;
75 m_engine = std::forward<EngineT>(value);
76 }
77 template <typename EngineT = Aws::String>
79 SetEngine(std::forward<EngineT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
89 template <typename UserIdsT = Aws::Vector<Aws::String>>
90 void SetUserIds(UserIdsT&& value) {
91 m_userIdsHasBeenSet = true;
92 m_userIds = std::forward<UserIdsT>(value);
93 }
94 template <typename UserIdsT = Aws::Vector<Aws::String>>
96 SetUserIds(std::forward<UserIdsT>(value));
97 return *this;
98 }
99 template <typename UserIdsT = Aws::String>
101 m_userIdsHasBeenSet = true;
102 m_userIds.emplace_back(std::forward<UserIdsT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
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 CreateUserGroupResult& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
119 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
120 return *this;
121 }
123
125
128 inline const UserGroupPendingChanges& GetPendingChanges() const { return m_pendingChanges; }
129 template <typename PendingChangesT = UserGroupPendingChanges>
130 void SetPendingChanges(PendingChangesT&& value) {
131 m_pendingChangesHasBeenSet = true;
132 m_pendingChanges = std::forward<PendingChangesT>(value);
133 }
134 template <typename PendingChangesT = UserGroupPendingChanges>
135 CreateUserGroupResult& WithPendingChanges(PendingChangesT&& value) {
136 SetPendingChanges(std::forward<PendingChangesT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetReplicationGroups() const { return m_replicationGroups; }
146 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
147 void SetReplicationGroups(ReplicationGroupsT&& value) {
148 m_replicationGroupsHasBeenSet = true;
149 m_replicationGroups = std::forward<ReplicationGroupsT>(value);
150 }
151 template <typename ReplicationGroupsT = Aws::Vector<Aws::String>>
152 CreateUserGroupResult& WithReplicationGroups(ReplicationGroupsT&& value) {
153 SetReplicationGroups(std::forward<ReplicationGroupsT>(value));
154 return *this;
155 }
156 template <typename ReplicationGroupsT = Aws::String>
157 CreateUserGroupResult& AddReplicationGroups(ReplicationGroupsT&& value) {
158 m_replicationGroupsHasBeenSet = true;
159 m_replicationGroups.emplace_back(std::forward<ReplicationGroupsT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Vector<Aws::String>& GetServerlessCaches() const { return m_serverlessCaches; }
170 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
171 void SetServerlessCaches(ServerlessCachesT&& value) {
172 m_serverlessCachesHasBeenSet = true;
173 m_serverlessCaches = std::forward<ServerlessCachesT>(value);
174 }
175 template <typename ServerlessCachesT = Aws::Vector<Aws::String>>
176 CreateUserGroupResult& WithServerlessCaches(ServerlessCachesT&& value) {
177 SetServerlessCaches(std::forward<ServerlessCachesT>(value));
178 return *this;
179 }
180 template <typename ServerlessCachesT = Aws::String>
181 CreateUserGroupResult& AddServerlessCaches(ServerlessCachesT&& value) {
182 m_serverlessCachesHasBeenSet = true;
183 m_serverlessCaches.emplace_back(std::forward<ServerlessCachesT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetARN() const { return m_aRN; }
193 template <typename ARNT = Aws::String>
194 void SetARN(ARNT&& value) {
195 m_aRNHasBeenSet = true;
196 m_aRN = std::forward<ARNT>(value);
197 }
198 template <typename ARNT = Aws::String>
200 SetARN(std::forward<ARNT>(value));
201 return *this;
202 }
204
206
207 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
208 template <typename ResponseMetadataT = ResponseMetadata>
209 void SetResponseMetadata(ResponseMetadataT&& value) {
210 m_responseMetadataHasBeenSet = true;
211 m_responseMetadata = std::forward<ResponseMetadataT>(value);
212 }
213 template <typename ResponseMetadataT = ResponseMetadata>
214 CreateUserGroupResult& WithResponseMetadata(ResponseMetadataT&& value) {
215 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_userGroupId;
221
222 Aws::String m_status;
223
224 Aws::String m_engine;
225
226 Aws::Vector<Aws::String> m_userIds;
227
228 Aws::String m_minimumEngineVersion;
229
230 UserGroupPendingChanges m_pendingChanges;
231
232 Aws::Vector<Aws::String> m_replicationGroups;
233
234 Aws::Vector<Aws::String> m_serverlessCaches;
235
236 Aws::String m_aRN;
237
238 ResponseMetadata m_responseMetadata;
239 bool m_userGroupIdHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_engineHasBeenSet = false;
242 bool m_userIdsHasBeenSet = false;
243 bool m_minimumEngineVersionHasBeenSet = false;
244 bool m_pendingChangesHasBeenSet = false;
245 bool m_replicationGroupsHasBeenSet = false;
246 bool m_serverlessCachesHasBeenSet = false;
247 bool m_aRNHasBeenSet = false;
248 bool m_responseMetadataHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace ElastiCache
253} // namespace Aws
const Aws::Vector< Aws::String > & GetUserIds() const
CreateUserGroupResult & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
void SetReplicationGroups(ReplicationGroupsT &&value)
const UserGroupPendingChanges & GetPendingChanges() const
const Aws::Vector< Aws::String > & GetServerlessCaches() const
const Aws::Vector< Aws::String > & GetReplicationGroups() const
CreateUserGroupResult & WithServerlessCaches(ServerlessCachesT &&value)
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
AWS_ELASTICACHE_API CreateUserGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICACHE_API CreateUserGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateUserGroupResult & WithUserGroupId(UserGroupIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
CreateUserGroupResult & AddServerlessCaches(ServerlessCachesT &&value)
CreateUserGroupResult & AddReplicationGroups(ReplicationGroupsT &&value)
CreateUserGroupResult & WithPendingChanges(PendingChangesT &&value)
CreateUserGroupResult & WithUserIds(UserIdsT &&value)
CreateUserGroupResult & AddUserIds(UserIdsT &&value)
CreateUserGroupResult & WithARN(ARNT &&value)
CreateUserGroupResult & WithStatus(StatusT &&value)
CreateUserGroupResult & WithEngine(EngineT &&value)
CreateUserGroupResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICACHE_API CreateUserGroupResult()=default
CreateUserGroupResult & WithReplicationGroups(ReplicationGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument