AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NodeRoleT = Aws::String>
49 void SetNodeRole(NodeRoleT&& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = std::forward<NodeRoleT>(value); }
50 template<typename NodeRoleT = Aws::String>
51 ClusterNode& WithNodeRole(NodeRoleT&& value) { SetNodeRole(std::forward<NodeRoleT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPrivateIPAddress() const { return m_privateIPAddress; }
59 inline bool PrivateIPAddressHasBeenSet() const { return m_privateIPAddressHasBeenSet; }
60 template<typename PrivateIPAddressT = Aws::String>
61 void SetPrivateIPAddress(PrivateIPAddressT&& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = std::forward<PrivateIPAddressT>(value); }
62 template<typename PrivateIPAddressT = Aws::String>
63 ClusterNode& WithPrivateIPAddress(PrivateIPAddressT&& value) { SetPrivateIPAddress(std::forward<PrivateIPAddressT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPublicIPAddress() const { return m_publicIPAddress; }
71 inline bool PublicIPAddressHasBeenSet() const { return m_publicIPAddressHasBeenSet; }
72 template<typename PublicIPAddressT = Aws::String>
73 void SetPublicIPAddress(PublicIPAddressT&& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = std::forward<PublicIPAddressT>(value); }
74 template<typename PublicIPAddressT = Aws::String>
75 ClusterNode& WithPublicIPAddress(PublicIPAddressT&& value) { SetPublicIPAddress(std::forward<PublicIPAddressT>(value)); return *this;}
77 private:
78
79 Aws::String m_nodeRole;
80 bool m_nodeRoleHasBeenSet = false;
81
82 Aws::String m_privateIPAddress;
83 bool m_privateIPAddressHasBeenSet = false;
84
85 Aws::String m_publicIPAddress;
86 bool m_publicIPAddressHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Redshift
91} // namespace Aws
ClusterNode & WithPrivateIPAddress(PrivateIPAddressT &&value)
Definition ClusterNode.h:63
AWS_REDSHIFT_API ClusterNode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrivateIPAddress() const
Definition ClusterNode.h:58
void SetPrivateIPAddress(PrivateIPAddressT &&value)
Definition ClusterNode.h:61
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNodeRole(NodeRoleT &&value)
Definition ClusterNode.h:49
AWS_REDSHIFT_API ClusterNode()=default
ClusterNode & WithPublicIPAddress(PublicIPAddressT &&value)
Definition ClusterNode.h:75
const Aws::String & GetPublicIPAddress() const
Definition ClusterNode.h:70
void SetPublicIPAddress(PublicIPAddressT &&value)
Definition ClusterNode.h:73
const Aws::String & GetNodeRole() const
Definition ClusterNode.h:46
ClusterNode & WithNodeRole(NodeRoleT &&value)
Definition ClusterNode.h:51
AWS_REDSHIFT_API ClusterNode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream