AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrderableClusterOption.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/AvailabilityZone.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_REDSHIFT_API OrderableClusterOption();
37 AWS_REDSHIFT_API OrderableClusterOption(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
49 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
50 inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
51 inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::move(value); }
52 inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
53 inline OrderableClusterOption& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
54 inline OrderableClusterOption& WithClusterVersion(Aws::String&& value) { SetClusterVersion(std::move(value)); return *this;}
55 inline OrderableClusterOption& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
57
59
62 inline const Aws::String& GetClusterType() const{ return m_clusterType; }
63 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
64 inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
65 inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
66 inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
67 inline OrderableClusterOption& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
68 inline OrderableClusterOption& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;}
69 inline OrderableClusterOption& WithClusterType(const char* value) { SetClusterType(value); return *this;}
71
73
76 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
77 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
78 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
79 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
80 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
81 inline OrderableClusterOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
82 inline OrderableClusterOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
83 inline OrderableClusterOption& WithNodeType(const char* value) { SetNodeType(value); return *this;}
85
87
90 inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
91 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
92 inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
93 inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
96 inline OrderableClusterOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
97 inline OrderableClusterOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_clusterVersion;
102 bool m_clusterVersionHasBeenSet = false;
103
104 Aws::String m_clusterType;
105 bool m_clusterTypeHasBeenSet = false;
106
107 Aws::String m_nodeType;
108 bool m_nodeTypeHasBeenSet = false;
109
110 Aws::Vector<AvailabilityZone> m_availabilityZones;
111 bool m_availabilityZonesHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Redshift
116} // namespace Aws
AWS_REDSHIFT_API OrderableClusterOption(const Aws::Utils::Xml::XmlNode &xmlNode)
OrderableClusterOption & WithClusterVersion(const Aws::String &value)
OrderableClusterOption & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
AWS_REDSHIFT_API OrderableClusterOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OrderableClusterOption & WithClusterVersion(const char *value)
OrderableClusterOption & WithClusterVersion(Aws::String &&value)
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
OrderableClusterOption & WithClusterType(Aws::String &&value)
OrderableClusterOption & WithNodeType(const Aws::String &value)
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
OrderableClusterOption & WithClusterType(const char *value)
OrderableClusterOption & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
OrderableClusterOption & AddAvailabilityZones(AvailabilityZone &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OrderableClusterOption & WithClusterType(const Aws::String &value)
OrderableClusterOption & AddAvailabilityZones(const AvailabilityZone &value)
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
OrderableClusterOption & WithNodeType(const char *value)
OrderableClusterOption & WithNodeType(Aws::String &&value)
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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream