AWS SDK for C++  1.9.105
AWS SDK for C++
ClusterSubnetGroup.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/redshift/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  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 
73  inline ClusterSubnetGroup& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
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;
302 
303  Aws::String m_description;
304  bool m_descriptionHasBeenSet;
305 
306  Aws::String m_vpcId;
307  bool m_vpcIdHasBeenSet;
308 
309  Aws::String m_subnetGroupStatus;
310  bool m_subnetGroupStatusHasBeenSet;
311 
312  Aws::Vector<Subnet> m_subnets;
313  bool m_subnetsHasBeenSet;
314 
315  Aws::Vector<Tag> m_tags;
316  bool m_tagsHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace Redshift
321 } // namespace Aws
Aws::Redshift::Model::ClusterSubnetGroup::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(const char *value)
Definition: ClusterSubnetGroup.h:68
Aws::Redshift::Model::ClusterSubnetGroup::WithDescription
ClusterSubnetGroup & WithDescription(const Aws::String &value)
Definition: ClusterSubnetGroup.h:114
Aws::Redshift::Model::ClusterSubnetGroup
Definition: ClusterSubnetGroup.h:35
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::ClusterSubnetGroup::SubnetGroupStatusHasBeenSet
bool SubnetGroupStatusHasBeenSet() const
Definition: ClusterSubnetGroup.h:178
Aws::Redshift::Model::ClusterSubnetGroup::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ClusterSubnetGroup.h:266
Aws::Redshift::Model::ClusterSubnetGroup::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(Aws::String &&value)
Definition: ClusterSubnetGroup.h:63
Aws::Redshift::Model::ClusterSubnetGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: ClusterSubnetGroup.h:140
Aws::Redshift::Model::ClusterSubnetGroup::SetDescription
void SetDescription(const char *value)
Definition: ClusterSubnetGroup.h:109
Aws::Redshift::Model::ClusterSubnetGroup::WithClusterSubnetGroupName
ClusterSubnetGroup & WithClusterSubnetGroupName(const char *value)
Definition: ClusterSubnetGroup.h:83
Aws::Redshift::Model::ClusterSubnetGroup::WithVpcId
ClusterSubnetGroup & WithVpcId(Aws::String &&value)
Definition: ClusterSubnetGroup.h:160
Aws::Redshift::Model::ClusterSubnetGroup::WithSubnetGroupStatus
ClusterSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
Definition: ClusterSubnetGroup.h:202
Aws::Redshift::Model::ClusterSubnetGroup::WithVpcId
ClusterSubnetGroup & WithVpcId(const char *value)
Definition: ClusterSubnetGroup.h:165
Tag.h
Aws::Redshift::Model::ClusterSubnetGroup::WithSubnetGroupStatus
ClusterSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
Definition: ClusterSubnetGroup.h:208
Aws::Redshift::Model::ClusterSubnetGroup::WithSubnetGroupStatus
ClusterSubnetGroup & WithSubnetGroupStatus(const char *value)
Definition: ClusterSubnetGroup.h:214
Aws::Redshift::Model::ClusterSubnetGroup::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ClusterSubnetGroup.h:271
Aws::Redshift::Model::ClusterSubnetGroup::SetDescription
void SetDescription(Aws::String &&value)
Definition: ClusterSubnetGroup.h:104
Aws::Redshift::Model::ClusterSubnetGroup::WithSubnets
ClusterSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
Definition: ClusterSubnetGroup.h:245
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::ClusterSubnetGroup::operator=
ClusterSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterSubnetGroup::GetSubnets
const Aws::Vector< Subnet > & GetSubnets() const
Definition: ClusterSubnetGroup.h:220
AWSVector.h
Aws::Redshift::Model::ClusterSubnetGroup::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: ClusterSubnetGroup.h:225
Aws::Redshift::Model::ClusterSubnetGroup::AddTags
ClusterSubnetGroup & AddTags(const Tag &value)
Definition: ClusterSubnetGroup.h:291
Aws::Redshift::Model::ClusterSubnetGroup::SetDescription
void SetDescription(const Aws::String &value)
Definition: ClusterSubnetGroup.h:99
Aws::Redshift::Model::ClusterSubnetGroup::WithClusterSubnetGroupName
ClusterSubnetGroup & WithClusterSubnetGroupName(Aws::String &&value)
Definition: ClusterSubnetGroup.h:78
Aws::Redshift::Model::ClusterSubnetGroup::WithTags
ClusterSubnetGroup & WithTags(const Aws::Vector< Tag > &value)
Definition: ClusterSubnetGroup.h:281
Aws::Redshift::Model::ClusterSubnetGroup::SetVpcId
void SetVpcId(const char *value)
Definition: ClusterSubnetGroup.h:150
Aws::Redshift::Model::ClusterSubnetGroup::WithSubnets
ClusterSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
Definition: ClusterSubnetGroup.h:240
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ClusterSubnetGroup::AddTags
ClusterSubnetGroup & AddTags(Tag &&value)
Definition: ClusterSubnetGroup.h:296
Aws::Redshift::Model::ClusterSubnetGroup::GetSubnetGroupStatus
const Aws::String & GetSubnetGroupStatus() const
Definition: ClusterSubnetGroup.h:172
Aws::Redshift::Model::ClusterSubnetGroup::AddSubnets
ClusterSubnetGroup & AddSubnets(Subnet &&value)
Definition: ClusterSubnetGroup.h:255
Aws::Redshift::Model::ClusterSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(const Aws::String &value)
Definition: ClusterSubnetGroup.h:184
Aws::Redshift::Model::ClusterSubnetGroup::WithTags
ClusterSubnetGroup & WithTags(Aws::Vector< Tag > &&value)
Definition: ClusterSubnetGroup.h:286
Aws::Redshift::Model::ClusterSubnetGroup::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ClusterSubnetGroup.h:94
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterSubnetGroup::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ClusterSubnetGroup.h:276
Aws::Redshift::Model::ClusterSubnetGroup::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ClusterSubnetGroup.h:261
Aws::Redshift::Model::ClusterSubnetGroup::AddSubnets
ClusterSubnetGroup & AddSubnets(const Subnet &value)
Definition: ClusterSubnetGroup.h:250
Aws::Redshift::Model::ClusterSubnetGroup::GetDescription
const Aws::String & GetDescription() const
Definition: ClusterSubnetGroup.h:89
AWSString.h
Aws::Redshift::Model::ClusterSubnetGroup::WithClusterSubnetGroupName
ClusterSubnetGroup & WithClusterSubnetGroupName(const Aws::String &value)
Definition: ClusterSubnetGroup.h:73
Aws::Redshift::Model::ClusterSubnetGroup::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(const Aws::String &value)
Definition: ClusterSubnetGroup.h:58
Aws::Redshift::Model::ClusterSubnetGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ClusterSubnetGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ClusterSubnetGroup::ClusterSubnetGroup
ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterSubnetGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: ClusterSubnetGroup.h:145
Aws::Redshift::Model::ClusterSubnetGroup::WithDescription
ClusterSubnetGroup & WithDescription(const char *value)
Definition: ClusterSubnetGroup.h:124
Aws::Redshift::Model::ClusterSubnetGroup::SetSubnets
void SetSubnets(Aws::Vector< Subnet > &&value)
Definition: ClusterSubnetGroup.h:235
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ClusterSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(Aws::String &&value)
Definition: ClusterSubnetGroup.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::Subnet
Definition: Subnet.h:33
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterSubnetGroup::WithVpcId
ClusterSubnetGroup & WithVpcId(const Aws::String &value)
Definition: ClusterSubnetGroup.h:155
Aws::Redshift::Model::ClusterSubnetGroup::ClusterSubnetGroupNameHasBeenSet
bool ClusterSubnetGroupNameHasBeenSet() const
Definition: ClusterSubnetGroup.h:53
Aws::Redshift::Model::ClusterSubnetGroup::WithDescription
ClusterSubnetGroup & WithDescription(Aws::String &&value)
Definition: ClusterSubnetGroup.h:119
Aws::Redshift::Model::ClusterSubnetGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: ClusterSubnetGroup.h:135
Aws::Redshift::Model::ClusterSubnetGroup::ClusterSubnetGroup
ClusterSubnetGroup()
Aws::Redshift::Model::ClusterSubnetGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: ClusterSubnetGroup.h:130
Aws::Redshift::Model::ClusterSubnetGroup::GetClusterSubnetGroupName
const Aws::String & GetClusterSubnetGroupName() const
Definition: ClusterSubnetGroup.h:48
Aws::Redshift::Model::ClusterSubnetGroup::SetSubnets
void SetSubnets(const Aws::Vector< Subnet > &value)
Definition: ClusterSubnetGroup.h:230
Aws::Redshift::Model::ClusterSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(const char *value)
Definition: ClusterSubnetGroup.h:196
Subnet.h