AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CacheClusterIdT = Aws::String>
51 void SetCacheClusterId(CacheClusterIdT&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::forward<CacheClusterIdT>(value); }
52 template<typename CacheClusterIdT = Aws::String>
53 NodeGroupMember& WithCacheClusterId(CacheClusterIdT&& value) { SetCacheClusterId(std::forward<CacheClusterIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
62 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
63 template<typename CacheNodeIdT = Aws::String>
64 void SetCacheNodeId(CacheNodeIdT&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = std::forward<CacheNodeIdT>(value); }
65 template<typename CacheNodeIdT = Aws::String>
66 NodeGroupMember& WithCacheNodeId(CacheNodeIdT&& value) { SetCacheNodeId(std::forward<CacheNodeIdT>(value)); return *this;}
68
70
75 inline const Endpoint& GetReadEndpoint() const { return m_readEndpoint; }
76 inline bool ReadEndpointHasBeenSet() const { return m_readEndpointHasBeenSet; }
77 template<typename ReadEndpointT = Endpoint>
78 void SetReadEndpoint(ReadEndpointT&& value) { m_readEndpointHasBeenSet = true; m_readEndpoint = std::forward<ReadEndpointT>(value); }
79 template<typename ReadEndpointT = Endpoint>
80 NodeGroupMember& WithReadEndpoint(ReadEndpointT&& value) { SetReadEndpoint(std::forward<ReadEndpointT>(value)); return *this;}
82
84
87 inline const Aws::String& GetPreferredAvailabilityZone() const { return m_preferredAvailabilityZone; }
88 inline bool PreferredAvailabilityZoneHasBeenSet() const { return m_preferredAvailabilityZoneHasBeenSet; }
89 template<typename PreferredAvailabilityZoneT = Aws::String>
90 void SetPreferredAvailabilityZone(PreferredAvailabilityZoneT&& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = std::forward<PreferredAvailabilityZoneT>(value); }
91 template<typename PreferredAvailabilityZoneT = Aws::String>
92 NodeGroupMember& WithPreferredAvailabilityZone(PreferredAvailabilityZoneT&& value) { SetPreferredAvailabilityZone(std::forward<PreferredAvailabilityZoneT>(value)); return *this;}
94
96
99 inline const Aws::String& GetPreferredOutpostArn() const { return m_preferredOutpostArn; }
100 inline bool PreferredOutpostArnHasBeenSet() const { return m_preferredOutpostArnHasBeenSet; }
101 template<typename PreferredOutpostArnT = Aws::String>
102 void SetPreferredOutpostArn(PreferredOutpostArnT&& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = std::forward<PreferredOutpostArnT>(value); }
103 template<typename PreferredOutpostArnT = Aws::String>
104 NodeGroupMember& WithPreferredOutpostArn(PreferredOutpostArnT&& value) { SetPreferredOutpostArn(std::forward<PreferredOutpostArnT>(value)); return *this;}
106
108
113 inline const Aws::String& GetCurrentRole() const { return m_currentRole; }
114 inline bool CurrentRoleHasBeenSet() const { return m_currentRoleHasBeenSet; }
115 template<typename CurrentRoleT = Aws::String>
116 void SetCurrentRole(CurrentRoleT&& value) { m_currentRoleHasBeenSet = true; m_currentRole = std::forward<CurrentRoleT>(value); }
117 template<typename CurrentRoleT = Aws::String>
118 NodeGroupMember& WithCurrentRole(CurrentRoleT&& value) { SetCurrentRole(std::forward<CurrentRoleT>(value)); return *this;}
120 private:
121
122 Aws::String m_cacheClusterId;
123 bool m_cacheClusterIdHasBeenSet = false;
124
125 Aws::String m_cacheNodeId;
126 bool m_cacheNodeIdHasBeenSet = false;
127
128 Endpoint m_readEndpoint;
129 bool m_readEndpointHasBeenSet = false;
130
131 Aws::String m_preferredAvailabilityZone;
132 bool m_preferredAvailabilityZoneHasBeenSet = false;
133
134 Aws::String m_preferredOutpostArn;
135 bool m_preferredOutpostArnHasBeenSet = false;
136
137 Aws::String m_currentRole;
138 bool m_currentRoleHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ElastiCache
143} // namespace Aws
NodeGroupMember & WithPreferredOutpostArn(PreferredOutpostArnT &&value)
NodeGroupMember & WithCacheNodeId(CacheNodeIdT &&value)
NodeGroupMember & WithCurrentRole(CurrentRoleT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCacheClusterId() const
const Aws::String & GetPreferredAvailabilityZone() const
void SetPreferredOutpostArn(PreferredOutpostArnT &&value)
NodeGroupMember & WithPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
NodeGroupMember & WithCacheClusterId(CacheClusterIdT &&value)
const Aws::String & GetPreferredOutpostArn() const
void SetCacheNodeId(CacheNodeIdT &&value)
AWS_ELASTICACHE_API NodeGroupMember()=default
AWS_ELASTICACHE_API NodeGroupMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCurrentRole() const
void SetCurrentRole(CurrentRoleT &&value)
NodeGroupMember & WithReadEndpoint(ReadEndpointT &&value)
const Aws::String & GetCacheNodeId() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
void SetReadEndpoint(ReadEndpointT &&value)
void SetCacheClusterId(CacheClusterIdT &&value)
AWS_ELASTICACHE_API NodeGroupMember(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream