AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NodeSnapshot.h
1
6#pragma once
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/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/NodeGroupConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache {
22namespace Model {
23
31 public:
32 AWS_ELASTICACHE_API NodeSnapshot() = default;
33 AWS_ELASTICACHE_API NodeSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICACHE_API NodeSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetCacheClusterId() const { return m_cacheClusterId; }
44 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
45 template <typename CacheClusterIdT = Aws::String>
46 void SetCacheClusterId(CacheClusterIdT&& value) {
47 m_cacheClusterIdHasBeenSet = true;
48 m_cacheClusterId = std::forward<CacheClusterIdT>(value);
49 }
50 template <typename CacheClusterIdT = Aws::String>
51 NodeSnapshot& WithCacheClusterId(CacheClusterIdT&& value) {
52 SetCacheClusterId(std::forward<CacheClusterIdT>(value));
53 return *this;
54 }
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) {
65 m_nodeGroupIdHasBeenSet = true;
66 m_nodeGroupId = std::forward<NodeGroupIdT>(value);
67 }
68 template <typename NodeGroupIdT = Aws::String>
69 NodeSnapshot& WithNodeGroupId(NodeGroupIdT&& value) {
70 SetNodeGroupId(std::forward<NodeGroupIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
80 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
81 template <typename CacheNodeIdT = Aws::String>
82 void SetCacheNodeId(CacheNodeIdT&& value) {
83 m_cacheNodeIdHasBeenSet = true;
84 m_cacheNodeId = std::forward<CacheNodeIdT>(value);
85 }
86 template <typename CacheNodeIdT = Aws::String>
87 NodeSnapshot& WithCacheNodeId(CacheNodeIdT&& value) {
88 SetCacheNodeId(std::forward<CacheNodeIdT>(value));
89 return *this;
90 }
92
94
97 inline const NodeGroupConfiguration& GetNodeGroupConfiguration() const { return m_nodeGroupConfiguration; }
98 inline bool NodeGroupConfigurationHasBeenSet() const { return m_nodeGroupConfigurationHasBeenSet; }
99 template <typename NodeGroupConfigurationT = NodeGroupConfiguration>
100 void SetNodeGroupConfiguration(NodeGroupConfigurationT&& value) {
101 m_nodeGroupConfigurationHasBeenSet = true;
102 m_nodeGroupConfiguration = std::forward<NodeGroupConfigurationT>(value);
103 }
104 template <typename NodeGroupConfigurationT = NodeGroupConfiguration>
105 NodeSnapshot& WithNodeGroupConfiguration(NodeGroupConfigurationT&& value) {
106 SetNodeGroupConfiguration(std::forward<NodeGroupConfigurationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetCacheSize() const { return m_cacheSize; }
116 inline bool CacheSizeHasBeenSet() const { return m_cacheSizeHasBeenSet; }
117 template <typename CacheSizeT = Aws::String>
118 void SetCacheSize(CacheSizeT&& value) {
119 m_cacheSizeHasBeenSet = true;
120 m_cacheSize = std::forward<CacheSizeT>(value);
121 }
122 template <typename CacheSizeT = Aws::String>
123 NodeSnapshot& WithCacheSize(CacheSizeT&& value) {
124 SetCacheSize(std::forward<CacheSizeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const { return m_cacheNodeCreateTime; }
134 inline bool CacheNodeCreateTimeHasBeenSet() const { return m_cacheNodeCreateTimeHasBeenSet; }
135 template <typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
136 void SetCacheNodeCreateTime(CacheNodeCreateTimeT&& value) {
137 m_cacheNodeCreateTimeHasBeenSet = true;
138 m_cacheNodeCreateTime = std::forward<CacheNodeCreateTimeT>(value);
139 }
140 template <typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
141 NodeSnapshot& WithCacheNodeCreateTime(CacheNodeCreateTimeT&& value) {
142 SetCacheNodeCreateTime(std::forward<CacheNodeCreateTimeT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
153 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
154 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
155 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
156 m_snapshotCreateTimeHasBeenSet = true;
157 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
158 }
159 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
160 NodeSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
161 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_cacheClusterId;
167
168 Aws::String m_nodeGroupId;
169
170 Aws::String m_cacheNodeId;
171
172 NodeGroupConfiguration m_nodeGroupConfiguration;
173
174 Aws::String m_cacheSize;
175
176 Aws::Utils::DateTime m_cacheNodeCreateTime{};
177
178 Aws::Utils::DateTime m_snapshotCreateTime{};
179 bool m_cacheClusterIdHasBeenSet = false;
180 bool m_nodeGroupIdHasBeenSet = false;
181 bool m_cacheNodeIdHasBeenSet = false;
182 bool m_nodeGroupConfigurationHasBeenSet = false;
183 bool m_cacheSizeHasBeenSet = false;
184 bool m_cacheNodeCreateTimeHasBeenSet = false;
185 bool m_snapshotCreateTimeHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace ElastiCache
190} // 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