AWS SDK for C++  1.9.19
AWS SDK for C++
DBSecurityGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
12 #include <aws/rds/model/IPRange.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 RDS
25 {
26 namespace Model
27 {
28 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
51 
55  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
56 
60  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
61 
65  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
66 
70  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
71 
75  inline DBSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
76 
80  inline DBSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
81 
85  inline DBSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
86 
87 
91  inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
92 
96  inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
97 
101  inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
102 
106  inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
107 
111  inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
112 
116  inline DBSecurityGroup& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
117 
121  inline DBSecurityGroup& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
122 
126  inline DBSecurityGroup& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
127 
128 
132  inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; }
133 
137  inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
138 
142  inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; }
143 
147  inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); }
148 
152  inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); }
153 
157  inline DBSecurityGroup& WithDBSecurityGroupDescription(const Aws::String& value) { SetDBSecurityGroupDescription(value); return *this;}
158 
162  inline DBSecurityGroup& WithDBSecurityGroupDescription(Aws::String&& value) { SetDBSecurityGroupDescription(std::move(value)); return *this;}
163 
167  inline DBSecurityGroup& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;}
168 
169 
173  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
174 
178  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
179 
183  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
184 
188  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
189 
193  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
194 
198  inline DBSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
199 
203  inline DBSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
204 
208  inline DBSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
209 
210 
214  inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
215 
219  inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
220 
224  inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
225 
229  inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); }
230 
234  inline DBSecurityGroup& WithEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { SetEC2SecurityGroups(value); return *this;}
235 
239  inline DBSecurityGroup& WithEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { SetEC2SecurityGroups(std::move(value)); return *this;}
240 
244  inline DBSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
245 
249  inline DBSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; }
250 
251 
255  inline const Aws::Vector<IPRange>& GetIPRanges() const{ return m_iPRanges; }
256 
260  inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; }
261 
265  inline void SetIPRanges(const Aws::Vector<IPRange>& value) { m_iPRangesHasBeenSet = true; m_iPRanges = value; }
266 
270  inline void SetIPRanges(Aws::Vector<IPRange>&& value) { m_iPRangesHasBeenSet = true; m_iPRanges = std::move(value); }
271 
275  inline DBSecurityGroup& WithIPRanges(const Aws::Vector<IPRange>& value) { SetIPRanges(value); return *this;}
276 
280  inline DBSecurityGroup& WithIPRanges(Aws::Vector<IPRange>&& value) { SetIPRanges(std::move(value)); return *this;}
281 
285  inline DBSecurityGroup& AddIPRanges(const IPRange& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(value); return *this; }
286 
290  inline DBSecurityGroup& AddIPRanges(IPRange&& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(std::move(value)); return *this; }
291 
292 
296  inline const Aws::String& GetDBSecurityGroupArn() const{ return m_dBSecurityGroupArn; }
297 
301  inline bool DBSecurityGroupArnHasBeenSet() const { return m_dBSecurityGroupArnHasBeenSet; }
302 
306  inline void SetDBSecurityGroupArn(const Aws::String& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = value; }
307 
311  inline void SetDBSecurityGroupArn(Aws::String&& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = std::move(value); }
312 
316  inline void SetDBSecurityGroupArn(const char* value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn.assign(value); }
317 
321  inline DBSecurityGroup& WithDBSecurityGroupArn(const Aws::String& value) { SetDBSecurityGroupArn(value); return *this;}
322 
326  inline DBSecurityGroup& WithDBSecurityGroupArn(Aws::String&& value) { SetDBSecurityGroupArn(std::move(value)); return *this;}
327 
331  inline DBSecurityGroup& WithDBSecurityGroupArn(const char* value) { SetDBSecurityGroupArn(value); return *this;}
332 
333  private:
334 
335  Aws::String m_ownerId;
336  bool m_ownerIdHasBeenSet;
337 
338  Aws::String m_dBSecurityGroupName;
339  bool m_dBSecurityGroupNameHasBeenSet;
340 
341  Aws::String m_dBSecurityGroupDescription;
342  bool m_dBSecurityGroupDescriptionHasBeenSet;
343 
344  Aws::String m_vpcId;
345  bool m_vpcIdHasBeenSet;
346 
347  Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
348  bool m_eC2SecurityGroupsHasBeenSet;
349 
350  Aws::Vector<IPRange> m_iPRanges;
351  bool m_iPRangesHasBeenSet;
352 
353  Aws::String m_dBSecurityGroupArn;
354  bool m_dBSecurityGroupArnHasBeenSet;
355  };
356 
357 } // namespace Model
358 } // namespace RDS
359 } // namespace Aws
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(const Aws::String &value)
Definition: DBSecurityGroup.h:157
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(const char *value)
Definition: DBSecurityGroup.h:111
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(const char *value)
Definition: DBSecurityGroup.h:70
Aws::RDS::Model::DBSecurityGroup::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: DBSecurityGroup.h:50
Aws::RDS::Model::DBSecurityGroup::WithEC2SecurityGroups
DBSecurityGroup & WithEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
Definition: DBSecurityGroup.h:239
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(const char *value)
Definition: DBSecurityGroup.h:331
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: DBSecurityGroup.h:183
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: DBSecurityGroup.h:65
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(Aws::String &&value)
Definition: DBSecurityGroup.h:326
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupName
DBSecurityGroup & WithDBSecurityGroupName(Aws::String &&value)
Definition: DBSecurityGroup.h:121
Aws::RDS::Model::DBSecurityGroup::WithEC2SecurityGroups
DBSecurityGroup & WithEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
Definition: DBSecurityGroup.h:234
Aws::RDS::Model::DBSecurityGroup::IPRangesHasBeenSet
bool IPRangesHasBeenSet() const
Definition: DBSecurityGroup.h:260
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: DBSecurityGroup.h:60
Aws::RDS::Model::DBSecurityGroup::GetDBSecurityGroupArn
const Aws::String & GetDBSecurityGroupArn() const
Definition: DBSecurityGroup.h:296
Aws::RDS::Model::DBSecurityGroup::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: DBSecurityGroup.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroup
DBSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::RDS::Model::DBSecurityGroup
Definition: DBSecurityGroup.h:37
Aws::RDS::Model::DBSecurityGroup::GetDBSecurityGroupName
const Aws::String & GetDBSecurityGroupName() const
Definition: DBSecurityGroup.h:91
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupName
DBSecurityGroup & WithDBSecurityGroupName(const char *value)
Definition: DBSecurityGroup.h:126
AWSVector.h
Aws::RDS::Model::DBSecurityGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: DBSecurityGroup.h:173
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: DBSecurityGroup.h:188
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(Aws::String &&value)
Definition: DBSecurityGroup.h:147
Aws::RDS::Model::IPRange
Definition: IPRange.h:33
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(Aws::String &&value)
Definition: DBSecurityGroup.h:311
Aws::RDS::Model::DBSecurityGroup::SetIPRanges
void SetIPRanges(Aws::Vector< IPRange > &&value)
Definition: DBSecurityGroup.h:270
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBSecurityGroup::SetEC2SecurityGroups
void SetEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
Definition: DBSecurityGroup.h:224
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const char *value)
Definition: DBSecurityGroup.h:152
RDS_EXPORTS.h
Aws::RDS::Model::DBSecurityGroup::EC2SecurityGroupsHasBeenSet
bool EC2SecurityGroupsHasBeenSet() const
Definition: DBSecurityGroup.h:219
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(const Aws::String &value)
Definition: DBSecurityGroup.h:306
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBSecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupName
DBSecurityGroup & WithDBSecurityGroupName(const Aws::String &value)
Definition: DBSecurityGroup.h:116
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(const char *value)
Definition: DBSecurityGroup.h:167
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(const Aws::String &value)
Definition: DBSecurityGroup.h:321
Aws::RDS::Model::DBSecurityGroup::AddEC2SecurityGroups
DBSecurityGroup & AddEC2SecurityGroups(const EC2SecurityGroup &value)
Definition: DBSecurityGroup.h:244
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(Aws::String &&value)
Definition: DBSecurityGroup.h:162
Aws::RDS::Model::DBSecurityGroup::SetIPRanges
void SetIPRanges(const Aws::Vector< IPRange > &value)
Definition: DBSecurityGroup.h:265
Aws::RDS::Model::DBSecurityGroup::SetEC2SecurityGroups
void SetEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
Definition: DBSecurityGroup.h:229
AWSString.h
Aws::RDS::Model::DBSecurityGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: DBSecurityGroup.h:178
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupNameHasBeenSet
bool DBSecurityGroupNameHasBeenSet() const
Definition: DBSecurityGroup.h:96
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(const char *value)
Definition: DBSecurityGroup.h:316
IPRange.h
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(Aws::String &&value)
Definition: DBSecurityGroup.h:203
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupArnHasBeenSet
bool DBSecurityGroupArnHasBeenSet() const
Definition: DBSecurityGroup.h:301
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const Aws::String &value)
Definition: DBSecurityGroup.h:142
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupDescriptionHasBeenSet
bool DBSecurityGroupDescriptionHasBeenSet() const
Definition: DBSecurityGroup.h:137
Aws::RDS::Model::DBSecurityGroup::GetEC2SecurityGroups
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
Definition: DBSecurityGroup.h:214
Aws::RDS::Model::DBSecurityGroup::AddIPRanges
DBSecurityGroup & AddIPRanges(IPRange &&value)
Definition: DBSecurityGroup.h:290
Aws::RDS::Model::DBSecurityGroup::WithIPRanges
DBSecurityGroup & WithIPRanges(const Aws::Vector< IPRange > &value)
Definition: DBSecurityGroup.h:275
Aws::RDS::Model::DBSecurityGroup::GetIPRanges
const Aws::Vector< IPRange > & GetIPRanges() const
Definition: DBSecurityGroup.h:255
Aws::RDS::Model::DBSecurityGroup::AddIPRanges
DBSecurityGroup & AddIPRanges(const IPRange &value)
Definition: DBSecurityGroup.h:285
Aws::RDS::Model::EC2SecurityGroup
Definition: EC2SecurityGroup.h:36
Aws::RDS::Model::DBSecurityGroup::operator=
DBSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBSecurityGroup::AddEC2SecurityGroups
DBSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroup &&value)
Definition: DBSecurityGroup.h:249
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(Aws::String &&value)
Definition: DBSecurityGroup.h:106
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(const Aws::String &value)
Definition: DBSecurityGroup.h:198
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(const char *value)
Definition: DBSecurityGroup.h:193
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::DBSecurityGroup::WithOwnerId
DBSecurityGroup & WithOwnerId(Aws::String &&value)
Definition: DBSecurityGroup.h:80
Aws::RDS::Model::DBSecurityGroup::GetDBSecurityGroupDescription
const Aws::String & GetDBSecurityGroupDescription() const
Definition: DBSecurityGroup.h:132
index
int index
Definition: cJSON.h:171
EC2SecurityGroup.h
Aws::RDS::Model::DBSecurityGroup::WithIPRanges
DBSecurityGroup & WithIPRanges(Aws::Vector< IPRange > &&value)
Definition: DBSecurityGroup.h:280
Aws::RDS::Model::DBSecurityGroup::WithOwnerId
DBSecurityGroup & WithOwnerId(const Aws::String &value)
Definition: DBSecurityGroup.h:75
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(const Aws::String &value)
Definition: DBSecurityGroup.h:101
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(const char *value)
Definition: DBSecurityGroup.h:208
Aws::RDS::Model::DBSecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroup
DBSecurityGroup()
Aws::RDS::Model::DBSecurityGroup::WithOwnerId
DBSecurityGroup & WithOwnerId(const char *value)
Definition: DBSecurityGroup.h:85