AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyServerlessCacheRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/model/CacheUsageLimits.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICACHE_API ModifyServerlessCacheRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyServerlessCache"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
46 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
47 template<typename ServerlessCacheNameT = Aws::String>
48 void SetServerlessCacheName(ServerlessCacheNameT&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value); }
49 template<typename ServerlessCacheNameT = Aws::String>
50 ModifyServerlessCacheRequest& WithServerlessCacheName(ServerlessCacheNameT&& value) { SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value)); return *this;}
52
54
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 ModifyServerlessCacheRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
72 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
73 template<typename CacheUsageLimitsT = CacheUsageLimits>
74 void SetCacheUsageLimits(CacheUsageLimitsT&& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value); }
75 template<typename CacheUsageLimitsT = CacheUsageLimits>
76 ModifyServerlessCacheRequest& WithCacheUsageLimits(CacheUsageLimitsT&& value) { SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value)); return *this;}
78
80
85 inline bool GetRemoveUserGroup() const { return m_removeUserGroup; }
86 inline bool RemoveUserGroupHasBeenSet() const { return m_removeUserGroupHasBeenSet; }
87 inline void SetRemoveUserGroup(bool value) { m_removeUserGroupHasBeenSet = true; m_removeUserGroup = value; }
88 inline ModifyServerlessCacheRequest& WithRemoveUserGroup(bool value) { SetRemoveUserGroup(value); return *this;}
90
92
97 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
98 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
99 template<typename UserGroupIdT = Aws::String>
100 void SetUserGroupId(UserGroupIdT&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::forward<UserGroupIdT>(value); }
101 template<typename UserGroupIdT = Aws::String>
102 ModifyServerlessCacheRequest& WithUserGroupId(UserGroupIdT&& value) { SetUserGroupId(std::forward<UserGroupIdT>(value)); return *this;}
104
106
113 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
114 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
115 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
116 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
117 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
118 ModifyServerlessCacheRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
119 template<typename SecurityGroupIdsT = Aws::String>
120 ModifyServerlessCacheRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
122
124
130 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
131 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
132 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
135
137
143 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
144 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
145 template<typename DailySnapshotTimeT = Aws::String>
146 void SetDailySnapshotTime(DailySnapshotTimeT&& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value); }
147 template<typename DailySnapshotTimeT = Aws::String>
148 ModifyServerlessCacheRequest& WithDailySnapshotTime(DailySnapshotTimeT&& value) { SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value)); return *this;}
150
152
156 inline const Aws::String& GetEngine() const { return m_engine; }
157 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
158 template<typename EngineT = Aws::String>
159 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
160 template<typename EngineT = Aws::String>
161 ModifyServerlessCacheRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
163
165
168 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
169 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
170 template<typename MajorEngineVersionT = Aws::String>
171 void SetMajorEngineVersion(MajorEngineVersionT&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::forward<MajorEngineVersionT>(value); }
172 template<typename MajorEngineVersionT = Aws::String>
173 ModifyServerlessCacheRequest& WithMajorEngineVersion(MajorEngineVersionT&& value) { SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value)); return *this;}
175 private:
176
177 Aws::String m_serverlessCacheName;
178 bool m_serverlessCacheNameHasBeenSet = false;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 CacheUsageLimits m_cacheUsageLimits;
184 bool m_cacheUsageLimitsHasBeenSet = false;
185
186 bool m_removeUserGroup{false};
187 bool m_removeUserGroupHasBeenSet = false;
188
189 Aws::String m_userGroupId;
190 bool m_userGroupIdHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_securityGroupIds;
193 bool m_securityGroupIdsHasBeenSet = false;
194
195 int m_snapshotRetentionLimit{0};
196 bool m_snapshotRetentionLimitHasBeenSet = false;
197
198 Aws::String m_dailySnapshotTime;
199 bool m_dailySnapshotTimeHasBeenSet = false;
200
201 Aws::String m_engine;
202 bool m_engineHasBeenSet = false;
203
204 Aws::String m_majorEngineVersion;
205 bool m_majorEngineVersionHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace ElastiCache
210} // 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