AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateUserGroupResult.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/model/UserGroupPendingChanges.h>
11#include <aws/elasticache/model/ResponseMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ELASTICACHE_API CreateUserGroupResult() = default;
36
37
39
42 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
43 template<typename UserGroupIdT = Aws::String>
44 void SetUserGroupId(UserGroupIdT&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::forward<UserGroupIdT>(value); }
45 template<typename UserGroupIdT = Aws::String>
46 CreateUserGroupResult& WithUserGroupId(UserGroupIdT&& value) { SetUserGroupId(std::forward<UserGroupIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetStatus() const { return m_status; }
55 template<typename StatusT = Aws::String>
56 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
57 template<typename StatusT = Aws::String>
58 CreateUserGroupResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
60
62
65 inline const Aws::String& GetEngine() const { return m_engine; }
66 template<typename EngineT = Aws::String>
67 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
68 template<typename EngineT = Aws::String>
69 CreateUserGroupResult& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
77 template<typename UserIdsT = Aws::Vector<Aws::String>>
78 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds = std::forward<UserIdsT>(value); }
79 template<typename UserIdsT = Aws::Vector<Aws::String>>
80 CreateUserGroupResult& WithUserIds(UserIdsT&& value) { SetUserIds(std::forward<UserIdsT>(value)); return *this;}
81 template<typename UserIdsT = Aws::String>
82 CreateUserGroupResult& AddUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds.emplace_back(std::forward<UserIdsT>(value)); return *this; }
84
86
89 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
90 template<typename MinimumEngineVersionT = Aws::String>
91 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value); }
92 template<typename MinimumEngineVersionT = Aws::String>
93 CreateUserGroupResult& WithMinimumEngineVersion(MinimumEngineVersionT&& value) { SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value)); return *this;}
95
97
100 inline const UserGroupPendingChanges& GetPendingChanges() const { return m_pendingChanges; }
101 template<typename PendingChangesT = UserGroupPendingChanges>
102 void SetPendingChanges(PendingChangesT&& value) { m_pendingChangesHasBeenSet = true; m_pendingChanges = std::forward<PendingChangesT>(value); }
103 template<typename PendingChangesT = UserGroupPendingChanges>
104 CreateUserGroupResult& WithPendingChanges(PendingChangesT&& value) { SetPendingChanges(std::forward<PendingChangesT>(value)); return *this;}
106
108
111 inline const Aws::Vector<Aws::String>& GetReplicationGroups() const { return m_replicationGroups; }
112 template<typename ReplicationGroupsT = Aws::Vector<Aws::String>>
113 void SetReplicationGroups(ReplicationGroupsT&& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups = std::forward<ReplicationGroupsT>(value); }
114 template<typename ReplicationGroupsT = Aws::Vector<Aws::String>>
115 CreateUserGroupResult& WithReplicationGroups(ReplicationGroupsT&& value) { SetReplicationGroups(std::forward<ReplicationGroupsT>(value)); return *this;}
116 template<typename ReplicationGroupsT = Aws::String>
117 CreateUserGroupResult& AddReplicationGroups(ReplicationGroupsT&& value) { m_replicationGroupsHasBeenSet = true; m_replicationGroups.emplace_back(std::forward<ReplicationGroupsT>(value)); return *this; }
119
121
125 inline const Aws::Vector<Aws::String>& GetServerlessCaches() const { return m_serverlessCaches; }
126 template<typename ServerlessCachesT = Aws::Vector<Aws::String>>
127 void SetServerlessCaches(ServerlessCachesT&& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches = std::forward<ServerlessCachesT>(value); }
128 template<typename ServerlessCachesT = Aws::Vector<Aws::String>>
129 CreateUserGroupResult& WithServerlessCaches(ServerlessCachesT&& value) { SetServerlessCaches(std::forward<ServerlessCachesT>(value)); return *this;}
130 template<typename ServerlessCachesT = Aws::String>
131 CreateUserGroupResult& AddServerlessCaches(ServerlessCachesT&& value) { m_serverlessCachesHasBeenSet = true; m_serverlessCaches.emplace_back(std::forward<ServerlessCachesT>(value)); return *this; }
133
135
138 inline const Aws::String& GetARN() const { return m_aRN; }
139 template<typename ARNT = Aws::String>
140 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
141 template<typename ARNT = Aws::String>
142 CreateUserGroupResult& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
144
146
147 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
148 template<typename ResponseMetadataT = ResponseMetadata>
149 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
150 template<typename ResponseMetadataT = ResponseMetadata>
151 CreateUserGroupResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
153 private:
154
155 Aws::String m_userGroupId;
156 bool m_userGroupIdHasBeenSet = false;
157
158 Aws::String m_status;
159 bool m_statusHasBeenSet = false;
160
161 Aws::String m_engine;
162 bool m_engineHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_userIds;
165 bool m_userIdsHasBeenSet = false;
166
167 Aws::String m_minimumEngineVersion;
168 bool m_minimumEngineVersionHasBeenSet = false;
169
170 UserGroupPendingChanges m_pendingChanges;
171 bool m_pendingChangesHasBeenSet = false;
172
173 Aws::Vector<Aws::String> m_replicationGroups;
174 bool m_replicationGroupsHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_serverlessCaches;
177 bool m_serverlessCachesHasBeenSet = false;
178
179 Aws::String m_aRN;
180 bool m_aRNHasBeenSet = false;
181
182 ResponseMetadata m_responseMetadata;
183 bool m_responseMetadataHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ElastiCache
188} // 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