AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
50 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
51 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
52 inline NodeConfigurationOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
53 inline NodeConfigurationOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
54 inline NodeConfigurationOption& WithNodeType(const char* value) { SetNodeType(value); return *this;}
56
58
61 inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
62 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
63 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
64 inline NodeConfigurationOption& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
66
68
71 inline double GetEstimatedDiskUtilizationPercent() const{ return m_estimatedDiskUtilizationPercent; }
72 inline bool EstimatedDiskUtilizationPercentHasBeenSet() const { return m_estimatedDiskUtilizationPercentHasBeenSet; }
73 inline void SetEstimatedDiskUtilizationPercent(double value) { m_estimatedDiskUtilizationPercentHasBeenSet = true; m_estimatedDiskUtilizationPercent = value; }
76
78
81 inline const Mode& GetMode() const{ return m_mode; }
82 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
83 inline void SetMode(const Mode& value) { m_modeHasBeenSet = true; m_mode = value; }
84 inline void SetMode(Mode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
85 inline NodeConfigurationOption& WithMode(const Mode& value) { SetMode(value); return *this;}
86 inline NodeConfigurationOption& WithMode(Mode&& value) { SetMode(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_nodeType;
91 bool m_nodeTypeHasBeenSet = false;
92
93 int m_numberOfNodes;
94 bool m_numberOfNodesHasBeenSet = false;
95
96 double m_estimatedDiskUtilizationPercent;
97 bool m_estimatedDiskUtilizationPercentHasBeenSet = false;
98
99 Mode m_mode;
100 bool m_modeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Redshift
105} // namespace Aws
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