AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
NodeConfigurationOption.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
46 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
47
51 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
52
56 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
57
61 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
62
66 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
67
71 inline NodeConfigurationOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
72
76 inline NodeConfigurationOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
77
81 inline NodeConfigurationOption& WithNodeType(const char* value) { SetNodeType(value); return *this;}
82
83
87 inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
88
92 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
93
97 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
98
102 inline NodeConfigurationOption& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
103
104
108 inline double GetEstimatedDiskUtilizationPercent() const{ return m_estimatedDiskUtilizationPercent; }
109
113 inline bool EstimatedDiskUtilizationPercentHasBeenSet() const { return m_estimatedDiskUtilizationPercentHasBeenSet; }
114
118 inline void SetEstimatedDiskUtilizationPercent(double value) { m_estimatedDiskUtilizationPercentHasBeenSet = true; m_estimatedDiskUtilizationPercent = value; }
119
124
125
129 inline const Mode& GetMode() const{ return m_mode; }
130
134 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
135
139 inline void SetMode(const Mode& value) { m_modeHasBeenSet = true; m_mode = value; }
140
144 inline void SetMode(Mode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
145
149 inline NodeConfigurationOption& WithMode(const Mode& value) { SetMode(value); return *this;}
150
154 inline NodeConfigurationOption& WithMode(Mode&& value) { SetMode(std::move(value)); return *this;}
155
156 private:
157
158 Aws::String m_nodeType;
159 bool m_nodeTypeHasBeenSet = false;
160
161 int m_numberOfNodes;
162 bool m_numberOfNodesHasBeenSet = false;
163
164 double m_estimatedDiskUtilizationPercent;
165 bool m_estimatedDiskUtilizationPercentHasBeenSet = false;
166
167 Mode m_mode;
168 bool m_modeHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Redshift
173} // namespace Aws
#define AWS_REDSHIFT_API
NodeConfigurationOption & WithNodeType(const Aws::String &value)
NodeConfigurationOption & WithNumberOfNodes(int value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NodeConfigurationOption & WithNodeType(Aws::String &&value)
NodeConfigurationOption & WithMode(Mode &&value)
AWS_REDSHIFT_API NodeConfigurationOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NodeConfigurationOption & WithNodeType(const char *value)
AWS_REDSHIFT_API NodeConfigurationOption(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeConfigurationOption & WithEstimatedDiskUtilizationPercent(double value)
NodeConfigurationOption & WithMode(const Mode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream