AWS SDK for C++  0.12.9
AWS SDK for C++
CacheNode.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElastiCache
32 {
33 namespace Model
34 {
35 
67  {
68  public:
69  CacheNode();
70  CacheNode(const Aws::Utils::Xml::XmlNode& xmlNode);
71  CacheNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
72 
73  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
74  void OutputToStream(Aws::OStream& oStream, const char* location) const;
75 
81  inline const Aws::String& GetCacheNodeId() const{ return m_cacheNodeId; }
82 
88  inline void SetCacheNodeId(const Aws::String& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
89 
95  inline void SetCacheNodeId(Aws::String&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
96 
102  inline void SetCacheNodeId(const char* value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId.assign(value); }
103 
109  inline CacheNode& WithCacheNodeId(const Aws::String& value) { SetCacheNodeId(value); return *this;}
110 
116  inline CacheNode& WithCacheNodeId(Aws::String&& value) { SetCacheNodeId(value); return *this;}
117 
123  inline CacheNode& WithCacheNodeId(const char* value) { SetCacheNodeId(value); return *this;}
124 
128  inline const Aws::String& GetCacheNodeStatus() const{ return m_cacheNodeStatus; }
129 
133  inline void SetCacheNodeStatus(const Aws::String& value) { m_cacheNodeStatusHasBeenSet = true; m_cacheNodeStatus = value; }
134 
138  inline void SetCacheNodeStatus(Aws::String&& value) { m_cacheNodeStatusHasBeenSet = true; m_cacheNodeStatus = value; }
139 
143  inline void SetCacheNodeStatus(const char* value) { m_cacheNodeStatusHasBeenSet = true; m_cacheNodeStatus.assign(value); }
144 
148  inline CacheNode& WithCacheNodeStatus(const Aws::String& value) { SetCacheNodeStatus(value); return *this;}
149 
153  inline CacheNode& WithCacheNodeStatus(Aws::String&& value) { SetCacheNodeStatus(value); return *this;}
154 
158  inline CacheNode& WithCacheNodeStatus(const char* value) { SetCacheNodeStatus(value); return *this;}
159 
163  inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const{ return m_cacheNodeCreateTime; }
164 
168  inline void SetCacheNodeCreateTime(const Aws::Utils::DateTime& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = value; }
169 
173  inline void SetCacheNodeCreateTime(Aws::Utils::DateTime&& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = value; }
174 
178  inline CacheNode& WithCacheNodeCreateTime(const Aws::Utils::DateTime& value) { SetCacheNodeCreateTime(value); return *this;}
179 
183  inline CacheNode& WithCacheNodeCreateTime(Aws::Utils::DateTime&& value) { SetCacheNodeCreateTime(value); return *this;}
184 
188  inline const Endpoint& GetEndpoint() const{ return m_endpoint; }
189 
193  inline void SetEndpoint(const Endpoint& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
194 
198  inline void SetEndpoint(Endpoint&& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
199 
203  inline CacheNode& WithEndpoint(const Endpoint& value) { SetEndpoint(value); return *this;}
204 
208  inline CacheNode& WithEndpoint(Endpoint&& value) { SetEndpoint(value); return *this;}
209 
213  inline const Aws::String& GetParameterGroupStatus() const{ return m_parameterGroupStatus; }
214 
218  inline void SetParameterGroupStatus(const Aws::String& value) { m_parameterGroupStatusHasBeenSet = true; m_parameterGroupStatus = value; }
219 
223  inline void SetParameterGroupStatus(Aws::String&& value) { m_parameterGroupStatusHasBeenSet = true; m_parameterGroupStatus = value; }
224 
228  inline void SetParameterGroupStatus(const char* value) { m_parameterGroupStatusHasBeenSet = true; m_parameterGroupStatus.assign(value); }
229 
233  inline CacheNode& WithParameterGroupStatus(const Aws::String& value) { SetParameterGroupStatus(value); return *this;}
234 
238  inline CacheNode& WithParameterGroupStatus(Aws::String&& value) { SetParameterGroupStatus(value); return *this;}
239 
243  inline CacheNode& WithParameterGroupStatus(const char* value) { SetParameterGroupStatus(value); return *this;}
244 
250  inline const Aws::String& GetSourceCacheNodeId() const{ return m_sourceCacheNodeId; }
251 
257  inline void SetSourceCacheNodeId(const Aws::String& value) { m_sourceCacheNodeIdHasBeenSet = true; m_sourceCacheNodeId = value; }
258 
264  inline void SetSourceCacheNodeId(Aws::String&& value) { m_sourceCacheNodeIdHasBeenSet = true; m_sourceCacheNodeId = value; }
265 
271  inline void SetSourceCacheNodeId(const char* value) { m_sourceCacheNodeIdHasBeenSet = true; m_sourceCacheNodeId.assign(value); }
272 
278  inline CacheNode& WithSourceCacheNodeId(const Aws::String& value) { SetSourceCacheNodeId(value); return *this;}
279 
285  inline CacheNode& WithSourceCacheNodeId(Aws::String&& value) { SetSourceCacheNodeId(value); return *this;}
286 
292  inline CacheNode& WithSourceCacheNodeId(const char* value) { SetSourceCacheNodeId(value); return *this;}
293 
297  inline const Aws::String& GetCustomerAvailabilityZone() const{ return m_customerAvailabilityZone; }
298 
302  inline void SetCustomerAvailabilityZone(const Aws::String& value) { m_customerAvailabilityZoneHasBeenSet = true; m_customerAvailabilityZone = value; }
303 
307  inline void SetCustomerAvailabilityZone(Aws::String&& value) { m_customerAvailabilityZoneHasBeenSet = true; m_customerAvailabilityZone = value; }
308 
312  inline void SetCustomerAvailabilityZone(const char* value) { m_customerAvailabilityZoneHasBeenSet = true; m_customerAvailabilityZone.assign(value); }
313 
317  inline CacheNode& WithCustomerAvailabilityZone(const Aws::String& value) { SetCustomerAvailabilityZone(value); return *this;}
318 
322  inline CacheNode& WithCustomerAvailabilityZone(Aws::String&& value) { SetCustomerAvailabilityZone(value); return *this;}
323 
327  inline CacheNode& WithCustomerAvailabilityZone(const char* value) { SetCustomerAvailabilityZone(value); return *this;}
328 
329  private:
330  Aws::String m_cacheNodeId;
331  bool m_cacheNodeIdHasBeenSet;
332  Aws::String m_cacheNodeStatus;
333  bool m_cacheNodeStatusHasBeenSet;
334  Aws::Utils::DateTime m_cacheNodeCreateTime;
335  bool m_cacheNodeCreateTimeHasBeenSet;
336  Endpoint m_endpoint;
337  bool m_endpointHasBeenSet;
338  Aws::String m_parameterGroupStatus;
339  bool m_parameterGroupStatusHasBeenSet;
340  Aws::String m_sourceCacheNodeId;
341  bool m_sourceCacheNodeIdHasBeenSet;
342  Aws::String m_customerAvailabilityZone;
343  bool m_customerAvailabilityZoneHasBeenSet;
344  };
345 
346 } // namespace Model
347 } // namespace ElastiCache
348 } // namespace Aws
CacheNode & WithSourceCacheNodeId(const char *value)
Definition: CacheNode.h:292
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
Definition: CacheNode.h:163
CacheNode & WithCacheNodeStatus(const char *value)
Definition: CacheNode.h:158
void SetCacheNodeStatus(Aws::String &&value)
Definition: CacheNode.h:138
CacheNode & WithCacheNodeId(const char *value)
Definition: CacheNode.h:123
CacheNode & WithEndpoint(const Endpoint &value)
Definition: CacheNode.h:203
void SetCustomerAvailabilityZone(const Aws::String &value)
Definition: CacheNode.h:302
CacheNode & WithCustomerAvailabilityZone(const char *value)
Definition: CacheNode.h:327
CacheNode & WithParameterGroupStatus(const Aws::String &value)
Definition: CacheNode.h:233
const Aws::String & GetCacheNodeStatus() const
Definition: CacheNode.h:128
void SetCacheNodeId(const Aws::String &value)
Definition: CacheNode.h:88
const Aws::String & GetParameterGroupStatus() const
Definition: CacheNode.h:213
CacheNode & WithEndpoint(Endpoint &&value)
Definition: CacheNode.h:208
void SetCacheNodeId(const char *value)
Definition: CacheNode.h:102
const Aws::String & GetCustomerAvailabilityZone() const
Definition: CacheNode.h:297
const Aws::String & GetCacheNodeId() const
Definition: CacheNode.h:81
CacheNode & WithSourceCacheNodeId(Aws::String &&value)
Definition: CacheNode.h:285
void SetCacheNodeStatus(const Aws::String &value)
Definition: CacheNode.h:133
void SetSourceCacheNodeId(const Aws::String &value)
Definition: CacheNode.h:257
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
CacheNode & WithCustomerAvailabilityZone(const Aws::String &value)
Definition: CacheNode.h:317
void SetCustomerAvailabilityZone(Aws::String &&value)
Definition: CacheNode.h:307
CacheNode & WithCacheNodeId(const Aws::String &value)
Definition: CacheNode.h:109
void SetParameterGroupStatus(const char *value)
Definition: CacheNode.h:228
CacheNode & WithSourceCacheNodeId(const Aws::String &value)
Definition: CacheNode.h:278
CacheNode & WithParameterGroupStatus(Aws::String &&value)
Definition: CacheNode.h:238
void SetParameterGroupStatus(const Aws::String &value)
Definition: CacheNode.h:218
void SetSourceCacheNodeId(Aws::String &&value)
Definition: CacheNode.h:264
void SetCustomerAvailabilityZone(const char *value)
Definition: CacheNode.h:312
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetParameterGroupStatus(Aws::String &&value)
Definition: CacheNode.h:223
void SetCacheNodeStatus(const char *value)
Definition: CacheNode.h:143
const Endpoint & GetEndpoint() const
Definition: CacheNode.h:188
void SetEndpoint(Endpoint &&value)
Definition: CacheNode.h:198
#define AWS_ELASTICACHE_API
void SetCacheNodeId(Aws::String &&value)
Definition: CacheNode.h:95
void SetSourceCacheNodeId(const char *value)
Definition: CacheNode.h:271
CacheNode & WithParameterGroupStatus(const char *value)
Definition: CacheNode.h:243
const Aws::String & GetSourceCacheNodeId() const
Definition: CacheNode.h:250
void SetEndpoint(const Endpoint &value)
Definition: CacheNode.h:193
CacheNode & WithCacheNodeStatus(const Aws::String &value)
Definition: CacheNode.h:148
CacheNode & WithCustomerAvailabilityZone(Aws::String &&value)
Definition: CacheNode.h:322
CacheNode & WithCacheNodeStatus(Aws::String &&value)
Definition: CacheNode.h:153
CacheNode & WithCacheNodeCreateTime(const Aws::Utils::DateTime &value)
Definition: CacheNode.h:178
CacheNode & WithCacheNodeId(Aws::String &&value)
Definition: CacheNode.h:116
JSON (JavaScript Object Notation).
CacheNode & WithCacheNodeCreateTime(Aws::Utils::DateTime &&value)
Definition: CacheNode.h:183
void SetCacheNodeCreateTime(const Aws::Utils::DateTime &value)
Definition: CacheNode.h:168
void SetCacheNodeCreateTime(Aws::Utils::DateTime &&value)
Definition: CacheNode.h:173