AWS SDK for C++  1.9.104
AWS SDK for C++
ClusterNode.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  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;
168 
169  Aws::String m_privateIPAddress;
170  bool m_privateIPAddressHasBeenSet;
171 
172  Aws::String m_publicIPAddress;
173  bool m_publicIPAddressHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace Redshift
178 } // namespace Aws
Aws::Redshift::Model::ClusterNode::SetNodeRole
void SetNodeRole(Aws::String &&value)
Definition: ClusterNode.h:60
Aws::Redshift::Model::ClusterNode::WithNodeRole
ClusterNode & WithNodeRole(Aws::String &&value)
Definition: ClusterNode.h:75
Aws::Redshift::Model::ClusterNode::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ClusterNode::WithPublicIPAddress
ClusterNode & WithPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:152
Aws::Redshift::Model::ClusterNode::WithNodeRole
ClusterNode & WithNodeRole(const char *value)
Definition: ClusterNode.h:80
Aws::Redshift::Model::ClusterNode::PublicIPAddressHasBeenSet
bool PublicIPAddressHasBeenSet() const
Definition: ClusterNode.h:132
Aws::Redshift::Model::ClusterNode::WithNodeRole
ClusterNode & WithNodeRole(const Aws::String &value)
Definition: ClusterNode.h:70
AWSStreamFwd.h
Aws::Redshift::Model::ClusterNode::PrivateIPAddressHasBeenSet
bool PrivateIPAddressHasBeenSet() const
Definition: ClusterNode.h:91
Aws::Redshift::Model::ClusterNode::operator=
ClusterNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterNode::WithPublicIPAddress
ClusterNode & WithPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:157
Aws::Redshift::Model::ClusterNode::GetPublicIPAddress
const Aws::String & GetPublicIPAddress() const
Definition: ClusterNode.h:127
Aws::Redshift::Model::ClusterNode::WithPrivateIPAddress
ClusterNode & WithPrivateIPAddress(const char *value)
Definition: ClusterNode.h:121
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ClusterNode::ClusterNode
ClusterNode()
Aws::Redshift::Model::ClusterNode::SetPrivateIPAddress
void SetPrivateIPAddress(const char *value)
Definition: ClusterNode.h:106
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterNode::NodeRoleHasBeenSet
bool NodeRoleHasBeenSet() const
Definition: ClusterNode.h:50
AWSString.h
Aws::Redshift::Model::ClusterNode::WithPrivateIPAddress
ClusterNode & WithPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:111
Aws::Redshift::Model::ClusterNode::WithPublicIPAddress
ClusterNode & WithPublicIPAddress(const char *value)
Definition: ClusterNode.h:162
Aws::Redshift::Model::ClusterNode::ClusterNode
ClusterNode(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterNode::GetNodeRole
const Aws::String & GetNodeRole() const
Definition: ClusterNode.h:45
Aws::Redshift::Model::ClusterNode::SetNodeRole
void SetNodeRole(const char *value)
Definition: ClusterNode.h:65
Aws::Redshift::Model::ClusterNode::SetNodeRole
void SetNodeRole(const Aws::String &value)
Definition: ClusterNode.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ClusterNode::SetPublicIPAddress
void SetPublicIPAddress(const char *value)
Definition: ClusterNode.h:147
Redshift_EXPORTS.h
Aws::Redshift::Model::ClusterNode::SetPrivateIPAddress
void SetPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:96
Aws::Redshift::Model::ClusterNode
Definition: ClusterNode.h:32
Aws::Redshift::Model::ClusterNode::SetPublicIPAddress
void SetPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:137
Aws::Redshift::Model::ClusterNode::SetPublicIPAddress
void SetPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterNode::WithPrivateIPAddress
ClusterNode & WithPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:116
Aws::Redshift::Model::ClusterNode::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ClusterNode::SetPrivateIPAddress
void SetPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:101
Aws::Redshift::Model::ClusterNode::GetPrivateIPAddress
const Aws::String & GetPrivateIPAddress() const
Definition: ClusterNode.h:86