AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CacheNode.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/Endpoint.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
103 public:
104 AWS_ELASTICACHE_API CacheNode() = default;
105 AWS_ELASTICACHE_API CacheNode(const Aws::Utils::Xml::XmlNode& xmlNode);
106 AWS_ELASTICACHE_API CacheNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
107
108 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
109 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
110
112
117 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
118 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
119 template <typename CacheNodeIdT = Aws::String>
120 void SetCacheNodeId(CacheNodeIdT&& value) {
121 m_cacheNodeIdHasBeenSet = true;
122 m_cacheNodeId = std::forward<CacheNodeIdT>(value);
123 }
124 template <typename CacheNodeIdT = Aws::String>
125 CacheNode& WithCacheNodeId(CacheNodeIdT&& value) {
126 SetCacheNodeId(std::forward<CacheNodeIdT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::String& GetCacheNodeStatus() const { return m_cacheNodeStatus; }
138 inline bool CacheNodeStatusHasBeenSet() const { return m_cacheNodeStatusHasBeenSet; }
139 template <typename CacheNodeStatusT = Aws::String>
140 void SetCacheNodeStatus(CacheNodeStatusT&& value) {
141 m_cacheNodeStatusHasBeenSet = true;
142 m_cacheNodeStatus = std::forward<CacheNodeStatusT>(value);
143 }
144 template <typename CacheNodeStatusT = Aws::String>
145 CacheNode& WithCacheNodeStatus(CacheNodeStatusT&& value) {
146 SetCacheNodeStatus(std::forward<CacheNodeStatusT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const { return m_cacheNodeCreateTime; }
156 inline bool CacheNodeCreateTimeHasBeenSet() const { return m_cacheNodeCreateTimeHasBeenSet; }
157 template <typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
158 void SetCacheNodeCreateTime(CacheNodeCreateTimeT&& value) {
159 m_cacheNodeCreateTimeHasBeenSet = true;
160 m_cacheNodeCreateTime = std::forward<CacheNodeCreateTimeT>(value);
161 }
162 template <typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
163 CacheNode& WithCacheNodeCreateTime(CacheNodeCreateTimeT&& value) {
164 SetCacheNodeCreateTime(std::forward<CacheNodeCreateTimeT>(value));
165 return *this;
166 }
168
170
173 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
174 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
175 template <typename EndpointT = Endpoint>
176 void SetEndpoint(EndpointT&& value) {
177 m_endpointHasBeenSet = true;
178 m_endpoint = std::forward<EndpointT>(value);
179 }
180 template <typename EndpointT = Endpoint>
181 CacheNode& WithEndpoint(EndpointT&& value) {
182 SetEndpoint(std::forward<EndpointT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetParameterGroupStatus() const { return m_parameterGroupStatus; }
192 inline bool ParameterGroupStatusHasBeenSet() const { return m_parameterGroupStatusHasBeenSet; }
193 template <typename ParameterGroupStatusT = Aws::String>
194 void SetParameterGroupStatus(ParameterGroupStatusT&& value) {
195 m_parameterGroupStatusHasBeenSet = true;
196 m_parameterGroupStatus = std::forward<ParameterGroupStatusT>(value);
197 }
198 template <typename ParameterGroupStatusT = Aws::String>
199 CacheNode& WithParameterGroupStatus(ParameterGroupStatusT&& value) {
200 SetParameterGroupStatus(std::forward<ParameterGroupStatusT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetSourceCacheNodeId() const { return m_sourceCacheNodeId; }
211 inline bool SourceCacheNodeIdHasBeenSet() const { return m_sourceCacheNodeIdHasBeenSet; }
212 template <typename SourceCacheNodeIdT = Aws::String>
213 void SetSourceCacheNodeId(SourceCacheNodeIdT&& value) {
214 m_sourceCacheNodeIdHasBeenSet = true;
215 m_sourceCacheNodeId = std::forward<SourceCacheNodeIdT>(value);
216 }
217 template <typename SourceCacheNodeIdT = Aws::String>
218 CacheNode& WithSourceCacheNodeId(SourceCacheNodeIdT&& value) {
219 SetSourceCacheNodeId(std::forward<SourceCacheNodeIdT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetCustomerAvailabilityZone() const { return m_customerAvailabilityZone; }
229 inline bool CustomerAvailabilityZoneHasBeenSet() const { return m_customerAvailabilityZoneHasBeenSet; }
230 template <typename CustomerAvailabilityZoneT = Aws::String>
231 void SetCustomerAvailabilityZone(CustomerAvailabilityZoneT&& value) {
232 m_customerAvailabilityZoneHasBeenSet = true;
233 m_customerAvailabilityZone = std::forward<CustomerAvailabilityZoneT>(value);
234 }
235 template <typename CustomerAvailabilityZoneT = Aws::String>
236 CacheNode& WithCustomerAvailabilityZone(CustomerAvailabilityZoneT&& value) {
237 SetCustomerAvailabilityZone(std::forward<CustomerAvailabilityZoneT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetCustomerOutpostArn() const { return m_customerOutpostArn; }
247 inline bool CustomerOutpostArnHasBeenSet() const { return m_customerOutpostArnHasBeenSet; }
248 template <typename CustomerOutpostArnT = Aws::String>
249 void SetCustomerOutpostArn(CustomerOutpostArnT&& value) {
250 m_customerOutpostArnHasBeenSet = true;
251 m_customerOutpostArn = std::forward<CustomerOutpostArnT>(value);
252 }
253 template <typename CustomerOutpostArnT = Aws::String>
254 CacheNode& WithCustomerOutpostArn(CustomerOutpostArnT&& value) {
255 SetCustomerOutpostArn(std::forward<CustomerOutpostArnT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_cacheNodeId;
261
262 Aws::String m_cacheNodeStatus;
263
264 Aws::Utils::DateTime m_cacheNodeCreateTime{};
265
266 Endpoint m_endpoint;
267
268 Aws::String m_parameterGroupStatus;
269
270 Aws::String m_sourceCacheNodeId;
271
272 Aws::String m_customerAvailabilityZone;
273
274 Aws::String m_customerOutpostArn;
275 bool m_cacheNodeIdHasBeenSet = false;
276 bool m_cacheNodeStatusHasBeenSet = false;
277 bool m_cacheNodeCreateTimeHasBeenSet = false;
278 bool m_endpointHasBeenSet = false;
279 bool m_parameterGroupStatusHasBeenSet = false;
280 bool m_sourceCacheNodeIdHasBeenSet = false;
281 bool m_customerAvailabilityZoneHasBeenSet = false;
282 bool m_customerOutpostArnHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace ElastiCache
287} // namespace Aws
AWS_ELASTICACHE_API CacheNode()=default
CacheNode & WithEndpoint(EndpointT &&value)
Definition CacheNode.h:181
CacheNode & WithParameterGroupStatus(ParameterGroupStatusT &&value)
Definition CacheNode.h:199
CacheNode & WithCustomerOutpostArn(CustomerOutpostArnT &&value)
Definition CacheNode.h:254
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool CustomerAvailabilityZoneHasBeenSet() const
Definition CacheNode.h:229
const Aws::String & GetCustomerOutpostArn() const
Definition CacheNode.h:246
void SetCacheNodeId(CacheNodeIdT &&value)
Definition CacheNode.h:120
void SetParameterGroupStatus(ParameterGroupStatusT &&value)
Definition CacheNode.h:194
CacheNode & WithCustomerAvailabilityZone(CustomerAvailabilityZoneT &&value)
Definition CacheNode.h:236
AWS_ELASTICACHE_API CacheNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetParameterGroupStatus() const
Definition CacheNode.h:191
void SetSourceCacheNodeId(SourceCacheNodeIdT &&value)
Definition CacheNode.h:213
const Endpoint & GetEndpoint() const
Definition CacheNode.h:173
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCacheNodeStatus(CacheNodeStatusT &&value)
Definition CacheNode.h:140
const Aws::String & GetCacheNodeStatus() const
Definition CacheNode.h:137
CacheNode & WithCacheNodeId(CacheNodeIdT &&value)
Definition CacheNode.h:125
void SetCustomerOutpostArn(CustomerOutpostArnT &&value)
Definition CacheNode.h:249
const Aws::String & GetSourceCacheNodeId() const
Definition CacheNode.h:210
void SetEndpoint(EndpointT &&value)
Definition CacheNode.h:176
CacheNode & WithSourceCacheNodeId(SourceCacheNodeIdT &&value)
Definition CacheNode.h:218
void SetCustomerAvailabilityZone(CustomerAvailabilityZoneT &&value)
Definition CacheNode.h:231
bool ParameterGroupStatusHasBeenSet() const
Definition CacheNode.h:192
const Aws::String & GetCustomerAvailabilityZone() const
Definition CacheNode.h:228
AWS_ELASTICACHE_API CacheNode(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
Definition CacheNode.h:158
CacheNode & WithCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
Definition CacheNode.h:163
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
Definition CacheNode.h:155
CacheNode & WithCacheNodeStatus(CacheNodeStatusT &&value)
Definition CacheNode.h:145
const Aws::String & GetCacheNodeId() const
Definition CacheNode.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream