AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServerlessCacheRequest.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 <aws/elasticache/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ElastiCache
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ELASTICACHE_API CreateServerlessCacheRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateServerlessCache"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
47 inline const Aws::String& GetServerlessCacheName() const{ return m_serverlessCacheName; }
48 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
49 inline void SetServerlessCacheName(const Aws::String& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = value; }
50 inline void SetServerlessCacheName(Aws::String&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::move(value); }
51 inline void SetServerlessCacheName(const char* value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName.assign(value); }
54 inline CreateServerlessCacheRequest& WithServerlessCacheName(const char* value) { SetServerlessCacheName(value); return *this;}
56
58
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline CreateServerlessCacheRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline CreateServerlessCacheRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline CreateServerlessCacheRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
78 inline const Aws::String& GetEngine() const{ return m_engine; }
79 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
80 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
81 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
82 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
83 inline CreateServerlessCacheRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
84 inline CreateServerlessCacheRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
85 inline CreateServerlessCacheRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
87
89
93 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
94 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
95 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
96 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
97 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
99 inline CreateServerlessCacheRequest& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
100 inline CreateServerlessCacheRequest& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
102
104
108 inline const CacheUsageLimits& GetCacheUsageLimits() const{ return m_cacheUsageLimits; }
109 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
110 inline void SetCacheUsageLimits(const CacheUsageLimits& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = value; }
111 inline void SetCacheUsageLimits(CacheUsageLimits&& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = std::move(value); }
115
117
121 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
122 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
123 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
124 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
125 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
126 inline CreateServerlessCacheRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
127 inline CreateServerlessCacheRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
128 inline CreateServerlessCacheRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
130
132
139 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
140 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
141 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
142 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
145 inline CreateServerlessCacheRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
146 inline CreateServerlessCacheRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
147 inline CreateServerlessCacheRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
149
151
155 inline const Aws::Vector<Aws::String>& GetSnapshotArnsToRestore() const{ return m_snapshotArnsToRestore; }
156 inline bool SnapshotArnsToRestoreHasBeenSet() const { return m_snapshotArnsToRestoreHasBeenSet; }
157 inline void SetSnapshotArnsToRestore(const Aws::Vector<Aws::String>& value) { m_snapshotArnsToRestoreHasBeenSet = true; m_snapshotArnsToRestore = value; }
158 inline void SetSnapshotArnsToRestore(Aws::Vector<Aws::String>&& value) { m_snapshotArnsToRestoreHasBeenSet = true; m_snapshotArnsToRestore = std::move(value); }
161 inline CreateServerlessCacheRequest& AddSnapshotArnsToRestore(const Aws::String& value) { m_snapshotArnsToRestoreHasBeenSet = true; m_snapshotArnsToRestore.push_back(value); return *this; }
162 inline CreateServerlessCacheRequest& AddSnapshotArnsToRestore(Aws::String&& value) { m_snapshotArnsToRestoreHasBeenSet = true; m_snapshotArnsToRestore.push_back(std::move(value)); return *this; }
163 inline CreateServerlessCacheRequest& AddSnapshotArnsToRestore(const char* value) { m_snapshotArnsToRestoreHasBeenSet = true; m_snapshotArnsToRestore.push_back(value); return *this; }
165
167
171 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
174 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
175 inline CreateServerlessCacheRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
176 inline CreateServerlessCacheRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
177 inline CreateServerlessCacheRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
178 inline CreateServerlessCacheRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
180
182
186 inline const Aws::String& GetUserGroupId() const{ return m_userGroupId; }
187 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
188 inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
189 inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
190 inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
191 inline CreateServerlessCacheRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
192 inline CreateServerlessCacheRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
193 inline CreateServerlessCacheRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
195
197
202 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
203 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
204 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
205 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
207 inline CreateServerlessCacheRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
208 inline CreateServerlessCacheRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
209 inline CreateServerlessCacheRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
210 inline CreateServerlessCacheRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
212
214
220 inline int GetSnapshotRetentionLimit() const{ return m_snapshotRetentionLimit; }
221 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
222 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
225
227
233 inline const Aws::String& GetDailySnapshotTime() const{ return m_dailySnapshotTime; }
234 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
235 inline void SetDailySnapshotTime(const Aws::String& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = value; }
236 inline void SetDailySnapshotTime(Aws::String&& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = std::move(value); }
237 inline void SetDailySnapshotTime(const char* value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime.assign(value); }
239 inline CreateServerlessCacheRequest& WithDailySnapshotTime(Aws::String&& value) { SetDailySnapshotTime(std::move(value)); return *this;}
240 inline CreateServerlessCacheRequest& WithDailySnapshotTime(const char* value) { SetDailySnapshotTime(value); return *this;}
242 private:
243
244 Aws::String m_serverlessCacheName;
245 bool m_serverlessCacheNameHasBeenSet = false;
246
247 Aws::String m_description;
248 bool m_descriptionHasBeenSet = false;
249
250 Aws::String m_engine;
251 bool m_engineHasBeenSet = false;
252
253 Aws::String m_majorEngineVersion;
254 bool m_majorEngineVersionHasBeenSet = false;
255
256 CacheUsageLimits m_cacheUsageLimits;
257 bool m_cacheUsageLimitsHasBeenSet = false;
258
259 Aws::String m_kmsKeyId;
260 bool m_kmsKeyIdHasBeenSet = false;
261
262 Aws::Vector<Aws::String> m_securityGroupIds;
263 bool m_securityGroupIdsHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_snapshotArnsToRestore;
266 bool m_snapshotArnsToRestoreHasBeenSet = false;
267
268 Aws::Vector<Tag> m_tags;
269 bool m_tagsHasBeenSet = false;
270
271 Aws::String m_userGroupId;
272 bool m_userGroupIdHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_subnetIds;
275 bool m_subnetIdsHasBeenSet = false;
276
277 int m_snapshotRetentionLimit;
278 bool m_snapshotRetentionLimitHasBeenSet = false;
279
280 Aws::String m_dailySnapshotTime;
281 bool m_dailySnapshotTimeHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace ElastiCache
286} // namespace Aws
CreateServerlessCacheRequest & WithDescription(const Aws::String &value)
CreateServerlessCacheRequest & WithServerlessCacheName(Aws::String &&value)
CreateServerlessCacheRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateServerlessCacheRequest & WithCacheUsageLimits(CacheUsageLimits &&value)
CreateServerlessCacheRequest & AddSecurityGroupIds(const Aws::String &value)
CreateServerlessCacheRequest & WithDescription(Aws::String &&value)
CreateServerlessCacheRequest & WithSnapshotRetentionLimit(int value)
CreateServerlessCacheRequest & WithMajorEngineVersion(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateServerlessCacheRequest & WithKmsKeyId(const char *value)
CreateServerlessCacheRequest & WithEngine(const Aws::String &value)
CreateServerlessCacheRequest & WithServerlessCacheName(const Aws::String &value)
CreateServerlessCacheRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateServerlessCacheRequest & WithUserGroupId(const Aws::String &value)
CreateServerlessCacheRequest & WithKmsKeyId(Aws::String &&value)
CreateServerlessCacheRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateServerlessCacheRequest & WithMajorEngineVersion(const Aws::String &value)
CreateServerlessCacheRequest & AddSnapshotArnsToRestore(Aws::String &&value)
CreateServerlessCacheRequest & WithEngine(const char *value)
CreateServerlessCacheRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateServerlessCacheRequest & AddSubnetIds(Aws::String &&value)
CreateServerlessCacheRequest & WithServerlessCacheName(const char *value)
CreateServerlessCacheRequest & WithSnapshotArnsToRestore(const Aws::Vector< Aws::String > &value)
CreateServerlessCacheRequest & AddSnapshotArnsToRestore(const Aws::String &value)
CreateServerlessCacheRequest & WithDailySnapshotTime(const Aws::String &value)
CreateServerlessCacheRequest & WithMajorEngineVersion(Aws::String &&value)
CreateServerlessCacheRequest & AddSubnetIds(const Aws::String &value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateServerlessCacheRequest & WithUserGroupId(const char *value)
const Aws::Vector< Aws::String > & GetSnapshotArnsToRestore() const
CreateServerlessCacheRequest & AddSnapshotArnsToRestore(const char *value)
CreateServerlessCacheRequest & WithSnapshotArnsToRestore(Aws::Vector< Aws::String > &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSnapshotArnsToRestore(Aws::Vector< Aws::String > &&value)
CreateServerlessCacheRequest & AddSecurityGroupIds(Aws::String &&value)
CreateServerlessCacheRequest & WithKmsKeyId(const Aws::String &value)
CreateServerlessCacheRequest & WithEngine(Aws::String &&value)
CreateServerlessCacheRequest & WithUserGroupId(Aws::String &&value)
CreateServerlessCacheRequest & WithDescription(const char *value)
CreateServerlessCacheRequest & AddSecurityGroupIds(const char *value)
CreateServerlessCacheRequest & WithTags(const Aws::Vector< Tag > &value)
CreateServerlessCacheRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServerlessCacheRequest & WithDailySnapshotTime(const char *value)
void SetSnapshotArnsToRestore(const Aws::Vector< Aws::String > &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateServerlessCacheRequest & WithDailySnapshotTime(Aws::String &&value)
CreateServerlessCacheRequest & AddSubnetIds(const char *value)
CreateServerlessCacheRequest & AddTags(const Tag &value)
CreateServerlessCacheRequest & WithCacheUsageLimits(const CacheUsageLimits &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector