AWS SDK for C++  1.9.110
AWS SDK for C++
OrderableClusterOption.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
48 
52  inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
53 
57  inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
58 
62  inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::move(value); }
63 
67  inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
68 
72  inline OrderableClusterOption& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
73 
77  inline OrderableClusterOption& WithClusterVersion(Aws::String&& value) { SetClusterVersion(std::move(value)); return *this;}
78 
82  inline OrderableClusterOption& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
83 
84 
88  inline const Aws::String& GetClusterType() const{ return m_clusterType; }
89 
93  inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
94 
98  inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
99 
103  inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
104 
108  inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
109 
113  inline OrderableClusterOption& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
114 
118  inline OrderableClusterOption& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;}
119 
123  inline OrderableClusterOption& WithClusterType(const char* value) { SetClusterType(value); return *this;}
124 
125 
129  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
130 
134  inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
135 
139  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
140 
144  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
145 
149  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
150 
154  inline OrderableClusterOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
155 
159  inline OrderableClusterOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
160 
164  inline OrderableClusterOption& WithNodeType(const char* value) { SetNodeType(value); return *this;}
165 
166 
170  inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
171 
175  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
176 
180  inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
181 
185  inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
186 
190  inline OrderableClusterOption& WithAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetAvailabilityZones(value); return *this;}
191 
195  inline OrderableClusterOption& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
196 
200  inline OrderableClusterOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
201 
205  inline OrderableClusterOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
206 
207  private:
208 
209  Aws::String m_clusterVersion;
210  bool m_clusterVersionHasBeenSet;
211 
212  Aws::String m_clusterType;
213  bool m_clusterTypeHasBeenSet;
214 
215  Aws::String m_nodeType;
216  bool m_nodeTypeHasBeenSet;
217 
218  Aws::Vector<AvailabilityZone> m_availabilityZones;
219  bool m_availabilityZonesHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace Redshift
224 } // namespace Aws
Aws::Redshift::Model::OrderableClusterOption::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: OrderableClusterOption.h:180
Aws::Redshift::Model::OrderableClusterOption::GetClusterVersion
const Aws::String & GetClusterVersion() const
Definition: OrderableClusterOption.h:47
Aws::Redshift::Model::OrderableClusterOption::WithClusterType
OrderableClusterOption & WithClusterType(const Aws::String &value)
Definition: OrderableClusterOption.h:113
Aws::Redshift::Model::OrderableClusterOption::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::OrderableClusterOption::ClusterTypeHasBeenSet
bool ClusterTypeHasBeenSet() const
Definition: OrderableClusterOption.h:93
Aws::Redshift::Model::OrderableClusterOption::SetClusterVersion
void SetClusterVersion(const Aws::String &value)
Definition: OrderableClusterOption.h:57
Aws::Redshift::Model::OrderableClusterOption::SetNodeType
void SetNodeType(const Aws::String &value)
Definition: OrderableClusterOption.h:139
Aws::Redshift::Model::OrderableClusterOption::SetNodeType
void SetNodeType(Aws::String &&value)
Definition: OrderableClusterOption.h:144
Aws::Redshift::Model::OrderableClusterOption::SetClusterType
void SetClusterType(const Aws::String &value)
Definition: OrderableClusterOption.h:98
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::OrderableClusterOption::AddAvailabilityZones
OrderableClusterOption & AddAvailabilityZones(AvailabilityZone &&value)
Definition: OrderableClusterOption.h:205
Aws::Redshift::Model::OrderableClusterOption::ClusterVersionHasBeenSet
bool ClusterVersionHasBeenSet() const
Definition: OrderableClusterOption.h:52
AWSVector.h
Aws::Redshift::Model::OrderableClusterOption::OrderableClusterOption
OrderableClusterOption(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::AvailabilityZone
Definition: AvailabilityZone.h:34
Aws::Redshift::Model::OrderableClusterOption::WithNodeType
OrderableClusterOption & WithNodeType(Aws::String &&value)
Definition: OrderableClusterOption.h:159
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::OrderableClusterOption::SetClusterType
void SetClusterType(Aws::String &&value)
Definition: OrderableClusterOption.h:103
Aws::Redshift::Model::OrderableClusterOption::WithClusterType
OrderableClusterOption & WithClusterType(const char *value)
Definition: OrderableClusterOption.h:123
Aws::Redshift::Model::OrderableClusterOption
Definition: OrderableClusterOption.h:34
Aws::Redshift::Model::OrderableClusterOption::WithClusterVersion
OrderableClusterOption & WithClusterVersion(const char *value)
Definition: OrderableClusterOption.h:82
Aws::Redshift::Model::OrderableClusterOption::SetClusterVersion
void SetClusterVersion(Aws::String &&value)
Definition: OrderableClusterOption.h:62
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::OrderableClusterOption::NodeTypeHasBeenSet
bool NodeTypeHasBeenSet() const
Definition: OrderableClusterOption.h:134
Aws::Redshift::Model::OrderableClusterOption::WithClusterVersion
OrderableClusterOption & WithClusterVersion(Aws::String &&value)
Definition: OrderableClusterOption.h:77
Aws::Redshift::Model::OrderableClusterOption::OrderableClusterOption
OrderableClusterOption()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::OrderableClusterOption::WithNodeType
OrderableClusterOption & WithNodeType(const char *value)
Definition: OrderableClusterOption.h:164
Aws::Redshift::Model::OrderableClusterOption::GetAvailabilityZones
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
Definition: OrderableClusterOption.h:170
AWSString.h
Aws::Redshift::Model::OrderableClusterOption::operator=
OrderableClusterOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::OrderableClusterOption::GetNodeType
const Aws::String & GetNodeType() const
Definition: OrderableClusterOption.h:129
Aws::Redshift::Model::OrderableClusterOption::SetClusterVersion
void SetClusterVersion(const char *value)
Definition: OrderableClusterOption.h:67
Aws::Redshift::Model::OrderableClusterOption::AddAvailabilityZones
OrderableClusterOption & AddAvailabilityZones(const AvailabilityZone &value)
Definition: OrderableClusterOption.h:200
Aws::Redshift::Model::OrderableClusterOption::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::OrderableClusterOption::GetClusterType
const Aws::String & GetClusterType() const
Definition: OrderableClusterOption.h:88
Aws::Redshift::Model::OrderableClusterOption::SetClusterType
void SetClusterType(const char *value)
Definition: OrderableClusterOption.h:108
Aws::Redshift::Model::OrderableClusterOption::WithAvailabilityZones
OrderableClusterOption & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: OrderableClusterOption.h:195
AvailabilityZone.h
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
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::OrderableClusterOption::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: OrderableClusterOption.h:185
Aws::Redshift::Model::OrderableClusterOption::SetNodeType
void SetNodeType(const char *value)
Definition: OrderableClusterOption.h:149
Aws::Redshift::Model::OrderableClusterOption::WithClusterVersion
OrderableClusterOption & WithClusterVersion(const Aws::String &value)
Definition: OrderableClusterOption.h:72
Aws::Redshift::Model::OrderableClusterOption::WithAvailabilityZones
OrderableClusterOption & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: OrderableClusterOption.h:190
Aws::Redshift::Model::OrderableClusterOption::WithNodeType
OrderableClusterOption & WithNodeType(const Aws::String &value)
Definition: OrderableClusterOption.h:154
Aws::Redshift::Model::OrderableClusterOption::AvailabilityZonesHasBeenSet
bool AvailabilityZonesHasBeenSet() const
Definition: OrderableClusterOption.h:175
Aws::Redshift::Model::OrderableClusterOption::WithClusterType
OrderableClusterOption & WithClusterType(Aws::String &&value)
Definition: OrderableClusterOption.h:118