AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ClusterSubnetGroup.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
48 inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
49
53 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
54
58 inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
59
63 inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
64
68 inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
69
74
78 inline ClusterSubnetGroup& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;}
79
83 inline ClusterSubnetGroup& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
84
85
89 inline const Aws::String& GetDescription() const{ return m_description; }
90
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95
99 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110
114 inline ClusterSubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115
119 inline ClusterSubnetGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
120
124 inline ClusterSubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
125
126
130 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
131
135 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
136
140 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
141
145 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
146
150 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
151
155 inline ClusterSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
156
160 inline ClusterSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
161
165 inline ClusterSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
166
167
172 inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
173
178 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
179
184 inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
185
190 inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
191
196 inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
197
202 inline ClusterSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
203
208 inline ClusterSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
209
214 inline ClusterSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
215
216
220 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
221
225 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
226
230 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
231
235 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
236
240 inline ClusterSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
241
245 inline ClusterSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
246
250 inline ClusterSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
251
255 inline ClusterSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
256
257
261 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
262
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267
271 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
272
276 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
277
281 inline ClusterSubnetGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
282
286 inline ClusterSubnetGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
287
291 inline ClusterSubnetGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
292
296 inline ClusterSubnetGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
297
298 private:
299
300 Aws::String m_clusterSubnetGroupName;
301 bool m_clusterSubnetGroupNameHasBeenSet = false;
302
303 Aws::String m_description;
304 bool m_descriptionHasBeenSet = false;
305
306 Aws::String m_vpcId;
307 bool m_vpcIdHasBeenSet = false;
308
309 Aws::String m_subnetGroupStatus;
310 bool m_subnetGroupStatusHasBeenSet = false;
311
312 Aws::Vector<Subnet> m_subnets;
313 bool m_subnetsHasBeenSet = false;
314
315 Aws::Vector<Tag> m_tags;
316 bool m_tagsHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace Redshift
321} // namespace Aws
#define AWS_REDSHIFT_API
ClusterSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
ClusterSubnetGroup & WithTags(const Aws::Vector< Tag > &value)
void SetSubnets(const Aws::Vector< Subnet > &value)
ClusterSubnetGroup & WithVpcId(const Aws::String &value)
void SetVpcId(const Aws::String &value)
void SetClusterSubnetGroupName(const char *value)
void SetSubnetGroupStatus(const Aws::String &value)
ClusterSubnetGroup & AddTags(Tag &&value)
ClusterSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
ClusterSubnetGroup & WithDescription(Aws::String &&value)
const Aws::String & GetClusterSubnetGroupName() const
const Aws::Vector< Tag > & GetTags() const
ClusterSubnetGroup & WithVpcId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
ClusterSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
ClusterSubnetGroup & WithClusterSubnetGroupName(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
ClusterSubnetGroup & AddTags(const Tag &value)
ClusterSubnetGroup & WithDescription(const char *value)
ClusterSubnetGroup & WithDescription(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubnets(Aws::Vector< Subnet > &&value)
void SetSubnetGroupStatus(Aws::String &&value)
AWS_REDSHIFT_API ClusterSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithSubnetGroupStatus(const char *value)
ClusterSubnetGroup & WithVpcId(const char *value)
void SetClusterSubnetGroupName(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(const Aws::String &value)
AWS_REDSHIFT_API ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithClusterSubnetGroupName(const Aws::String &value)
ClusterSubnetGroup & WithClusterSubnetGroupName(const char *value)
void SetClusterSubnetGroupName(Aws::String &&value)
ClusterSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
ClusterSubnetGroup & AddSubnets(const Subnet &value)
ClusterSubnetGroup & AddSubnets(Subnet &&value)
ClusterSubnetGroup & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDescription() const
const Aws::Vector< Subnet > & GetSubnets() const
const Aws::String & GetSubnetGroupStatus() 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