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#include <aws/elasticache/model/NetworkType.h>
13#include <aws/elasticache/model/Tag.h>
18namespace ElastiCache {
46 template <
typename ServerlessCacheNameT = Aws::String>
48 m_serverlessCacheNameHasBeenSet =
true;
49 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
51 template <
typename ServerlessCacheNameT = Aws::String>
66 template <
typename DescriptionT = Aws::String>
68 m_descriptionHasBeenSet =
true;
69 m_description = std::forward<DescriptionT>(value);
71 template <
typename DescriptionT = Aws::String>
85 template <
typename EngineT = Aws::String>
87 m_engineHasBeenSet =
true;
88 m_engine = std::forward<EngineT>(value);
90 template <
typename EngineT = Aws::String>
104 template <
typename MajorEngineVersionT = Aws::String>
106 m_majorEngineVersionHasBeenSet =
true;
107 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
109 template <
typename MajorEngineVersionT = Aws::String>
123 template <
typename CacheUsageLimitsT = CacheUsageLimits>
125 m_cacheUsageLimitsHasBeenSet =
true;
126 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
128 template <
typename CacheUsageLimitsT = CacheUsageLimits>
142 template <
typename KmsKeyIdT = Aws::String>
144 m_kmsKeyIdHasBeenSet =
true;
145 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
147 template <
typename KmsKeyIdT = Aws::String>
164 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
166 m_securityGroupIdsHasBeenSet =
true;
167 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
169 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
174 template <
typename SecurityGroupIdsT = Aws::String>
176 m_securityGroupIdsHasBeenSet =
true;
177 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
189 template <
typename SnapshotArnsToRestoreT = Aws::Vector<Aws::String>>
191 m_snapshotArnsToRestoreHasBeenSet =
true;
192 m_snapshotArnsToRestore = std::forward<SnapshotArnsToRestoreT>(value);
194 template <
typename SnapshotArnsToRestoreT = Aws::Vector<Aws::String>>
199 template <
typename SnapshotArnsToRestoreT = Aws::String>
201 m_snapshotArnsToRestoreHasBeenSet =
true;
202 m_snapshotArnsToRestore.emplace_back(std::forward<SnapshotArnsToRestoreT>(value));
214 template <
typename TagsT = Aws::Vector<Tag>>
216 m_tagsHasBeenSet =
true;
217 m_tags = std::forward<TagsT>(value);
219 template <
typename TagsT = Aws::Vector<Tag>>
221 SetTags(std::forward<TagsT>(value));
224 template <
typename TagsT = Tag>
226 m_tagsHasBeenSet =
true;
227 m_tags.emplace_back(std::forward<TagsT>(value));
239 template <
typename UserGroupIdT = Aws::String>
241 m_userGroupIdHasBeenSet =
true;
242 m_userGroupId = std::forward<UserGroupIdT>(value);
244 template <
typename UserGroupIdT = Aws::String>
259 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
261 m_subnetIdsHasBeenSet =
true;
262 m_subnetIds = std::forward<SubnetIdsT>(value);
264 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
269 template <
typename SubnetIdsT = Aws::String>
271 m_subnetIdsHasBeenSet =
true;
272 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
286 m_snapshotRetentionLimitHasBeenSet =
true;
287 m_snapshotRetentionLimit = value;
304 template <
typename DailySnapshotTimeT = Aws::String>
306 m_dailySnapshotTimeHasBeenSet =
true;
307 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
309 template <
typename DailySnapshotTimeT = Aws::String>
327 m_networkTypeHasBeenSet =
true;
328 m_networkType = value;
358 int m_snapshotRetentionLimit{0};
363 bool m_serverlessCacheNameHasBeenSet =
false;
364 bool m_descriptionHasBeenSet =
false;
365 bool m_engineHasBeenSet =
false;
366 bool m_majorEngineVersionHasBeenSet =
false;
367 bool m_cacheUsageLimitsHasBeenSet =
false;
368 bool m_kmsKeyIdHasBeenSet =
false;
369 bool m_securityGroupIdsHasBeenSet =
false;
370 bool m_snapshotArnsToRestoreHasBeenSet =
false;
371 bool m_tagsHasBeenSet =
false;
372 bool m_userGroupIdHasBeenSet =
false;
373 bool m_subnetIdsHasBeenSet =
false;
374 bool m_snapshotRetentionLimitHasBeenSet =
false;
375 bool m_dailySnapshotTimeHasBeenSet =
false;
376 bool m_networkTypeHasBeenSet =
false;
void SetDescription(DescriptionT &&value)
void SetEngine(EngineT &&value)
const Aws::String & GetUserGroupId() const
const Aws::String & GetEngine() const
CreateServerlessCacheRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetMajorEngineVersion() const
CreateServerlessCacheRequest & WithEngine(EngineT &&value)
CreateServerlessCacheRequest & WithSnapshotArnsToRestore(SnapshotArnsToRestoreT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateServerlessCacheRequest & WithUserGroupId(UserGroupIdT &&value)
CreateServerlessCacheRequest & WithKmsKeyId(KmsKeyIdT &&value)
bool DailySnapshotTimeHasBeenSet() const
NetworkType GetNetworkType() const
CreateServerlessCacheRequest & WithSnapshotRetentionLimit(int value)
const Aws::String & GetServerlessCacheName() const
bool NetworkTypeHasBeenSet() const
void SetDailySnapshotTime(DailySnapshotTimeT &&value)
bool SubnetIdsHasBeenSet() const
void SetTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
bool UserGroupIdHasBeenSet() const
bool SnapshotRetentionLimitHasBeenSet() const
bool MajorEngineVersionHasBeenSet() const
bool SecurityGroupIdsHasBeenSet() const
bool CacheUsageLimitsHasBeenSet() const
bool EngineHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
CreateServerlessCacheRequest & WithDailySnapshotTime(DailySnapshotTimeT &&value)
void SetNetworkType(NetworkType value)
void SetUserGroupId(UserGroupIdT &&value)
bool TagsHasBeenSet() const
CreateServerlessCacheRequest & WithNetworkType(NetworkType value)
const Aws::String & GetKmsKeyId() const
const Aws::String & GetDailySnapshotTime() const
CreateServerlessCacheRequest & AddSnapshotArnsToRestore(SnapshotArnsToRestoreT &&value)
const Aws::String & GetDescription() const
CreateServerlessCacheRequest & AddSubnetIds(SubnetIdsT &&value)
bool DescriptionHasBeenSet() const
CreateServerlessCacheRequest & WithCacheUsageLimits(CacheUsageLimitsT &&value)
CreateServerlessCacheRequest & WithTags(TagsT &&value)
void SetSubnetIds(SubnetIdsT &&value)
const CacheUsageLimits & GetCacheUsageLimits() const
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateServerlessCacheRequest & WithMajorEngineVersion(MajorEngineVersionT &&value)
CreateServerlessCacheRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
bool ServerlessCacheNameHasBeenSet() const
const Aws::Vector< Aws::String > & GetSnapshotArnsToRestore() const
bool SnapshotArnsToRestoreHasBeenSet() const
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
int GetSnapshotRetentionLimit() const
void SetKmsKeyId(KmsKeyIdT &&value)
CreateServerlessCacheRequest & WithDescription(DescriptionT &&value)
void SetMajorEngineVersion(MajorEngineVersionT &&value)
void SetCacheUsageLimits(CacheUsageLimitsT &&value)
void SetServerlessCacheName(ServerlessCacheNameT &&value)
void SetSnapshotRetentionLimit(int value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateServerlessCacheRequest & AddTags(TagsT &&value)
void SetSnapshotArnsToRestore(SnapshotArnsToRestoreT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
CreateServerlessCacheRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_ELASTICACHE_API CreateServerlessCacheRequest()=default
CreateServerlessCacheRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector