AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterNode.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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:
34 AWS_REDSHIFT_API ClusterNode();
35 AWS_REDSHIFT_API ClusterNode(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API ClusterNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
43
46 inline const Aws::String& GetNodeRole() const{ return m_nodeRole; }
47 inline bool NodeRoleHasBeenSet() const { return m_nodeRoleHasBeenSet; }
48 inline void SetNodeRole(const Aws::String& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = value; }
49 inline void SetNodeRole(Aws::String&& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = std::move(value); }
50 inline void SetNodeRole(const char* value) { m_nodeRoleHasBeenSet = true; m_nodeRole.assign(value); }
51 inline ClusterNode& WithNodeRole(const Aws::String& value) { SetNodeRole(value); return *this;}
52 inline ClusterNode& WithNodeRole(Aws::String&& value) { SetNodeRole(std::move(value)); return *this;}
53 inline ClusterNode& WithNodeRole(const char* value) { SetNodeRole(value); return *this;}
55
57
60 inline const Aws::String& GetPrivateIPAddress() const{ return m_privateIPAddress; }
61 inline bool PrivateIPAddressHasBeenSet() const { return m_privateIPAddressHasBeenSet; }
62 inline void SetPrivateIPAddress(const Aws::String& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = value; }
63 inline void SetPrivateIPAddress(Aws::String&& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = std::move(value); }
64 inline void SetPrivateIPAddress(const char* value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress.assign(value); }
65 inline ClusterNode& WithPrivateIPAddress(const Aws::String& value) { SetPrivateIPAddress(value); return *this;}
66 inline ClusterNode& WithPrivateIPAddress(Aws::String&& value) { SetPrivateIPAddress(std::move(value)); return *this;}
67 inline ClusterNode& WithPrivateIPAddress(const char* value) { SetPrivateIPAddress(value); return *this;}
69
71
74 inline const Aws::String& GetPublicIPAddress() const{ return m_publicIPAddress; }
75 inline bool PublicIPAddressHasBeenSet() const { return m_publicIPAddressHasBeenSet; }
76 inline void SetPublicIPAddress(const Aws::String& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = value; }
77 inline void SetPublicIPAddress(Aws::String&& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = std::move(value); }
78 inline void SetPublicIPAddress(const char* value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress.assign(value); }
79 inline ClusterNode& WithPublicIPAddress(const Aws::String& value) { SetPublicIPAddress(value); return *this;}
80 inline ClusterNode& WithPublicIPAddress(Aws::String&& value) { SetPublicIPAddress(std::move(value)); return *this;}
81 inline ClusterNode& WithPublicIPAddress(const char* value) { SetPublicIPAddress(value); return *this;}
83 private:
84
85 Aws::String m_nodeRole;
86 bool m_nodeRoleHasBeenSet = false;
87
88 Aws::String m_privateIPAddress;
89 bool m_privateIPAddressHasBeenSet = false;
90
91 Aws::String m_publicIPAddress;
92 bool m_publicIPAddressHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Redshift
97} // namespace Aws
AWS_REDSHIFT_API ClusterNode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrivateIPAddress() const
Definition ClusterNode.h:60
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNodeRole(const char *value)
Definition ClusterNode.h:50
ClusterNode & WithPublicIPAddress(const Aws::String &value)
Definition ClusterNode.h:79
void SetPrivateIPAddress(const char *value)
Definition ClusterNode.h:64
const Aws::String & GetPublicIPAddress() const
Definition ClusterNode.h:74
ClusterNode & WithNodeRole(const char *value)
Definition ClusterNode.h:53
ClusterNode & WithNodeRole(const Aws::String &value)
Definition ClusterNode.h:51
void SetPrivateIPAddress(Aws::String &&value)
Definition ClusterNode.h:63
void SetNodeRole(const Aws::String &value)
Definition ClusterNode.h:48
ClusterNode & WithNodeRole(Aws::String &&value)
Definition ClusterNode.h:52
const Aws::String & GetNodeRole() const
Definition ClusterNode.h:46
ClusterNode & WithPrivateIPAddress(Aws::String &&value)
Definition ClusterNode.h:66
ClusterNode & WithPrivateIPAddress(const Aws::String &value)
Definition ClusterNode.h:65
void SetPublicIPAddress(const Aws::String &value)
Definition ClusterNode.h:76
AWS_REDSHIFT_API ClusterNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterNode & WithPublicIPAddress(const char *value)
Definition ClusterNode.h:81
void SetPublicIPAddress(Aws::String &&value)
Definition ClusterNode.h:77
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:78
ClusterNode & WithPublicIPAddress(Aws::String &&value)
Definition ClusterNode.h:80
void SetPrivateIPAddress(const Aws::String &value)
Definition ClusterNode.h:62
void SetNodeRole(Aws::String &&value)
Definition ClusterNode.h:49
ClusterNode & WithPrivateIPAddress(const char *value)
Definition ClusterNode.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream