AWS SDK for C++  1.9.104
AWS SDK for C++
NodeConfigurationOption.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  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 
123  inline NodeConfigurationOption& WithEstimatedDiskUtilizationPercent(double value) { SetEstimatedDiskUtilizationPercent(value); return *this;}
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;
160 
161  int m_numberOfNodes;
162  bool m_numberOfNodesHasBeenSet;
163 
164  double m_estimatedDiskUtilizationPercent;
165  bool m_estimatedDiskUtilizationPercentHasBeenSet;
166 
167  Mode m_mode;
168  bool m_modeHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace Redshift
173 } // namespace Aws
Aws::Redshift::Model::Mode
Mode
Definition: Mode.h:17
Aws::Redshift::Model::NodeConfigurationOption::SetEstimatedDiskUtilizationPercent
void SetEstimatedDiskUtilizationPercent(double value)
Definition: NodeConfigurationOption.h:118
Aws::Redshift::Model::NodeConfigurationOption::SetMode
void SetMode(Mode &&value)
Definition: NodeConfigurationOption.h:144
Aws::Redshift::Model::NodeConfigurationOption::WithNumberOfNodes
NodeConfigurationOption & WithNumberOfNodes(int value)
Definition: NodeConfigurationOption.h:102
Aws::Redshift::Model::NodeConfigurationOption::NodeConfigurationOption
NodeConfigurationOption(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::NodeConfigurationOption::GetEstimatedDiskUtilizationPercent
double GetEstimatedDiskUtilizationPercent() const
Definition: NodeConfigurationOption.h:108
Aws::Redshift::Model::NodeConfigurationOption::NumberOfNodesHasBeenSet
bool NumberOfNodesHasBeenSet() const
Definition: NodeConfigurationOption.h:92
Aws::Redshift::Model::NodeConfigurationOption::WithNodeType
NodeConfigurationOption & WithNodeType(const char *value)
Definition: NodeConfigurationOption.h:81
Aws::Redshift::Model::NodeConfigurationOption::GetMode
const Mode & GetMode() const
Definition: NodeConfigurationOption.h:129
AWSStreamFwd.h
Aws::Redshift::Model::NodeConfigurationOption::NodeConfigurationOption
NodeConfigurationOption()
Aws::Redshift::Model::NodeConfigurationOption::WithEstimatedDiskUtilizationPercent
NodeConfigurationOption & WithEstimatedDiskUtilizationPercent(double value)
Definition: NodeConfigurationOption.h:123
Aws::Redshift::Model::NodeConfigurationOption::SetNodeType
void SetNodeType(const char *value)
Definition: NodeConfigurationOption.h:66
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::NodeConfigurationOption::WithMode
NodeConfigurationOption & WithMode(const Mode &value)
Definition: NodeConfigurationOption.h:149
Aws::Redshift::Model::NodeConfigurationOption::WithNodeType
NodeConfigurationOption & WithNodeType(const Aws::String &value)
Definition: NodeConfigurationOption.h:71
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::NodeConfigurationOption::GetNodeType
const Aws::String & GetNodeType() const
Definition: NodeConfigurationOption.h:46
Aws::Redshift::Model::NodeConfigurationOption::WithNodeType
NodeConfigurationOption & WithNodeType(Aws::String &&value)
Definition: NodeConfigurationOption.h:76
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::NodeConfigurationOption::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::Redshift::Model::NodeConfigurationOption::SetNodeType
void SetNodeType(const Aws::String &value)
Definition: NodeConfigurationOption.h:56
Aws::Redshift::Model::NodeConfigurationOption::EstimatedDiskUtilizationPercentHasBeenSet
bool EstimatedDiskUtilizationPercentHasBeenSet() const
Definition: NodeConfigurationOption.h:113
Aws::Redshift::Model::NodeConfigurationOption::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: NodeConfigurationOption.h:134
Aws::Redshift::Model::NodeConfigurationOption::SetNodeType
void SetNodeType(Aws::String &&value)
Definition: NodeConfigurationOption.h:61
Aws::Redshift::Model::NodeConfigurationOption::GetNumberOfNodes
int GetNumberOfNodes() const
Definition: NodeConfigurationOption.h:87
Aws::Redshift::Model::NodeConfigurationOption::NodeTypeHasBeenSet
bool NodeTypeHasBeenSet() const
Definition: NodeConfigurationOption.h:51
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::NodeConfigurationOption
Definition: NodeConfigurationOption.h:33
Aws::Redshift::Model::NodeConfigurationOption::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::NodeConfigurationOption::SetNumberOfNodes
void SetNumberOfNodes(int value)
Definition: NodeConfigurationOption.h:97
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::NodeConfigurationOption::operator=
NodeConfigurationOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::NodeConfigurationOption::SetMode
void SetMode(const Mode &value)
Definition: NodeConfigurationOption.h:139
Aws::Redshift::Model::NodeConfigurationOption::WithMode
NodeConfigurationOption & WithMode(Mode &&value)
Definition: NodeConfigurationOption.h:154
Mode.h