AWS SDK for C++  1.9.108
AWS SDK for C++
DBSubnetGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <aws/rds/model/Subnet.h>
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 RDS
24 {
25 namespace Model
26 {
27 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
50 
54  inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
55 
59  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
60 
64  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
65 
69  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
70 
74  inline DBSubnetGroup& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
75 
79  inline DBSubnetGroup& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
80 
84  inline DBSubnetGroup& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
85 
86 
90  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
91 
95  inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
96 
100  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
101 
105  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
106 
110  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
111 
115  inline DBSubnetGroup& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
116 
120  inline DBSubnetGroup& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;}
121 
125  inline DBSubnetGroup& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
126 
127 
131  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
132 
136  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
137 
141  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
142 
146  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
147 
151  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
152 
156  inline DBSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
157 
161  inline DBSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
162 
166  inline DBSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
167 
168 
172  inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
173 
177  inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
178 
182  inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
183 
187  inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
188 
192  inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
193 
197  inline DBSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
198 
202  inline DBSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
203 
207  inline DBSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
208 
209 
213  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
214 
218  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
219 
223  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
224 
228  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
229 
233  inline DBSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
234 
238  inline DBSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
239 
243  inline DBSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
244 
248  inline DBSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
249 
250 
254  inline const Aws::String& GetDBSubnetGroupArn() const{ return m_dBSubnetGroupArn; }
255 
259  inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
260 
264  inline void SetDBSubnetGroupArn(const Aws::String& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = value; }
265 
269  inline void SetDBSubnetGroupArn(Aws::String&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::move(value); }
270 
274  inline void SetDBSubnetGroupArn(const char* value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn.assign(value); }
275 
279  inline DBSubnetGroup& WithDBSubnetGroupArn(const Aws::String& value) { SetDBSubnetGroupArn(value); return *this;}
280 
284  inline DBSubnetGroup& WithDBSubnetGroupArn(Aws::String&& value) { SetDBSubnetGroupArn(std::move(value)); return *this;}
285 
289  inline DBSubnetGroup& WithDBSubnetGroupArn(const char* value) { SetDBSubnetGroupArn(value); return *this;}
290 
291  private:
292 
293  Aws::String m_dBSubnetGroupName;
294  bool m_dBSubnetGroupNameHasBeenSet;
295 
296  Aws::String m_dBSubnetGroupDescription;
297  bool m_dBSubnetGroupDescriptionHasBeenSet;
298 
299  Aws::String m_vpcId;
300  bool m_vpcIdHasBeenSet;
301 
302  Aws::String m_subnetGroupStatus;
303  bool m_subnetGroupStatusHasBeenSet;
304 
305  Aws::Vector<Subnet> m_subnets;
306  bool m_subnetsHasBeenSet;
307 
308  Aws::String m_dBSubnetGroupArn;
309  bool m_dBSubnetGroupArnHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace RDS
314 } // namespace Aws
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const Aws::String &value)
Definition: DBSubnetGroup.h:100
Aws::RDS::Model::DBSubnetGroup::SetVpcId
void SetVpcId(const char *value)
Definition: DBSubnetGroup.h:151
Aws::RDS::Model::DBSubnetGroup::WithSubnetGroupStatus
DBSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
Definition: DBSubnetGroup.h:202
Aws::RDS::Model::DBSubnetGroup::WithVpcId
DBSubnetGroup & WithVpcId(const Aws::String &value)
Definition: DBSubnetGroup.h:156
Aws::RDS::Model::DBSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(Aws::String &&value)
Definition: DBSubnetGroup.h:187
Aws::RDS::Model::DBSubnetGroup::AddSubnets
DBSubnetGroup & AddSubnets(Subnet &&value)
Definition: DBSubnetGroup.h:248
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupName
void SetDBSubnetGroupName(Aws::String &&value)
Definition: DBSubnetGroup.h:64
Aws::RDS::Model::DBSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(const char *value)
Definition: DBSubnetGroup.h:192
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupArn
DBSubnetGroup & WithDBSubnetGroupArn(const Aws::String &value)
Definition: DBSubnetGroup.h:279
Aws::RDS::Model::DBSubnetGroup::GetDBSubnetGroupArn
const Aws::String & GetDBSubnetGroupArn() const
Definition: DBSubnetGroup.h:254
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupName
void SetDBSubnetGroupName(const Aws::String &value)
Definition: DBSubnetGroup.h:59
Aws::RDS::Model::DBSubnetGroup
Definition: DBSubnetGroup.h:36
Aws::RDS::Model::DBSubnetGroup::GetDBSubnetGroupName
const Aws::String & GetDBSubnetGroupName() const
Definition: DBSubnetGroup.h:49
Aws::RDS::Model::DBSubnetGroup::SetSubnets
void SetSubnets(const Aws::Vector< Subnet > &value)
Definition: DBSubnetGroup.h:223
Aws::RDS::Model::DBSubnetGroup::WithSubnetGroupStatus
DBSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
Definition: DBSubnetGroup.h:197
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupName
DBSubnetGroup & WithDBSubnetGroupName(const char *value)
Definition: DBSubnetGroup.h:84
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::DBSubnetGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: DBSubnetGroup.h:131
Aws::RDS::Model::DBSubnetGroup::WithSubnetGroupStatus
DBSubnetGroup & WithSubnetGroupStatus(const char *value)
Definition: DBSubnetGroup.h:207
AWSStreamFwd.h
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupDescription
DBSubnetGroup & WithDBSubnetGroupDescription(Aws::String &&value)
Definition: DBSubnetGroup.h:120
Aws::RDS::Model::DBSubnetGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: DBSubnetGroup.h:146
Aws::RDS::Model::DBSubnetGroup::AddSubnets
DBSubnetGroup & AddSubnets(const Subnet &value)
Definition: DBSubnetGroup.h:243
Aws::RDS::Model::DBSubnetGroup::WithVpcId
DBSubnetGroup & WithVpcId(const char *value)
Definition: DBSubnetGroup.h:166
AWSVector.h
Aws::RDS::Model::DBSubnetGroup::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: DBSubnetGroup.h:218
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupName
void SetDBSubnetGroupName(const char *value)
Definition: DBSubnetGroup.h:69
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupDescription
DBSubnetGroup & WithDBSubnetGroupDescription(const Aws::String &value)
Definition: DBSubnetGroup.h:115
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBSubnetGroup::DBSubnetGroup
DBSubnetGroup()
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(Aws::String &&value)
Definition: DBSubnetGroup.h:105
Aws::RDS::Model::DBSubnetGroup::DBSubnetGroup
DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBSubnetGroup::GetDBSubnetGroupDescription
const Aws::String & GetDBSubnetGroupDescription() const
Definition: DBSubnetGroup.h:90
Aws::RDS::Model::DBSubnetGroup::SetSubnets
void SetSubnets(Aws::Vector< Subnet > &&value)
Definition: DBSubnetGroup.h:228
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupArn
void SetDBSubnetGroupArn(const Aws::String &value)
Definition: DBSubnetGroup.h:264
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBSubnetGroup::GetSubnetGroupStatus
const Aws::String & GetSubnetGroupStatus() const
Definition: DBSubnetGroup.h:172
AWSString.h
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupArn
DBSubnetGroup & WithDBSubnetGroupArn(const char *value)
Definition: DBSubnetGroup.h:289
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupName
DBSubnetGroup & WithDBSubnetGroupName(Aws::String &&value)
Definition: DBSubnetGroup.h:79
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupArn
void SetDBSubnetGroupArn(const char *value)
Definition: DBSubnetGroup.h:274
Aws::RDS::Model::DBSubnetGroup::DBSubnetGroupNameHasBeenSet
bool DBSubnetGroupNameHasBeenSet() const
Definition: DBSubnetGroup.h:54
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const char *value)
Definition: DBSubnetGroup.h:110
Aws::RDS::Model::DBSubnetGroup::DBSubnetGroupDescriptionHasBeenSet
bool DBSubnetGroupDescriptionHasBeenSet() const
Definition: DBSubnetGroup.h:95
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupArn
DBSubnetGroup & WithDBSubnetGroupArn(Aws::String &&value)
Definition: DBSubnetGroup.h:284
Aws::RDS::Model::DBSubnetGroup::WithVpcId
DBSubnetGroup & WithVpcId(Aws::String &&value)
Definition: DBSubnetGroup.h:161
Aws::RDS::Model::DBSubnetGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: DBSubnetGroup.h:141
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBSubnetGroup::SetDBSubnetGroupArn
void SetDBSubnetGroupArn(Aws::String &&value)
Definition: DBSubnetGroup.h:269
Subnet.h
Aws::RDS::Model::DBSubnetGroup::GetSubnets
const Aws::Vector< Subnet > & GetSubnets() const
Definition: DBSubnetGroup.h:213
Aws::RDS::Model::DBSubnetGroup::SubnetGroupStatusHasBeenSet
bool SubnetGroupStatusHasBeenSet() const
Definition: DBSubnetGroup.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBSubnetGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBSubnetGroup::operator=
DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupName
DBSubnetGroup & WithDBSubnetGroupName(const Aws::String &value)
Definition: DBSubnetGroup.h:74
Aws::RDS::Model::DBSubnetGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::DBSubnetGroup::WithSubnets
DBSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
Definition: DBSubnetGroup.h:238
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::DBSubnetGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: DBSubnetGroup.h:136
Aws::RDS::Model::DBSubnetGroup::SetSubnetGroupStatus
void SetSubnetGroupStatus(const Aws::String &value)
Definition: DBSubnetGroup.h:182
Aws::RDS::Model::DBSubnetGroup::WithDBSubnetGroupDescription
DBSubnetGroup & WithDBSubnetGroupDescription(const char *value)
Definition: DBSubnetGroup.h:125
Aws::RDS::Model::DBSubnetGroup::WithSubnets
DBSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
Definition: DBSubnetGroup.h:233
Aws::RDS::Model::Subnet
Definition: Subnet.h:35
Aws::RDS::Model::DBSubnetGroup::DBSubnetGroupArnHasBeenSet
bool DBSubnetGroupArnHasBeenSet() const
Definition: DBSubnetGroup.h:259