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/ConnectionType.h>
13#include <aws/elasticache/model/NetworkType.h>
14#include <aws/elasticache/model/Tag.h>
19namespace ElastiCache {
47 template <
typename ServerlessCacheNameT = Aws::String>
49 m_serverlessCacheNameHasBeenSet =
true;
50 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
52 template <
typename ServerlessCacheNameT = Aws::String>
67 template <
typename DescriptionT = Aws::String>
69 m_descriptionHasBeenSet =
true;
70 m_description = std::forward<DescriptionT>(value);
72 template <
typename DescriptionT = Aws::String>
86 template <
typename EngineT = Aws::String>
88 m_engineHasBeenSet =
true;
89 m_engine = std::forward<EngineT>(value);
91 template <
typename EngineT = Aws::String>
105 template <
typename MajorEngineVersionT = Aws::String>
107 m_majorEngineVersionHasBeenSet =
true;
108 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
110 template <
typename MajorEngineVersionT = Aws::String>
124 template <
typename CacheUsageLimitsT = CacheUsageLimits>
126 m_cacheUsageLimitsHasBeenSet =
true;
127 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
129 template <
typename CacheUsageLimitsT = CacheUsageLimits>
143 template <
typename KmsKeyIdT = Aws::String>
145 m_kmsKeyIdHasBeenSet =
true;
146 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
148 template <
typename KmsKeyIdT = Aws::String>
165 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
167 m_securityGroupIdsHasBeenSet =
true;
168 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
170 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
175 template <
typename SecurityGroupIdsT = Aws::String>
177 m_securityGroupIdsHasBeenSet =
true;
178 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
190 template <
typename SnapshotArnsToRestoreT = Aws::Vector<Aws::String>>
192 m_snapshotArnsToRestoreHasBeenSet =
true;
193 m_snapshotArnsToRestore = std::forward<SnapshotArnsToRestoreT>(value);
195 template <
typename SnapshotArnsToRestoreT = Aws::Vector<Aws::String>>
200 template <
typename SnapshotArnsToRestoreT = Aws::String>
202 m_snapshotArnsToRestoreHasBeenSet =
true;
203 m_snapshotArnsToRestore.emplace_back(std::forward<SnapshotArnsToRestoreT>(value));
215 template <
typename TagsT = Aws::Vector<Tag>>
217 m_tagsHasBeenSet =
true;
218 m_tags = std::forward<TagsT>(value);
220 template <
typename TagsT = Aws::Vector<Tag>>
222 SetTags(std::forward<TagsT>(value));
225 template <
typename TagsT = Tag>
227 m_tagsHasBeenSet =
true;
228 m_tags.emplace_back(std::forward<TagsT>(value));
240 template <
typename UserGroupIdT = Aws::String>
242 m_userGroupIdHasBeenSet =
true;
243 m_userGroupId = std::forward<UserGroupIdT>(value);
245 template <
typename UserGroupIdT = Aws::String>
260 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
262 m_subnetIdsHasBeenSet =
true;
263 m_subnetIds = std::forward<SubnetIdsT>(value);
265 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
270 template <
typename SubnetIdsT = Aws::String>
272 m_subnetIdsHasBeenSet =
true;
273 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
287 m_snapshotRetentionLimitHasBeenSet =
true;
288 m_snapshotRetentionLimit = value;
305 template <
typename DailySnapshotTimeT = Aws::String>
307 m_dailySnapshotTimeHasBeenSet =
true;
308 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
310 template <
typename DailySnapshotTimeT = Aws::String>
328 m_networkTypeHasBeenSet =
true;
329 m_networkType = value;
349 m_connectionTypeHasBeenSet =
true;
350 m_connectionType = value;
380 int m_snapshotRetentionLimit{0};
387 bool m_serverlessCacheNameHasBeenSet =
false;
388 bool m_descriptionHasBeenSet =
false;
389 bool m_engineHasBeenSet =
false;
390 bool m_majorEngineVersionHasBeenSet =
false;
391 bool m_cacheUsageLimitsHasBeenSet =
false;
392 bool m_kmsKeyIdHasBeenSet =
false;
393 bool m_securityGroupIdsHasBeenSet =
false;
394 bool m_snapshotArnsToRestoreHasBeenSet =
false;
395 bool m_tagsHasBeenSet =
false;
396 bool m_userGroupIdHasBeenSet =
false;
397 bool m_subnetIdsHasBeenSet =
false;
398 bool m_snapshotRetentionLimitHasBeenSet =
false;
399 bool m_dailySnapshotTimeHasBeenSet =
false;
400 bool m_networkTypeHasBeenSet =
false;
401 bool m_connectionTypeHasBeenSet =
false;
void SetDescription(DescriptionT &&value)
void SetEngine(EngineT &&value)
const Aws::String & GetUserGroupId() const
ConnectionType GetConnectionType() 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
void SetConnectionType(ConnectionType value)
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)
CreateServerlessCacheRequest & WithConnectionType(ConnectionType 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)
bool ConnectionTypeHasBeenSet() const
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