AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ClusterNode.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
32 {
33 public:
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
45 inline const Aws::String& GetNodeRole() const{ return m_nodeRole; }
46
50 inline bool NodeRoleHasBeenSet() const { return m_nodeRoleHasBeenSet; }
51
55 inline void SetNodeRole(const Aws::String& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = value; }
56
60 inline void SetNodeRole(Aws::String&& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = std::move(value); }
61
65 inline void SetNodeRole(const char* value) { m_nodeRoleHasBeenSet = true; m_nodeRole.assign(value); }
66
70 inline ClusterNode& WithNodeRole(const Aws::String& value) { SetNodeRole(value); return *this;}
71
75 inline ClusterNode& WithNodeRole(Aws::String&& value) { SetNodeRole(std::move(value)); return *this;}
76
80 inline ClusterNode& WithNodeRole(const char* value) { SetNodeRole(value); return *this;}
81
82
86 inline const Aws::String& GetPrivateIPAddress() const{ return m_privateIPAddress; }
87
91 inline bool PrivateIPAddressHasBeenSet() const { return m_privateIPAddressHasBeenSet; }
92
96 inline void SetPrivateIPAddress(const Aws::String& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = value; }
97
101 inline void SetPrivateIPAddress(Aws::String&& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = std::move(value); }
102
106 inline void SetPrivateIPAddress(const char* value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress.assign(value); }
107
111 inline ClusterNode& WithPrivateIPAddress(const Aws::String& value) { SetPrivateIPAddress(value); return *this;}
112
116 inline ClusterNode& WithPrivateIPAddress(Aws::String&& value) { SetPrivateIPAddress(std::move(value)); return *this;}
117
121 inline ClusterNode& WithPrivateIPAddress(const char* value) { SetPrivateIPAddress(value); return *this;}
122
123
127 inline const Aws::String& GetPublicIPAddress() const{ return m_publicIPAddress; }
128
132 inline bool PublicIPAddressHasBeenSet() const { return m_publicIPAddressHasBeenSet; }
133
137 inline void SetPublicIPAddress(const Aws::String& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = value; }
138
142 inline void SetPublicIPAddress(Aws::String&& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = std::move(value); }
143
147 inline void SetPublicIPAddress(const char* value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress.assign(value); }
148
152 inline ClusterNode& WithPublicIPAddress(const Aws::String& value) { SetPublicIPAddress(value); return *this;}
153
157 inline ClusterNode& WithPublicIPAddress(Aws::String&& value) { SetPublicIPAddress(std::move(value)); return *this;}
158
162 inline ClusterNode& WithPublicIPAddress(const char* value) { SetPublicIPAddress(value); return *this;}
163
164 private:
165
166 Aws::String m_nodeRole;
167 bool m_nodeRoleHasBeenSet = false;
168
169 Aws::String m_privateIPAddress;
170 bool m_privateIPAddressHasBeenSet = false;
171
172 Aws::String m_publicIPAddress;
173 bool m_publicIPAddressHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Redshift
178} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API ClusterNode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrivateIPAddress() const
Definition: ClusterNode.h:86
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNodeRole(const char *value)
Definition: ClusterNode.h:65
ClusterNode & WithPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:152
void SetPrivateIPAddress(const char *value)
Definition: ClusterNode.h:106
const Aws::String & GetPublicIPAddress() const
Definition: ClusterNode.h:127
ClusterNode & WithNodeRole(const char *value)
Definition: ClusterNode.h:80
ClusterNode & WithNodeRole(const Aws::String &value)
Definition: ClusterNode.h:70
void SetPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:101
void SetNodeRole(const Aws::String &value)
Definition: ClusterNode.h:55
ClusterNode & WithNodeRole(Aws::String &&value)
Definition: ClusterNode.h:75
const Aws::String & GetNodeRole() const
Definition: ClusterNode.h:45
ClusterNode & WithPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:116
ClusterNode & WithPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:111
void SetPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:137
AWS_REDSHIFT_API ClusterNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterNode & WithPublicIPAddress(const char *value)
Definition: ClusterNode.h:162
void SetPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:142
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPublicIPAddress(const char *value)
Definition: ClusterNode.h:147
ClusterNode & WithPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:157
void SetPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:96
void SetNodeRole(Aws::String &&value)
Definition: ClusterNode.h:60
ClusterNode & WithPrivateIPAddress(const char *value)
Definition: ClusterNode.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream