7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/ElastiCache_EXPORTS.h>
12#include <aws/elasticache/model/AutomaticFailoverStatus.h>
13#include <aws/elasticache/model/DataTieringStatus.h>
14#include <aws/elasticache/model/NodeSnapshot.h>
24namespace ElastiCache {
49 template <
typename SnapshotNameT = Aws::String>
51 m_snapshotNameHasBeenSet =
true;
52 m_snapshotName = std::forward<SnapshotNameT>(value);
54 template <
typename SnapshotNameT = Aws::String>
67 template <
typename ReplicationGroupIdT = Aws::String>
69 m_replicationGroupIdHasBeenSet =
true;
70 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
72 template <
typename ReplicationGroupIdT = Aws::String>
85 template <
typename ReplicationGroupDescriptionT = Aws::String>
87 m_replicationGroupDescriptionHasBeenSet =
true;
88 m_replicationGroupDescription = std::forward<ReplicationGroupDescriptionT>(value);
90 template <
typename ReplicationGroupDescriptionT = Aws::String>
103 template <
typename CacheClusterIdT = Aws::String>
105 m_cacheClusterIdHasBeenSet =
true;
106 m_cacheClusterId = std::forward<CacheClusterIdT>(value);
108 template <
typename CacheClusterIdT = Aws::String>
123 template <
typename SnapshotStatusT = Aws::String>
125 m_snapshotStatusHasBeenSet =
true;
126 m_snapshotStatus = std::forward<SnapshotStatusT>(value);
128 template <
typename SnapshotStatusT = Aws::String>
142 template <
typename SnapshotSourceT = Aws::String>
144 m_snapshotSourceHasBeenSet =
true;
145 m_snapshotSource = std::forward<SnapshotSourceT>(value);
147 template <
typename SnapshotSourceT = Aws::String>
232 template <
typename CacheNodeTypeT = Aws::String>
234 m_cacheNodeTypeHasBeenSet =
true;
235 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
237 template <
typename CacheNodeTypeT = Aws::String>
251 template <
typename EngineT = Aws::String>
253 m_engineHasBeenSet =
true;
254 m_engine = std::forward<EngineT>(value);
256 template <
typename EngineT = Aws::String>
270 template <
typename EngineVersionT = Aws::String>
272 m_engineVersionHasBeenSet =
true;
273 m_engineVersion = std::forward<EngineVersionT>(value);
275 template <
typename EngineVersionT = Aws::String>
291 m_numCacheNodesHasBeenSet =
true;
292 m_numCacheNodes = value;
306 template <
typename PreferredAvailabilityZoneT = Aws::String>
308 m_preferredAvailabilityZoneHasBeenSet =
true;
309 m_preferredAvailabilityZone = std::forward<PreferredAvailabilityZoneT>(value);
311 template <
typename PreferredAvailabilityZoneT = Aws::String>
324 template <
typename PreferredOutpostArnT = Aws::String>
326 m_preferredOutpostArnHasBeenSet =
true;
327 m_preferredOutpostArn = std::forward<PreferredOutpostArnT>(value);
329 template <
typename PreferredOutpostArnT = Aws::String>
342 template <
typename CacheClusterCreateTimeT = Aws::Utils::DateTime>
344 m_cacheClusterCreateTimeHasBeenSet =
true;
345 m_cacheClusterCreateTime = std::forward<CacheClusterCreateTimeT>(value);
347 template <
typename CacheClusterCreateTimeT = Aws::Utils::DateTime>
367 template <
typename PreferredMa
intenanceWindowT = Aws::String>
369 m_preferredMaintenanceWindowHasBeenSet =
true;
370 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
372 template <
typename PreferredMa
intenanceWindowT = Aws::String>
386 template <
typename TopicArnT = Aws::String>
388 m_topicArnHasBeenSet =
true;
389 m_topicArn = std::forward<TopicArnT>(value);
391 template <
typename TopicArnT = Aws::String>
405 m_portHasBeenSet =
true;
420 template <
typename CacheParameterGroupNameT = Aws::String>
422 m_cacheParameterGroupNameHasBeenSet =
true;
423 m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value);
425 template <
typename CacheParameterGroupNameT = Aws::String>
438 template <
typename CacheSubnetGroupNameT = Aws::String>
440 m_cacheSubnetGroupNameHasBeenSet =
true;
441 m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value);
443 template <
typename CacheSubnetGroupNameT = Aws::String>
457 template <
typename VpcIdT = Aws::String>
459 m_vpcIdHasBeenSet =
true;
460 m_vpcId = std::forward<VpcIdT>(value);
462 template <
typename VpcIdT = Aws::String>
464 SetVpcId(std::forward<VpcIdT>(value));
479 m_autoMinorVersionUpgradeHasBeenSet =
true;
480 m_autoMinorVersionUpgrade = value;
501 m_snapshotRetentionLimitHasBeenSet =
true;
502 m_snapshotRetentionLimit = value;
517 template <
typename SnapshotWindowT = Aws::String>
519 m_snapshotWindowHasBeenSet =
true;
520 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
522 template <
typename SnapshotWindowT = Aws::String>
538 m_numNodeGroupsHasBeenSet =
true;
539 m_numNodeGroups = value;
555 m_automaticFailoverHasBeenSet =
true;
556 m_automaticFailover = value;
570 template <
typename NodeSnapshotsT = Aws::Vector<NodeSnapshot>>
572 m_nodeSnapshotsHasBeenSet =
true;
573 m_nodeSnapshots = std::forward<NodeSnapshotsT>(value);
575 template <
typename NodeSnapshotsT = Aws::Vector<NodeSnapshot>>
580 template <
typename NodeSnapshotsT = NodeSnapshot>
582 m_nodeSnapshotsHasBeenSet =
true;
583 m_nodeSnapshots.emplace_back(std::forward<NodeSnapshotsT>(value));
594 template <
typename KmsKeyIdT = Aws::String>
596 m_kmsKeyIdHasBeenSet =
true;
597 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
599 template <
typename KmsKeyIdT = Aws::String>
612 template <
typename ARNT = Aws::String>
614 m_aRNHasBeenSet =
true;
615 m_aRN = std::forward<ARNT>(value);
617 template <
typename ARNT = Aws::String>
619 SetARN(std::forward<ARNT>(value));
635 m_dataTieringHasBeenSet =
true;
636 m_dataTiering = value;
662 int m_numCacheNodes{0};
682 bool m_autoMinorVersionUpgrade{
false};
684 int m_snapshotRetentionLimit{0};
688 int m_numNodeGroups{0};
699 bool m_snapshotNameHasBeenSet =
false;
700 bool m_replicationGroupIdHasBeenSet =
false;
701 bool m_replicationGroupDescriptionHasBeenSet =
false;
702 bool m_cacheClusterIdHasBeenSet =
false;
703 bool m_snapshotStatusHasBeenSet =
false;
704 bool m_snapshotSourceHasBeenSet =
false;
705 bool m_cacheNodeTypeHasBeenSet =
false;
706 bool m_engineHasBeenSet =
false;
707 bool m_engineVersionHasBeenSet =
false;
708 bool m_numCacheNodesHasBeenSet =
false;
709 bool m_preferredAvailabilityZoneHasBeenSet =
false;
710 bool m_preferredOutpostArnHasBeenSet =
false;
711 bool m_cacheClusterCreateTimeHasBeenSet =
false;
712 bool m_preferredMaintenanceWindowHasBeenSet =
false;
713 bool m_topicArnHasBeenSet =
false;
714 bool m_portHasBeenSet =
false;
715 bool m_cacheParameterGroupNameHasBeenSet =
false;
716 bool m_cacheSubnetGroupNameHasBeenSet =
false;
717 bool m_vpcIdHasBeenSet =
false;
718 bool m_autoMinorVersionUpgradeHasBeenSet =
false;
719 bool m_snapshotRetentionLimitHasBeenSet =
false;
720 bool m_snapshotWindowHasBeenSet =
false;
721 bool m_numNodeGroupsHasBeenSet =
false;
722 bool m_automaticFailoverHasBeenSet =
false;
723 bool m_nodeSnapshotsHasBeenSet =
false;
724 bool m_kmsKeyIdHasBeenSet =
false;
725 bool m_aRNHasBeenSet =
false;
726 bool m_dataTieringHasBeenSet =
false;
Snapshot & WithCacheNodeType(CacheNodeTypeT &&value)
const Aws::String & GetReplicationGroupId() const
const Aws::String & GetSnapshotSource() const
Snapshot & WithAutomaticFailover(AutomaticFailoverStatus value)
const Aws::String & GetCacheParameterGroupName() const
bool NumCacheNodesHasBeenSet() const
Snapshot & WithKmsKeyId(KmsKeyIdT &&value)
bool PortHasBeenSet() const
Snapshot & WithPort(int value)
Snapshot & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
bool CacheNodeTypeHasBeenSet() const
Snapshot & AddNodeSnapshots(NodeSnapshotsT &&value)
const Aws::String & GetVpcId() const
bool EngineHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReplicationGroupId(ReplicationGroupIdT &&value)
bool TopicArnHasBeenSet() const
const Aws::String & GetCacheSubnetGroupName() const
bool SnapshotSourceHasBeenSet() const
AWS_ELASTICACHE_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AutoMinorVersionUpgradeHasBeenSet() const
void SetEngineVersion(EngineVersionT &&value)
Snapshot & WithSnapshotStatus(SnapshotStatusT &&value)
bool CacheClusterIdHasBeenSet() const
bool CacheParameterGroupNameHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
const Aws::String & GetReplicationGroupDescription() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNumCacheNodes(int value)
void SetNodeSnapshots(NodeSnapshotsT &&value)
Snapshot & WithVpcId(VpcIdT &&value)
Snapshot & WithNumCacheNodes(int value)
const Aws::String & GetEngine() const
int GetNumCacheNodes() const
bool VpcIdHasBeenSet() const
Snapshot & WithCacheClusterCreateTime(CacheClusterCreateTimeT &&value)
bool GetAutoMinorVersionUpgrade() const
const Aws::String & GetSnapshotWindow() const
const Aws::String & GetTopicArn() const
void SetCacheParameterGroupName(CacheParameterGroupNameT &&value)
const Aws::String & GetCacheClusterId() const
void SetCacheClusterId(CacheClusterIdT &&value)
Snapshot & WithPreferredOutpostArn(PreferredOutpostArnT &&value)
const Aws::String & GetSnapshotStatus() const
const Aws::String & GetPreferredOutpostArn() const
void SetDataTiering(DataTieringStatus value)
void SetReplicationGroupDescription(ReplicationGroupDescriptionT &&value)
const Aws::String & GetPreferredAvailabilityZone() const
Snapshot & WithNumNodeGroups(int value)
AutomaticFailoverStatus GetAutomaticFailover() const
Snapshot & WithNodeSnapshots(NodeSnapshotsT &&value)
Snapshot & WithEngine(EngineT &&value)
int GetNumNodeGroups() const
void SetSnapshotWindow(SnapshotWindowT &&value)
void SetPreferredOutpostArn(PreferredOutpostArnT &&value)
const Aws::String & GetCacheNodeType() const
bool DataTieringHasBeenSet() const
void SetKmsKeyId(KmsKeyIdT &&value)
Snapshot & WithTopicArn(TopicArnT &&value)
void SetSnapshotRetentionLimit(int value)
bool PreferredAvailabilityZoneHasBeenSet() const
bool AutomaticFailoverHasBeenSet() const
void SetVpcId(VpcIdT &&value)
bool EngineVersionHasBeenSet() const
bool SnapshotRetentionLimitHasBeenSet() const
Snapshot & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
bool ARNHasBeenSet() const
Snapshot & WithSnapshotSource(SnapshotSourceT &&value)
void SetPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
void SetCacheNodeType(CacheNodeTypeT &&value)
bool NumNodeGroupsHasBeenSet() const
bool PreferredOutpostArnHasBeenSet() const
const Aws::String & GetARN() const
void SetEngine(EngineT &&value)
void SetCacheClusterCreateTime(CacheClusterCreateTimeT &&value)
Snapshot & WithEngineVersion(EngineVersionT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Snapshot & WithPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
Snapshot & WithReplicationGroupDescription(ReplicationGroupDescriptionT &&value)
int GetSnapshotRetentionLimit() const
Snapshot & WithReplicationGroupId(ReplicationGroupIdT &&value)
Snapshot & WithSnapshotWindow(SnapshotWindowT &&value)
bool SnapshotStatusHasBeenSet() const
void SetAutomaticFailover(AutomaticFailoverStatus value)
AWS_ELASTICACHE_API Snapshot()=default
const Aws::Vector< NodeSnapshot > & GetNodeSnapshots() const
bool CacheClusterCreateTimeHasBeenSet() const
bool ReplicationGroupIdHasBeenSet() const
void SetSnapshotSource(SnapshotSourceT &&value)
void SetNumNodeGroups(int value)
bool SnapshotWindowHasBeenSet() const
DataTieringStatus GetDataTiering() const
const Aws::String & GetPreferredMaintenanceWindow() const
const Aws::String & GetKmsKeyId() const
void SetARN(ARNT &&value)
void SetSnapshotStatus(SnapshotStatusT &&value)
bool CacheSubnetGroupNameHasBeenSet() const
Snapshot & WithARN(ARNT &&value)
Snapshot & WithDataTiering(DataTieringStatus value)
Snapshot & WithSnapshotName(SnapshotNameT &&value)
bool ReplicationGroupDescriptionHasBeenSet() const
AWS_ELASTICACHE_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Snapshot & WithSnapshotRetentionLimit(int value)
Snapshot & WithAutoMinorVersionUpgrade(bool value)
void SetAutoMinorVersionUpgrade(bool value)
void SetCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
bool NodeSnapshotsHasBeenSet() const
void SetTopicArn(TopicArnT &&value)
const Aws::String & GetEngineVersion() const
Snapshot & WithCacheClusterId(CacheClusterIdT &&value)
bool SnapshotNameHasBeenSet() const
void SetSnapshotName(SnapshotNameT &&value)
const Aws::String & GetSnapshotName() const
const Aws::Utils::DateTime & GetCacheClusterCreateTime() const
bool PreferredMaintenanceWindowHasBeenSet() const
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