7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/elasticache/model/CacheUsageLimits.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticache/model/Endpoint.h>
52 template<
typename ServerlessCacheNameT = Aws::String>
53 void SetServerlessCacheName(ServerlessCacheNameT&& value) { m_serverlessCacheNameHasBeenSet =
true; m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value); }
54 template<
typename ServerlessCacheNameT = Aws::String>
64 template<
typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
66 template<
typename DescriptionT = Aws::String>
76 template<
typename CreateTimeT = Aws::Utils::DateTime>
77 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
78 template<
typename CreateTimeT = Aws::Utils::DateTime>
89 template<
typename StatusT = Aws::String>
90 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
91 template<
typename StatusT = Aws::String>
101 template<
typename EngineT = Aws::String>
102 void SetEngine(EngineT&& value) { m_engineHasBeenSet =
true; m_engine = std::forward<EngineT>(value); }
103 template<
typename EngineT = Aws::String>
113 template<
typename MajorEngineVersionT = Aws::String>
114 void SetMajorEngineVersion(MajorEngineVersionT&& value) { m_majorEngineVersionHasBeenSet =
true; m_majorEngineVersion = std::forward<MajorEngineVersionT>(value); }
115 template<
typename MajorEngineVersionT = Aws::String>
126 template<
typename FullEngineVersionT = Aws::String>
127 void SetFullEngineVersion(FullEngineVersionT&& value) { m_fullEngineVersionHasBeenSet =
true; m_fullEngineVersion = std::forward<FullEngineVersionT>(value); }
128 template<
typename FullEngineVersionT = Aws::String>
138 template<
typename CacheUsageLimitsT = CacheUsageLimits>
139 void SetCacheUsageLimits(CacheUsageLimitsT&& value) { m_cacheUsageLimitsHasBeenSet =
true; m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value); }
140 template<
typename CacheUsageLimitsT = CacheUsageLimits>
151 template<
typename KmsKeyIdT = Aws::String>
152 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
153 template<
typename KmsKeyIdT = Aws::String>
163 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
164 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
165 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
167 template<
typename SecurityGroupIdsT = Aws::String>
168 ServerlessCache&
AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
return *
this; }
175 template<
typename Endpo
intT = Endpo
int>
176 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet =
true; m_endpoint = std::forward<EndpointT>(value); }
177 template<
typename Endpo
intT = Endpo
int>
185 template<
typename ReaderEndpo
intT = Endpo
int>
186 void SetReaderEndpoint(ReaderEndpointT&& value) { m_readerEndpointHasBeenSet =
true; m_readerEndpoint = std::forward<ReaderEndpointT>(value); }
187 template<
typename ReaderEndpo
intT = Endpo
int>
197 template<
typename ARNT = Aws::String>
198 void SetARN(ARNT&& value) { m_aRNHasBeenSet =
true; m_aRN = std::forward<ARNT>(value); }
199 template<
typename ARNT = Aws::String>
210 template<
typename UserGroupIdT = Aws::String>
211 void SetUserGroupId(UserGroupIdT&& value) { m_userGroupIdHasBeenSet =
true; m_userGroupId = std::forward<UserGroupIdT>(value); }
212 template<
typename UserGroupIdT = Aws::String>
225 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
226 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet =
true; m_subnetIds = std::forward<SubnetIdsT>(value); }
227 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
229 template<
typename SubnetIdsT = Aws::String>
230 ServerlessCache&
AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet =
true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
return *
this; }
252 template<
typename DailySnapshotTimeT = Aws::String>
253 void SetDailySnapshotTime(DailySnapshotTimeT&& value) { m_dailySnapshotTimeHasBeenSet =
true; m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value); }
254 template<
typename DailySnapshotTimeT = Aws::String>
260 bool m_serverlessCacheNameHasBeenSet =
false;
263 bool m_descriptionHasBeenSet =
false;
266 bool m_createTimeHasBeenSet =
false;
269 bool m_statusHasBeenSet =
false;
272 bool m_engineHasBeenSet =
false;
275 bool m_majorEngineVersionHasBeenSet =
false;
278 bool m_fullEngineVersionHasBeenSet =
false;
280 CacheUsageLimits m_cacheUsageLimits;
281 bool m_cacheUsageLimitsHasBeenSet =
false;
284 bool m_kmsKeyIdHasBeenSet =
false;
287 bool m_securityGroupIdsHasBeenSet =
false;
290 bool m_endpointHasBeenSet =
false;
292 Endpoint m_readerEndpoint;
293 bool m_readerEndpointHasBeenSet =
false;
296 bool m_aRNHasBeenSet =
false;
299 bool m_userGroupIdHasBeenSet =
false;
302 bool m_subnetIdsHasBeenSet =
false;
304 int m_snapshotRetentionLimit{0};
305 bool m_snapshotRetentionLimitHasBeenSet =
false;
308 bool m_dailySnapshotTimeHasBeenSet =
false;
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetCacheUsageLimits(CacheUsageLimitsT &&value)
ServerlessCache & WithServerlessCacheName(ServerlessCacheNameT &&value)
AWS_ELASTICACHE_API ServerlessCache()=default
ServerlessCache & WithEndpoint(EndpointT &&value)
const Aws::String & GetDescription() const
bool SubnetIdsHasBeenSet() const
ServerlessCache & WithARN(ARNT &&value)
ServerlessCache & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetDailySnapshotTime(DailySnapshotTimeT &&value)
bool EngineHasBeenSet() const
AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCache & WithReaderEndpoint(ReaderEndpointT &&value)
void SetMajorEngineVersion(MajorEngineVersionT &&value)
void SetSubnetIds(SubnetIdsT &&value)
ServerlessCache & WithDailySnapshotTime(DailySnapshotTimeT &&value)
ServerlessCache & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::String & GetEngine() const
void SetCreateTime(CreateTimeT &&value)
void SetUserGroupId(UserGroupIdT &&value)
bool EndpointHasBeenSet() const
ServerlessCache & AddSubnetIds(SubnetIdsT &&value)
ServerlessCache & WithKmsKeyId(KmsKeyIdT &&value)
const Endpoint & GetEndpoint() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
int GetSnapshotRetentionLimit() const
const Aws::String & GetARN() const
const CacheUsageLimits & GetCacheUsageLimits() const
bool CreateTimeHasBeenSet() const
ServerlessCache & WithEngine(EngineT &&value)
bool DescriptionHasBeenSet() const
ServerlessCache & WithDescription(DescriptionT &&value)
bool DailySnapshotTimeHasBeenSet() const
ServerlessCache & WithSnapshotRetentionLimit(int value)
bool CacheUsageLimitsHasBeenSet() const
AWS_ELASTICACHE_API ServerlessCache & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKmsKeyId(KmsKeyIdT &&value)
bool FullEngineVersionHasBeenSet() const
const Aws::String & GetServerlessCacheName() const
bool ServerlessCacheNameHasBeenSet() const
ServerlessCache & WithCacheUsageLimits(CacheUsageLimitsT &&value)
ServerlessCache & WithUserGroupId(UserGroupIdT &&value)
ServerlessCache & WithFullEngineVersion(FullEngineVersionT &&value)
bool UserGroupIdHasBeenSet() const
ServerlessCache & WithMajorEngineVersion(MajorEngineVersionT &&value)
bool ReaderEndpointHasBeenSet() const
ServerlessCache & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetEndpoint(EndpointT &&value)
void SetSnapshotRetentionLimit(int value)
const Aws::String & GetDailySnapshotTime() const
void SetFullEngineVersion(FullEngineVersionT &&value)
const Aws::String & GetFullEngineVersion() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetKmsKeyId() const
void SetStatus(StatusT &&value)
void SetServerlessCacheName(ServerlessCacheNameT &&value)
const Aws::String & GetUserGroupId() const
const Endpoint & GetReaderEndpoint() const
bool SecurityGroupIdsHasBeenSet() const
void SetEngine(EngineT &&value)
bool SnapshotRetentionLimitHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool StatusHasBeenSet() const
const Aws::String & GetMajorEngineVersion() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetReaderEndpoint(ReaderEndpointT &&value)
bool MajorEngineVersionHasBeenSet() const
bool ARNHasBeenSet() const
ServerlessCache & WithSubnetIds(SubnetIdsT &&value)
bool KmsKeyIdHasBeenSet() const
const Aws::String & GetStatus() const
ServerlessCache & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetARN(ARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream