AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
52 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
53 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
54 inline NodeSnapshot& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
55 inline NodeSnapshot& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
56 inline NodeSnapshot& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
58
60
63 inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
64 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
65 inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
66 inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
67 inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
68 inline NodeSnapshot& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
69 inline NodeSnapshot& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
70 inline NodeSnapshot& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
72
74
77 inline const Aws::String& GetCacheNodeId() const{ return m_cacheNodeId; }
78 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
79 inline void SetCacheNodeId(const Aws::String& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
80 inline void SetCacheNodeId(Aws::String&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = std::move(value); }
81 inline void SetCacheNodeId(const char* value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId.assign(value); }
82 inline NodeSnapshot& WithCacheNodeId(const Aws::String& value) { SetCacheNodeId(value); return *this;}
83 inline NodeSnapshot& WithCacheNodeId(Aws::String&& value) { SetCacheNodeId(std::move(value)); return *this;}
84 inline NodeSnapshot& WithCacheNodeId(const char* value) { SetCacheNodeId(value); return *this;}
86
88
91 inline const NodeGroupConfiguration& GetNodeGroupConfiguration() const{ return m_nodeGroupConfiguration; }
92 inline bool NodeGroupConfigurationHasBeenSet() const { return m_nodeGroupConfigurationHasBeenSet; }
93 inline void SetNodeGroupConfiguration(const NodeGroupConfiguration& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration = value; }
94 inline void SetNodeGroupConfiguration(NodeGroupConfiguration&& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration = std::move(value); }
98
100
103 inline const Aws::String& GetCacheSize() const{ return m_cacheSize; }
104 inline bool CacheSizeHasBeenSet() const { return m_cacheSizeHasBeenSet; }
105 inline void SetCacheSize(const Aws::String& value) { m_cacheSizeHasBeenSet = true; m_cacheSize = value; }
106 inline void SetCacheSize(Aws::String&& value) { m_cacheSizeHasBeenSet = true; m_cacheSize = std::move(value); }
107 inline void SetCacheSize(const char* value) { m_cacheSizeHasBeenSet = true; m_cacheSize.assign(value); }
108 inline NodeSnapshot& WithCacheSize(const Aws::String& value) { SetCacheSize(value); return *this;}
109 inline NodeSnapshot& WithCacheSize(Aws::String&& value) { SetCacheSize(std::move(value)); return *this;}
110 inline NodeSnapshot& WithCacheSize(const char* value) { SetCacheSize(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const{ return m_cacheNodeCreateTime; }
118 inline bool CacheNodeCreateTimeHasBeenSet() const { return m_cacheNodeCreateTimeHasBeenSet; }
119 inline void SetCacheNodeCreateTime(const Aws::Utils::DateTime& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = value; }
120 inline void SetCacheNodeCreateTime(Aws::Utils::DateTime&& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = std::move(value); }
122 inline NodeSnapshot& WithCacheNodeCreateTime(Aws::Utils::DateTime&& value) { SetCacheNodeCreateTime(std::move(value)); return *this;}
124
126
130 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const{ return m_snapshotCreateTime; }
131 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
132 inline void SetSnapshotCreateTime(const Aws::Utils::DateTime& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
133 inline void SetSnapshotCreateTime(Aws::Utils::DateTime&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::move(value); }
135 inline NodeSnapshot& WithSnapshotCreateTime(Aws::Utils::DateTime&& value) { SetSnapshotCreateTime(std::move(value)); return *this;}
137 private:
138
139 Aws::String m_cacheClusterId;
140 bool m_cacheClusterIdHasBeenSet = false;
141
142 Aws::String m_nodeGroupId;
143 bool m_nodeGroupIdHasBeenSet = false;
144
145 Aws::String m_cacheNodeId;
146 bool m_cacheNodeIdHasBeenSet = false;
147
148 NodeGroupConfiguration m_nodeGroupConfiguration;
149 bool m_nodeGroupConfigurationHasBeenSet = false;
150
151 Aws::String m_cacheSize;
152 bool m_cacheSizeHasBeenSet = false;
153
154 Aws::Utils::DateTime m_cacheNodeCreateTime;
155 bool m_cacheNodeCreateTimeHasBeenSet = false;
156
157 Aws::Utils::DateTime m_snapshotCreateTime;
158 bool m_snapshotCreateTimeHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ElastiCache
163} // namespace Aws
NodeSnapshot & WithCacheClusterId(const Aws::String &value)
void SetCacheSize(const Aws::String &value)
NodeSnapshot & WithCacheNodeCreateTime(Aws::Utils::DateTime &&value)
void SetSnapshotCreateTime(const Aws::Utils::DateTime &value)
void SetNodeGroupId(const Aws::String &value)
NodeSnapshot & WithNodeGroupConfiguration(const NodeGroupConfiguration &value)
AWS_ELASTICACHE_API NodeSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const NodeGroupConfiguration & GetNodeGroupConfiguration() const
void SetCacheSize(Aws::String &&value)
NodeSnapshot & WithCacheNodeCreateTime(const Aws::Utils::DateTime &value)
void SetCacheClusterId(const char *value)
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
void SetNodeGroupId(Aws::String &&value)
void SetNodeGroupId(const char *value)
NodeSnapshot & WithNodeGroupConfiguration(NodeGroupConfiguration &&value)
void SetSnapshotCreateTime(Aws::Utils::DateTime &&value)
NodeSnapshot & WithCacheSize(const char *value)
NodeSnapshot & WithCacheNodeId(const char *value)
NodeSnapshot & WithNodeGroupId(const char *value)
void SetNodeGroupConfiguration(const NodeGroupConfiguration &value)
NodeSnapshot & WithNodeGroupId(Aws::String &&value)
void SetCacheSize(const char *value)
NodeSnapshot & WithCacheClusterId(Aws::String &&value)
NodeSnapshot & WithCacheNodeId(Aws::String &&value)
NodeSnapshot & WithCacheSize(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCacheNodeId(const Aws::String &value)
void SetCacheNodeCreateTime(const Aws::Utils::DateTime &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 SetCacheClusterId(Aws::String &&value)
NodeSnapshot & WithNodeGroupId(const Aws::String &value)
NodeSnapshot & WithSnapshotCreateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
NodeSnapshot & WithCacheSize(const Aws::String &value)
const Aws::String & GetNodeGroupId() const
void SetCacheClusterId(const Aws::String &value)
void SetCacheNodeId(Aws::String &&value)
NodeSnapshot & WithSnapshotCreateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetCacheNodeId() const
void SetCacheNodeId(const char *value)
NodeSnapshot & WithCacheNodeId(const Aws::String &value)
void SetCacheNodeCreateTime(Aws::Utils::DateTime &&value)
void SetNodeGroupConfiguration(NodeGroupConfiguration &&value)
AWS_ELASTICACHE_API NodeSnapshot()
NodeSnapshot & WithCacheClusterId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream