AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CacheNode.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/core/utils/DateTime.h>
11#include <aws/elasticache/model/Endpoint.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
107 {
108 public:
109 AWS_ELASTICACHE_API CacheNode() = default;
110 AWS_ELASTICACHE_API CacheNode(const Aws::Utils::Xml::XmlNode& xmlNode);
111 AWS_ELASTICACHE_API CacheNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
112
113 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
114 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
115
116
118
123 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
124 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
125 template<typename CacheNodeIdT = Aws::String>
126 void SetCacheNodeId(CacheNodeIdT&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = std::forward<CacheNodeIdT>(value); }
127 template<typename CacheNodeIdT = Aws::String>
128 CacheNode& WithCacheNodeId(CacheNodeIdT&& value) { SetCacheNodeId(std::forward<CacheNodeIdT>(value)); return *this;}
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) { m_cacheNodeStatusHasBeenSet = true; m_cacheNodeStatus = std::forward<CacheNodeStatusT>(value); }
141 template<typename CacheNodeStatusT = Aws::String>
142 CacheNode& WithCacheNodeStatus(CacheNodeStatusT&& value) { SetCacheNodeStatus(std::forward<CacheNodeStatusT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const { return m_cacheNodeCreateTime; }
150 inline bool CacheNodeCreateTimeHasBeenSet() const { return m_cacheNodeCreateTimeHasBeenSet; }
151 template<typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
152 void SetCacheNodeCreateTime(CacheNodeCreateTimeT&& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = std::forward<CacheNodeCreateTimeT>(value); }
153 template<typename CacheNodeCreateTimeT = Aws::Utils::DateTime>
154 CacheNode& WithCacheNodeCreateTime(CacheNodeCreateTimeT&& value) { SetCacheNodeCreateTime(std::forward<CacheNodeCreateTimeT>(value)); return *this;}
156
158
161 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
162 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
163 template<typename EndpointT = Endpoint>
164 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
165 template<typename EndpointT = Endpoint>
166 CacheNode& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
168
170
173 inline const Aws::String& GetParameterGroupStatus() const { return m_parameterGroupStatus; }
174 inline bool ParameterGroupStatusHasBeenSet() const { return m_parameterGroupStatusHasBeenSet; }
175 template<typename ParameterGroupStatusT = Aws::String>
176 void SetParameterGroupStatus(ParameterGroupStatusT&& value) { m_parameterGroupStatusHasBeenSet = true; m_parameterGroupStatus = std::forward<ParameterGroupStatusT>(value); }
177 template<typename ParameterGroupStatusT = Aws::String>
178 CacheNode& WithParameterGroupStatus(ParameterGroupStatusT&& value) { SetParameterGroupStatus(std::forward<ParameterGroupStatusT>(value)); return *this;}
180
182
186 inline const Aws::String& GetSourceCacheNodeId() const { return m_sourceCacheNodeId; }
187 inline bool SourceCacheNodeIdHasBeenSet() const { return m_sourceCacheNodeIdHasBeenSet; }
188 template<typename SourceCacheNodeIdT = Aws::String>
189 void SetSourceCacheNodeId(SourceCacheNodeIdT&& value) { m_sourceCacheNodeIdHasBeenSet = true; m_sourceCacheNodeId = std::forward<SourceCacheNodeIdT>(value); }
190 template<typename SourceCacheNodeIdT = Aws::String>
191 CacheNode& WithSourceCacheNodeId(SourceCacheNodeIdT&& value) { SetSourceCacheNodeId(std::forward<SourceCacheNodeIdT>(value)); return *this;}
193
195
198 inline const Aws::String& GetCustomerAvailabilityZone() const { return m_customerAvailabilityZone; }
199 inline bool CustomerAvailabilityZoneHasBeenSet() const { return m_customerAvailabilityZoneHasBeenSet; }
200 template<typename CustomerAvailabilityZoneT = Aws::String>
201 void SetCustomerAvailabilityZone(CustomerAvailabilityZoneT&& value) { m_customerAvailabilityZoneHasBeenSet = true; m_customerAvailabilityZone = std::forward<CustomerAvailabilityZoneT>(value); }
202 template<typename CustomerAvailabilityZoneT = Aws::String>
203 CacheNode& WithCustomerAvailabilityZone(CustomerAvailabilityZoneT&& value) { SetCustomerAvailabilityZone(std::forward<CustomerAvailabilityZoneT>(value)); return *this;}
205
207
210 inline const Aws::String& GetCustomerOutpostArn() const { return m_customerOutpostArn; }
211 inline bool CustomerOutpostArnHasBeenSet() const { return m_customerOutpostArnHasBeenSet; }
212 template<typename CustomerOutpostArnT = Aws::String>
213 void SetCustomerOutpostArn(CustomerOutpostArnT&& value) { m_customerOutpostArnHasBeenSet = true; m_customerOutpostArn = std::forward<CustomerOutpostArnT>(value); }
214 template<typename CustomerOutpostArnT = Aws::String>
215 CacheNode& WithCustomerOutpostArn(CustomerOutpostArnT&& value) { SetCustomerOutpostArn(std::forward<CustomerOutpostArnT>(value)); return *this;}
217 private:
218
219 Aws::String m_cacheNodeId;
220 bool m_cacheNodeIdHasBeenSet = false;
221
222 Aws::String m_cacheNodeStatus;
223 bool m_cacheNodeStatusHasBeenSet = false;
224
225 Aws::Utils::DateTime m_cacheNodeCreateTime{};
226 bool m_cacheNodeCreateTimeHasBeenSet = false;
227
228 Endpoint m_endpoint;
229 bool m_endpointHasBeenSet = false;
230
231 Aws::String m_parameterGroupStatus;
232 bool m_parameterGroupStatusHasBeenSet = false;
233
234 Aws::String m_sourceCacheNodeId;
235 bool m_sourceCacheNodeIdHasBeenSet = false;
236
237 Aws::String m_customerAvailabilityZone;
238 bool m_customerAvailabilityZoneHasBeenSet = false;
239
240 Aws::String m_customerOutpostArn;
241 bool m_customerOutpostArnHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace ElastiCache
246} // namespace Aws
AWS_ELASTICACHE_API CacheNode()=default
CacheNode & WithEndpoint(EndpointT &&value)
Definition CacheNode.h:166
CacheNode & WithParameterGroupStatus(ParameterGroupStatusT &&value)
Definition CacheNode.h:178
CacheNode & WithCustomerOutpostArn(CustomerOutpostArnT &&value)
Definition CacheNode.h:215
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool CustomerAvailabilityZoneHasBeenSet() const
Definition CacheNode.h:199
const Aws::String & GetCustomerOutpostArn() const
Definition CacheNode.h:210
void SetCacheNodeId(CacheNodeIdT &&value)
Definition CacheNode.h:126
void SetParameterGroupStatus(ParameterGroupStatusT &&value)
Definition CacheNode.h:176
CacheNode & WithCustomerAvailabilityZone(CustomerAvailabilityZoneT &&value)
Definition CacheNode.h:203
AWS_ELASTICACHE_API CacheNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetParameterGroupStatus() const
Definition CacheNode.h:173
void SetSourceCacheNodeId(SourceCacheNodeIdT &&value)
Definition CacheNode.h:189
const Endpoint & GetEndpoint() const
Definition CacheNode.h:161
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:128
void SetCustomerOutpostArn(CustomerOutpostArnT &&value)
Definition CacheNode.h:213
const Aws::String & GetSourceCacheNodeId() const
Definition CacheNode.h:186
void SetEndpoint(EndpointT &&value)
Definition CacheNode.h:164
CacheNode & WithSourceCacheNodeId(SourceCacheNodeIdT &&value)
Definition CacheNode.h:191
void SetCustomerAvailabilityZone(CustomerAvailabilityZoneT &&value)
Definition CacheNode.h:201
bool ParameterGroupStatusHasBeenSet() const
Definition CacheNode.h:174
const Aws::String & GetCustomerAvailabilityZone() const
Definition CacheNode.h:198
AWS_ELASTICACHE_API CacheNode(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
Definition CacheNode.h:152
CacheNode & WithCacheNodeCreateTime(CacheNodeCreateTimeT &&value)
Definition CacheNode.h:154
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
Definition CacheNode.h:149
CacheNode & WithCacheNodeStatus(CacheNodeStatusT &&value)
Definition CacheNode.h:142
const Aws::String & GetCacheNodeId() const
Definition CacheNode.h:123
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream