AWS SDK for C++  0.12.9
AWS SDK for C++
NodeGroupMember.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElastiCache
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  NodeGroupMember& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
52 
56  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
57 
61  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
62 
66  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
67 
71  inline NodeGroupMember& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
72 
76  inline NodeGroupMember& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(value); return *this;}
77 
81  inline NodeGroupMember& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
82 
87  inline const Aws::String& GetCacheNodeId() const{ return m_cacheNodeId; }
88 
93  inline void SetCacheNodeId(const Aws::String& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
94 
99  inline void SetCacheNodeId(Aws::String&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
100 
105  inline void SetCacheNodeId(const char* value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId.assign(value); }
106 
111  inline NodeGroupMember& WithCacheNodeId(const Aws::String& value) { SetCacheNodeId(value); return *this;}
112 
117  inline NodeGroupMember& WithCacheNodeId(Aws::String&& value) { SetCacheNodeId(value); return *this;}
118 
123  inline NodeGroupMember& WithCacheNodeId(const char* value) { SetCacheNodeId(value); return *this;}
124 
125 
126  inline const Endpoint& GetReadEndpoint() const{ return m_readEndpoint; }
127 
128 
129  inline void SetReadEndpoint(const Endpoint& value) { m_readEndpointHasBeenSet = true; m_readEndpoint = value; }
130 
131 
132  inline void SetReadEndpoint(Endpoint&& value) { m_readEndpointHasBeenSet = true; m_readEndpoint = value; }
133 
134 
135  inline NodeGroupMember& WithReadEndpoint(const Endpoint& value) { SetReadEndpoint(value); return *this;}
136 
137 
138  inline NodeGroupMember& WithReadEndpoint(Endpoint&& value) { SetReadEndpoint(value); return *this;}
139 
143  inline const Aws::String& GetPreferredAvailabilityZone() const{ return m_preferredAvailabilityZone; }
144 
148  inline void SetPreferredAvailabilityZone(const Aws::String& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = value; }
149 
153  inline void SetPreferredAvailabilityZone(Aws::String&& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = value; }
154 
158  inline void SetPreferredAvailabilityZone(const char* value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone.assign(value); }
159 
163  inline NodeGroupMember& WithPreferredAvailabilityZone(const Aws::String& value) { SetPreferredAvailabilityZone(value); return *this;}
164 
168  inline NodeGroupMember& WithPreferredAvailabilityZone(Aws::String&& value) { SetPreferredAvailabilityZone(value); return *this;}
169 
173  inline NodeGroupMember& WithPreferredAvailabilityZone(const char* value) { SetPreferredAvailabilityZone(value); return *this;}
174 
179  inline const Aws::String& GetCurrentRole() const{ return m_currentRole; }
180 
185  inline void SetCurrentRole(const Aws::String& value) { m_currentRoleHasBeenSet = true; m_currentRole = value; }
186 
191  inline void SetCurrentRole(Aws::String&& value) { m_currentRoleHasBeenSet = true; m_currentRole = value; }
192 
197  inline void SetCurrentRole(const char* value) { m_currentRoleHasBeenSet = true; m_currentRole.assign(value); }
198 
203  inline NodeGroupMember& WithCurrentRole(const Aws::String& value) { SetCurrentRole(value); return *this;}
204 
209  inline NodeGroupMember& WithCurrentRole(Aws::String&& value) { SetCurrentRole(value); return *this;}
210 
215  inline NodeGroupMember& WithCurrentRole(const char* value) { SetCurrentRole(value); return *this;}
216 
217  private:
218  Aws::String m_cacheClusterId;
219  bool m_cacheClusterIdHasBeenSet;
220  Aws::String m_cacheNodeId;
221  bool m_cacheNodeIdHasBeenSet;
222  Endpoint m_readEndpoint;
223  bool m_readEndpointHasBeenSet;
224  Aws::String m_preferredAvailabilityZone;
225  bool m_preferredAvailabilityZoneHasBeenSet;
226  Aws::String m_currentRole;
227  bool m_currentRoleHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace ElastiCache
232 } // namespace Aws
NodeGroupMember & WithCacheClusterId(Aws::String &&value)
NodeGroupMember & WithCacheNodeId(Aws::String &&value)
const Aws::String & GetPreferredAvailabilityZone() const
void SetReadEndpoint(const Endpoint &value)
NodeGroupMember & WithCurrentRole(Aws::String &&value)
NodeGroupMember & WithCacheClusterId(const char *value)
void SetCacheClusterId(Aws::String &&value)
const Aws::String & GetCacheNodeId() const
NodeGroupMember & WithPreferredAvailabilityZone(const char *value)
void SetCurrentRole(const Aws::String &value)
void SetPreferredAvailabilityZone(const Aws::String &value)
NodeGroupMember & WithPreferredAvailabilityZone(Aws::String &&value)
void SetCacheClusterId(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetCacheClusterId(const Aws::String &value)
void SetCacheNodeId(Aws::String &&value)
NodeGroupMember & WithPreferredAvailabilityZone(const Aws::String &value)
void SetPreferredAvailabilityZone(const char *value)
NodeGroupMember & WithReadEndpoint(const Endpoint &value)
const Endpoint & GetReadEndpoint() const
const Aws::String & GetCurrentRole() const
void SetPreferredAvailabilityZone(Aws::String &&value)
void SetCacheNodeId(const Aws::String &value)
const Aws::String & GetCacheClusterId() const
NodeGroupMember & WithCurrentRole(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NodeGroupMember & WithCacheNodeId(const Aws::String &value)
#define AWS_ELASTICACHE_API
NodeGroupMember & WithReadEndpoint(Endpoint &&value)
NodeGroupMember & WithCacheClusterId(const Aws::String &value)
NodeGroupMember & WithCacheNodeId(const char *value)
void SetCurrentRole(Aws::String &&value)
NodeGroupMember & WithCurrentRole(const char *value)
JSON (JavaScript Object Notation).