AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NodeConfigurationOption.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 <aws/redshift/model/Mode.h>
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:
35 AWS_REDSHIFT_API NodeConfigurationOption() = default;
36 AWS_REDSHIFT_API NodeConfigurationOption(const Aws::Utils::Xml::XmlNode& xmlNode);
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
44
47 inline const Aws::String& GetNodeType() const { return m_nodeType; }
48 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
49 template<typename NodeTypeT = Aws::String>
50 void SetNodeType(NodeTypeT&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::forward<NodeTypeT>(value); }
51 template<typename NodeTypeT = Aws::String>
52 NodeConfigurationOption& WithNodeType(NodeTypeT&& value) { SetNodeType(std::forward<NodeTypeT>(value)); return *this;}
54
56
59 inline int GetNumberOfNodes() const { return m_numberOfNodes; }
60 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
61 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
62 inline NodeConfigurationOption& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
64
66
69 inline double GetEstimatedDiskUtilizationPercent() const { return m_estimatedDiskUtilizationPercent; }
70 inline bool EstimatedDiskUtilizationPercentHasBeenSet() const { return m_estimatedDiskUtilizationPercentHasBeenSet; }
71 inline void SetEstimatedDiskUtilizationPercent(double value) { m_estimatedDiskUtilizationPercentHasBeenSet = true; m_estimatedDiskUtilizationPercent = value; }
74
76
79 inline Mode GetMode() const { return m_mode; }
80 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
81 inline void SetMode(Mode value) { m_modeHasBeenSet = true; m_mode = value; }
82 inline NodeConfigurationOption& WithMode(Mode value) { SetMode(value); return *this;}
84 private:
85
86 Aws::String m_nodeType;
87 bool m_nodeTypeHasBeenSet = false;
88
89 int m_numberOfNodes{0};
90 bool m_numberOfNodesHasBeenSet = false;
91
92 double m_estimatedDiskUtilizationPercent{0.0};
93 bool m_estimatedDiskUtilizationPercentHasBeenSet = false;
94
95 Mode m_mode{Mode::NOT_SET};
96 bool m_modeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Redshift
101} // namespace Aws
NodeConfigurationOption & WithNumberOfNodes(int value)
AWS_REDSHIFT_API NodeConfigurationOption()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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
AWS_REDSHIFT_API NodeConfigurationOption(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeConfigurationOption & WithEstimatedDiskUtilizationPercent(double value)
NodeConfigurationOption & WithNodeType(NodeTypeT &&value)
NodeConfigurationOption & WithMode(Mode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream