AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeGroupMember.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/Endpoint.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICACHE_API NodeGroupMember();
37 AWS_ELASTICACHE_API NodeGroupMember(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API NodeGroupMember& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
49 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
50 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
51 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
52 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
53 inline NodeGroupMember& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
54 inline NodeGroupMember& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
55 inline NodeGroupMember& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
57
59
63 inline const Aws::String& GetCacheNodeId() const{ return m_cacheNodeId; }
64 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
65 inline void SetCacheNodeId(const Aws::String& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
66 inline void SetCacheNodeId(Aws::String&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = std::move(value); }
67 inline void SetCacheNodeId(const char* value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId.assign(value); }
68 inline NodeGroupMember& WithCacheNodeId(const Aws::String& value) { SetCacheNodeId(value); return *this;}
69 inline NodeGroupMember& WithCacheNodeId(Aws::String&& value) { SetCacheNodeId(std::move(value)); return *this;}
70 inline NodeGroupMember& WithCacheNodeId(const char* value) { SetCacheNodeId(value); return *this;}
72
74
79 inline const Endpoint& GetReadEndpoint() const{ return m_readEndpoint; }
80 inline bool ReadEndpointHasBeenSet() const { return m_readEndpointHasBeenSet; }
81 inline void SetReadEndpoint(const Endpoint& value) { m_readEndpointHasBeenSet = true; m_readEndpoint = value; }
82 inline void SetReadEndpoint(Endpoint&& value) { m_readEndpointHasBeenSet = true; m_readEndpoint = std::move(value); }
83 inline NodeGroupMember& WithReadEndpoint(const Endpoint& value) { SetReadEndpoint(value); return *this;}
84 inline NodeGroupMember& WithReadEndpoint(Endpoint&& value) { SetReadEndpoint(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetPreferredAvailabilityZone() const{ return m_preferredAvailabilityZone; }
92 inline bool PreferredAvailabilityZoneHasBeenSet() const { return m_preferredAvailabilityZoneHasBeenSet; }
93 inline void SetPreferredAvailabilityZone(const Aws::String& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = value; }
94 inline void SetPreferredAvailabilityZone(Aws::String&& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = std::move(value); }
95 inline void SetPreferredAvailabilityZone(const char* value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone.assign(value); }
98 inline NodeGroupMember& WithPreferredAvailabilityZone(const char* value) { SetPreferredAvailabilityZone(value); return *this;}
100
102
105 inline const Aws::String& GetPreferredOutpostArn() const{ return m_preferredOutpostArn; }
106 inline bool PreferredOutpostArnHasBeenSet() const { return m_preferredOutpostArnHasBeenSet; }
107 inline void SetPreferredOutpostArn(const Aws::String& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = value; }
108 inline void SetPreferredOutpostArn(Aws::String&& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = std::move(value); }
109 inline void SetPreferredOutpostArn(const char* value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn.assign(value); }
110 inline NodeGroupMember& WithPreferredOutpostArn(const Aws::String& value) { SetPreferredOutpostArn(value); return *this;}
111 inline NodeGroupMember& WithPreferredOutpostArn(Aws::String&& value) { SetPreferredOutpostArn(std::move(value)); return *this;}
112 inline NodeGroupMember& WithPreferredOutpostArn(const char* value) { SetPreferredOutpostArn(value); return *this;}
114
116
121 inline const Aws::String& GetCurrentRole() const{ return m_currentRole; }
122 inline bool CurrentRoleHasBeenSet() const { return m_currentRoleHasBeenSet; }
123 inline void SetCurrentRole(const Aws::String& value) { m_currentRoleHasBeenSet = true; m_currentRole = value; }
124 inline void SetCurrentRole(Aws::String&& value) { m_currentRoleHasBeenSet = true; m_currentRole = std::move(value); }
125 inline void SetCurrentRole(const char* value) { m_currentRoleHasBeenSet = true; m_currentRole.assign(value); }
126 inline NodeGroupMember& WithCurrentRole(const Aws::String& value) { SetCurrentRole(value); return *this;}
127 inline NodeGroupMember& WithCurrentRole(Aws::String&& value) { SetCurrentRole(std::move(value)); return *this;}
128 inline NodeGroupMember& WithCurrentRole(const char* value) { SetCurrentRole(value); return *this;}
130 private:
131
132 Aws::String m_cacheClusterId;
133 bool m_cacheClusterIdHasBeenSet = false;
134
135 Aws::String m_cacheNodeId;
136 bool m_cacheNodeIdHasBeenSet = false;
137
138 Endpoint m_readEndpoint;
139 bool m_readEndpointHasBeenSet = false;
140
141 Aws::String m_preferredAvailabilityZone;
142 bool m_preferredAvailabilityZoneHasBeenSet = false;
143
144 Aws::String m_preferredOutpostArn;
145 bool m_preferredOutpostArnHasBeenSet = false;
146
147 Aws::String m_currentRole;
148 bool m_currentRoleHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ElastiCache
153} // namespace Aws
NodeGroupMember & WithPreferredOutpostArn(const Aws::String &value)
NodeGroupMember & WithReadEndpoint(Endpoint &&value)
void SetCacheClusterId(const Aws::String &value)
void SetPreferredOutpostArn(const char *value)
NodeGroupMember & WithCacheClusterId(Aws::String &&value)
void SetCacheNodeId(const Aws::String &value)
NodeGroupMember & WithPreferredAvailabilityZone(Aws::String &&value)
void SetPreferredOutpostArn(const Aws::String &value)
void SetCacheClusterId(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NodeGroupMember & WithPreferredAvailabilityZone(const char *value)
const Aws::String & GetCacheClusterId() const
void SetCacheNodeId(Aws::String &&value)
const Aws::String & GetPreferredAvailabilityZone() const
NodeGroupMember & WithPreferredOutpostArn(const char *value)
NodeGroupMember & WithReadEndpoint(const Endpoint &value)
NodeGroupMember & WithPreferredOutpostArn(Aws::String &&value)
const Aws::String & GetPreferredOutpostArn() const
void SetReadEndpoint(const Endpoint &value)
AWS_ELASTICACHE_API NodeGroupMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeGroupMember & WithCacheNodeId(Aws::String &&value)
const Aws::String & GetCurrentRole() const
NodeGroupMember & WithCacheNodeId(const char *value)
NodeGroupMember & WithCurrentRole(Aws::String &&value)
NodeGroupMember & WithCurrentRole(const char *value)
NodeGroupMember & WithCacheClusterId(const char *value)
void SetPreferredOutpostArn(Aws::String &&value)
const Aws::String & GetCacheNodeId() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NodeGroupMember & WithCacheNodeId(const Aws::String &value)
NodeGroupMember & WithCacheClusterId(const Aws::String &value)
AWS_ELASTICACHE_API NodeGroupMember(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeGroupMember & WithPreferredAvailabilityZone(const Aws::String &value)
void SetPreferredAvailabilityZone(const Aws::String &value)
NodeGroupMember & WithCurrentRole(const Aws::String &value)
void SetPreferredAvailabilityZone(Aws::String &&value)
void SetCurrentRole(const Aws::String &value)
void SetPreferredAvailabilityZone(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream