AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServerlessCacheName(const Aws::String& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = value; }
48 inline void SetServerlessCacheName(Aws::String&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::move(value); }
49 inline void SetServerlessCacheName(const char* value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName.assign(value); }
52 inline ModifyServerlessCacheRequest& WithServerlessCacheName(const char* value) { SetServerlessCacheName(value); return *this;}
54
56
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline ModifyServerlessCacheRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline ModifyServerlessCacheRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline ModifyServerlessCacheRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const CacheUsageLimits& GetCacheUsageLimits() const{ return m_cacheUsageLimits; }
76 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
77 inline void SetCacheUsageLimits(const CacheUsageLimits& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = value; }
78 inline void SetCacheUsageLimits(CacheUsageLimits&& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = std::move(value); }
82
84
89 inline bool GetRemoveUserGroup() const{ return m_removeUserGroup; }
90 inline bool RemoveUserGroupHasBeenSet() const { return m_removeUserGroupHasBeenSet; }
91 inline void SetRemoveUserGroup(bool value) { m_removeUserGroupHasBeenSet = true; m_removeUserGroup = value; }
92 inline ModifyServerlessCacheRequest& WithRemoveUserGroup(bool value) { SetRemoveUserGroup(value); return *this;}
94
96
101 inline const Aws::String& GetUserGroupId() const{ return m_userGroupId; }
102 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
103 inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
104 inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
105 inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
106 inline ModifyServerlessCacheRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
107 inline ModifyServerlessCacheRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
108 inline ModifyServerlessCacheRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
110
112
119 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
120 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
121 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
122 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
125 inline ModifyServerlessCacheRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
126 inline ModifyServerlessCacheRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
127 inline ModifyServerlessCacheRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
129
131
137 inline int GetSnapshotRetentionLimit() const{ return m_snapshotRetentionLimit; }
138 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
139 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
142
144
150 inline const Aws::String& GetDailySnapshotTime() const{ return m_dailySnapshotTime; }
151 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
152 inline void SetDailySnapshotTime(const Aws::String& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = value; }
153 inline void SetDailySnapshotTime(Aws::String&& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = std::move(value); }
154 inline void SetDailySnapshotTime(const char* value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime.assign(value); }
156 inline ModifyServerlessCacheRequest& WithDailySnapshotTime(Aws::String&& value) { SetDailySnapshotTime(std::move(value)); return *this;}
157 inline ModifyServerlessCacheRequest& WithDailySnapshotTime(const char* value) { SetDailySnapshotTime(value); return *this;}
159
161
165 inline const Aws::String& GetEngine() const{ return m_engine; }
166 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
167 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
168 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
169 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
170 inline ModifyServerlessCacheRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
171 inline ModifyServerlessCacheRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
172 inline ModifyServerlessCacheRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
174
176
179 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
180 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
181 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
182 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
183 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
186 inline ModifyServerlessCacheRequest& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
188 private:
189
190 Aws::String m_serverlessCacheName;
191 bool m_serverlessCacheNameHasBeenSet = false;
192
193 Aws::String m_description;
194 bool m_descriptionHasBeenSet = false;
195
196 CacheUsageLimits m_cacheUsageLimits;
197 bool m_cacheUsageLimitsHasBeenSet = false;
198
199 bool m_removeUserGroup;
200 bool m_removeUserGroupHasBeenSet = false;
201
202 Aws::String m_userGroupId;
203 bool m_userGroupIdHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_securityGroupIds;
206 bool m_securityGroupIdsHasBeenSet = false;
207
208 int m_snapshotRetentionLimit;
209 bool m_snapshotRetentionLimitHasBeenSet = false;
210
211 Aws::String m_dailySnapshotTime;
212 bool m_dailySnapshotTimeHasBeenSet = false;
213
214 Aws::String m_engine;
215 bool m_engineHasBeenSet = false;
216
217 Aws::String m_majorEngineVersion;
218 bool m_majorEngineVersionHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace ElastiCache
223} // namespace Aws
ModifyServerlessCacheRequest & WithSnapshotRetentionLimit(int value)
ModifyServerlessCacheRequest & WithEngine(const char *value)
ModifyServerlessCacheRequest & WithCacheUsageLimits(CacheUsageLimits &&value)
ModifyServerlessCacheRequest & WithEngine(const Aws::String &value)
ModifyServerlessCacheRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyServerlessCacheRequest & WithUserGroupId(const char *value)
ModifyServerlessCacheRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyServerlessCacheRequest & WithMajorEngineVersion(const char *value)
ModifyServerlessCacheRequest & WithServerlessCacheName(const char *value)
ModifyServerlessCacheRequest & WithDescription(Aws::String &&value)
ModifyServerlessCacheRequest & WithMajorEngineVersion(Aws::String &&value)
ModifyServerlessCacheRequest & WithDailySnapshotTime(const Aws::String &value)
ModifyServerlessCacheRequest & WithDailySnapshotTime(const char *value)
ModifyServerlessCacheRequest & WithCacheUsageLimits(const CacheUsageLimits &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyServerlessCacheRequest & WithServerlessCacheName(const Aws::String &value)
ModifyServerlessCacheRequest & WithEngine(Aws::String &&value)
ModifyServerlessCacheRequest & WithDescription(const Aws::String &value)
ModifyServerlessCacheRequest & WithUserGroupId(const Aws::String &value)
ModifyServerlessCacheRequest & WithDailySnapshotTime(Aws::String &&value)
ModifyServerlessCacheRequest & WithServerlessCacheName(Aws::String &&value)
ModifyServerlessCacheRequest & AddSecurityGroupIds(Aws::String &&value)
ModifyServerlessCacheRequest & WithRemoveUserGroup(bool value)
ModifyServerlessCacheRequest & WithMajorEngineVersion(const Aws::String &value)
ModifyServerlessCacheRequest & AddSecurityGroupIds(const Aws::String &value)
ModifyServerlessCacheRequest & AddSecurityGroupIds(const char *value)
ModifyServerlessCacheRequest & WithUserGroupId(Aws::String &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ModifyServerlessCacheRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector