AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeSnapshot.h
1
6#pragma once
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/elasticache/model/NodeGroupConfiguration.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICACHE_API NodeSnapshot() = default;
38 AWS_ELASTICACHE_API NodeSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API NodeSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetCacheClusterId() const { return m_cacheClusterId; }
50 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
51 template<typename CacheClusterIdT = Aws::String>
52 void SetCacheClusterId(CacheClusterIdT&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::forward<CacheClusterIdT>(value); }
53 template<typename CacheClusterIdT = Aws::String>
54 NodeSnapshot& WithCacheClusterId(CacheClusterIdT&& value) { SetCacheClusterId(std::forward<CacheClusterIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetNodeGroupId() const { return m_nodeGroupId; }
62 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
63 template<typename NodeGroupIdT = Aws::String>
64 void SetNodeGroupId(NodeGroupIdT&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::forward<NodeGroupIdT>(value); }
65 template<typename NodeGroupIdT = Aws::String>
66 NodeSnapshot& WithNodeGroupId(NodeGroupIdT&& value) { SetNodeGroupId(std::forward<NodeGroupIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
74 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
75 template<typename CacheNodeIdT = Aws::String>
76 void SetCacheNodeId(CacheNodeIdT&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = std::forward<CacheNodeIdT>(value); }
77 template<typename CacheNodeIdT = Aws::String>
78 NodeSnapshot& WithCacheNodeId(CacheNodeIdT&& value) { SetCacheNodeId(std::forward<CacheNodeIdT>(value)); return *this;}
80
82
85 inline const NodeGroupConfiguration& GetNodeGroupConfiguration() const { return m_nodeGroupConfiguration; }
86 inline bool NodeGroupConfigurationHasBeenSet() const { return m_nodeGroupConfigurationHasBeenSet; }
87 template<typename NodeGroupConfigurationT = NodeGroupConfiguration>
88 void SetNodeGroupConfiguration(NodeGroupConfigurationT&& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration = std::forward<NodeGroupConfigurationT>(value); }
89 template<typename NodeGroupConfigurationT = NodeGroupConfiguration>
90 NodeSnapshot& WithNodeGroupConfiguration(NodeGroupConfigurationT&& value) { SetNodeGroupConfiguration(std::forward<NodeGroupConfigurationT>(value)); return *this;}
92
94
97 inline const Aws::String& GetCacheSize() const { return m_cacheSize; }
98 inline bool CacheSizeHasBeenSet() const { return m_cacheSizeHasBeenSet; }
99 template<typename CacheSizeT = Aws::String>
100 void SetCacheSize(CacheSizeT&& value) { m_cacheSizeHasBeenSet = true; m_cacheSize = std::forward<CacheSizeT>(value); }
101 template<typename CacheSizeT = Aws::String>
102 NodeSnapshot& WithCacheSize(CacheSizeT&& value) { SetCacheSize(std::forward<CacheSizeT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const { return m_cacheNodeCreateTime; }
110 inline bool CacheNodeCreateTimeHasBeenSet() const { return m_cacheNodeCreateTimeHasBeenSet; }
111 template<typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
112 void SetCacheNodeCreateTime(CacheNodeCreateTimeT&& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = std::forward<CacheNodeCreateTimeT>(value); }
113 template<typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
114 NodeSnapshot& WithCacheNodeCreateTime(CacheNodeCreateTimeT&& value) { SetCacheNodeCreateTime(std::forward<CacheNodeCreateTimeT>(value)); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
123 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
124 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
125 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value); }
126 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
127 NodeSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) { SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value)); return *this;}
129 private:
130
131 Aws::String m_cacheClusterId;
132 bool m_cacheClusterIdHasBeenSet = false;
133
134 Aws::String m_nodeGroupId;
135 bool m_nodeGroupIdHasBeenSet = false;
136
137 Aws::String m_cacheNodeId;
138 bool m_cacheNodeIdHasBeenSet = false;
139
140 NodeGroupConfiguration m_nodeGroupConfiguration;
141 bool m_nodeGroupConfigurationHasBeenSet = false;
142
143 Aws::String m_cacheSize;
144 bool m_cacheSizeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_cacheNodeCreateTime{};
147 bool m_cacheNodeCreateTimeHasBeenSet = false;
148
149 Aws::Utils::DateTime m_snapshotCreateTime{};
150 bool m_snapshotCreateTimeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace ElastiCache
155} // namespace Aws
NodeSnapshot & WithCacheSize(CacheSizeT &&value)
AWS_ELASTICACHE_API NodeSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const NodeGroupConfiguration & GetNodeGroupConfiguration() const
AWS_ELASTICACHE_API NodeSnapshot()=default
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
void SetCacheSize(CacheSizeT &&value)
void SetNodeGroupId(NodeGroupIdT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NodeSnapshot & WithCacheNodeId(CacheNodeIdT &&value)
const Aws::String & GetCacheClusterId() const
AWS_ELASTICACHE_API NodeSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCacheSize() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCacheNodeId(CacheNodeIdT &&value)
NodeSnapshot & WithCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
void SetCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
void SetCacheClusterId(CacheClusterIdT &&value)
NodeSnapshot & WithNodeGroupConfiguration(NodeGroupConfigurationT &&value)
NodeSnapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
const Aws::String & GetNodeGroupId() const
const Aws::String & GetCacheNodeId() const
void SetNodeGroupConfiguration(NodeGroupConfigurationT &&value)
NodeSnapshot & WithCacheClusterId(CacheClusterIdT &&value)
NodeSnapshot & WithNodeGroupId(NodeGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream