AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyServerlessCacheRequest.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/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/CacheUsageLimits.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
22 public:
23 AWS_ELASTICACHE_API ModifyServerlessCacheRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyServerlessCache"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
42 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
43 template <typename ServerlessCacheNameT = Aws::String>
44 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
45 m_serverlessCacheNameHasBeenSet = true;
46 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
47 }
48 template <typename ServerlessCacheNameT = Aws::String>
50 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
80 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
81 template <typename CacheUsageLimitsT = CacheUsageLimits>
82 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
83 m_cacheUsageLimitsHasBeenSet = true;
84 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
85 }
86 template <typename CacheUsageLimitsT = CacheUsageLimits>
88 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
89 return *this;
90 }
92
94
99 inline bool GetRemoveUserGroup() const { return m_removeUserGroup; }
100 inline bool RemoveUserGroupHasBeenSet() const { return m_removeUserGroupHasBeenSet; }
101 inline void SetRemoveUserGroup(bool value) {
102 m_removeUserGroupHasBeenSet = true;
103 m_removeUserGroup = value;
104 }
106 SetRemoveUserGroup(value);
107 return *this;
108 }
110
112
117 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
118 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
119 template <typename UserGroupIdT = Aws::String>
120 void SetUserGroupId(UserGroupIdT&& value) {
121 m_userGroupIdHasBeenSet = true;
122 m_userGroupId = std::forward<UserGroupIdT>(value);
123 }
124 template <typename UserGroupIdT = Aws::String>
126 SetUserGroupId(std::forward<UserGroupIdT>(value));
127 return *this;
128 }
130
132
139 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
140 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
141 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
142 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
143 m_securityGroupIdsHasBeenSet = true;
144 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
145 }
146 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
148 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
149 return *this;
150 }
151 template <typename SecurityGroupIdsT = Aws::String>
153 m_securityGroupIdsHasBeenSet = true;
154 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
155 return *this;
156 }
158
160
166 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
167 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
168 inline void SetSnapshotRetentionLimit(int value) {
169 m_snapshotRetentionLimitHasBeenSet = true;
170 m_snapshotRetentionLimit = value;
171 }
174 return *this;
175 }
177
179
185 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
186 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
187 template <typename DailySnapshotTimeT = Aws::String>
188 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
189 m_dailySnapshotTimeHasBeenSet = true;
190 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
191 }
192 template <typename DailySnapshotTimeT = Aws::String>
194 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetEngine() const { return m_engine; }
205 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
206 template <typename EngineT = Aws::String>
207 void SetEngine(EngineT&& value) {
208 m_engineHasBeenSet = true;
209 m_engine = std::forward<EngineT>(value);
210 }
211 template <typename EngineT = Aws::String>
213 SetEngine(std::forward<EngineT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
223 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
224 template <typename MajorEngineVersionT = Aws::String>
225 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
226 m_majorEngineVersionHasBeenSet = true;
227 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
228 }
229 template <typename MajorEngineVersionT = Aws::String>
231 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_serverlessCacheName;
237
238 Aws::String m_description;
239
240 CacheUsageLimits m_cacheUsageLimits;
241
242 bool m_removeUserGroup{false};
243
244 Aws::String m_userGroupId;
245
246 Aws::Vector<Aws::String> m_securityGroupIds;
247
248 int m_snapshotRetentionLimit{0};
249
250 Aws::String m_dailySnapshotTime;
251
252 Aws::String m_engine;
253
254 Aws::String m_majorEngineVersion;
255 bool m_serverlessCacheNameHasBeenSet = false;
256 bool m_descriptionHasBeenSet = false;
257 bool m_cacheUsageLimitsHasBeenSet = false;
258 bool m_removeUserGroupHasBeenSet = false;
259 bool m_userGroupIdHasBeenSet = false;
260 bool m_securityGroupIdsHasBeenSet = false;
261 bool m_snapshotRetentionLimitHasBeenSet = false;
262 bool m_dailySnapshotTimeHasBeenSet = false;
263 bool m_engineHasBeenSet = false;
264 bool m_majorEngineVersionHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace ElastiCache
269} // namespace Aws
ModifyServerlessCacheRequest & WithSnapshotRetentionLimit(int value)
ModifyServerlessCacheRequest & WithDescription(DescriptionT &&value)
ModifyServerlessCacheRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
ModifyServerlessCacheRequest & WithCacheUsageLimits(CacheUsageLimitsT &&value)
ModifyServerlessCacheRequest & WithMajorEngineVersion(MajorEngineVersionT &&value)
ModifyServerlessCacheRequest & WithDailySnapshotTime(DailySnapshotTimeT &&value)
ModifyServerlessCacheRequest & WithRemoveUserGroup(bool value)
ModifyServerlessCacheRequest & WithUserGroupId(UserGroupIdT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
ModifyServerlessCacheRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ModifyServerlessCacheRequest & WithEngine(EngineT &&value)
AWS_ELASTICACHE_API ModifyServerlessCacheRequest()=default
ModifyServerlessCacheRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector