AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterNode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
28 public:
29 AWS_REDSHIFT_API ClusterNode() = default;
30 AWS_REDSHIFT_API ClusterNode(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_REDSHIFT_API ClusterNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetNodeRole() const { return m_nodeRole; }
41 inline bool NodeRoleHasBeenSet() const { return m_nodeRoleHasBeenSet; }
42 template <typename NodeRoleT = Aws::String>
43 void SetNodeRole(NodeRoleT&& value) {
44 m_nodeRoleHasBeenSet = true;
45 m_nodeRole = std::forward<NodeRoleT>(value);
46 }
47 template <typename NodeRoleT = Aws::String>
48 ClusterNode& WithNodeRole(NodeRoleT&& value) {
49 SetNodeRole(std::forward<NodeRoleT>(value));
50 return *this;
51 }
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) {
62 m_privateIPAddressHasBeenSet = true;
63 m_privateIPAddress = std::forward<PrivateIPAddressT>(value);
64 }
65 template <typename PrivateIPAddressT = Aws::String>
66 ClusterNode& WithPrivateIPAddress(PrivateIPAddressT&& value) {
67 SetPrivateIPAddress(std::forward<PrivateIPAddressT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPublicIPAddress() const { return m_publicIPAddress; }
77 inline bool PublicIPAddressHasBeenSet() const { return m_publicIPAddressHasBeenSet; }
78 template <typename PublicIPAddressT = Aws::String>
79 void SetPublicIPAddress(PublicIPAddressT&& value) {
80 m_publicIPAddressHasBeenSet = true;
81 m_publicIPAddress = std::forward<PublicIPAddressT>(value);
82 }
83 template <typename PublicIPAddressT = Aws::String>
84 ClusterNode& WithPublicIPAddress(PublicIPAddressT&& value) {
85 SetPublicIPAddress(std::forward<PublicIPAddressT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_nodeRole;
91
92 Aws::String m_privateIPAddress;
93
94 Aws::String m_publicIPAddress;
95 bool m_nodeRoleHasBeenSet = false;
96 bool m_privateIPAddressHasBeenSet = false;
97 bool m_publicIPAddressHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Redshift
102} // namespace Aws
ClusterNode & WithPrivateIPAddress(PrivateIPAddressT &&value)
Definition ClusterNode.h:66
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:43
AWS_REDSHIFT_API ClusterNode()=default
ClusterNode & WithPublicIPAddress(PublicIPAddressT &&value)
Definition ClusterNode.h:84
const Aws::String & GetPublicIPAddress() const
Definition ClusterNode.h:76
void SetPublicIPAddress(PublicIPAddressT &&value)
Definition ClusterNode.h:79
const Aws::String & GetNodeRole() const
Definition ClusterNode.h:40
ClusterNode & WithNodeRole(NodeRoleT &&value)
Definition ClusterNode.h:48
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