AWS SDK for C++  1.9.108
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 
51  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
52 
57  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
58 
63  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
64 
69  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
70 
75  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
76 
81  inline DBSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
82 
87  inline DBSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
88 
93  inline DBSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
94 
95 
99  inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
100 
104  inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
105 
109  inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
110 
114  inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
115 
119  inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
120 
124  inline DBSecurityGroup& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
125 
129  inline DBSecurityGroup& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
130 
134  inline DBSecurityGroup& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
135 
136 
140  inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; }
141 
145  inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
146 
150  inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; }
151 
155  inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); }
156 
160  inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); }
161 
165  inline DBSecurityGroup& WithDBSecurityGroupDescription(const Aws::String& value) { SetDBSecurityGroupDescription(value); return *this;}
166 
170  inline DBSecurityGroup& WithDBSecurityGroupDescription(Aws::String&& value) { SetDBSecurityGroupDescription(std::move(value)); return *this;}
171 
175  inline DBSecurityGroup& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;}
176 
177 
181  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
182 
186  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
187 
191  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
192 
196  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
197 
201  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
202 
206  inline DBSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
207 
211  inline DBSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
212 
216  inline DBSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
217 
218 
222  inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
223 
227  inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
228 
232  inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
233 
237  inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); }
238 
242  inline DBSecurityGroup& WithEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { SetEC2SecurityGroups(value); return *this;}
243 
247  inline DBSecurityGroup& WithEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { SetEC2SecurityGroups(std::move(value)); return *this;}
248 
252  inline DBSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
253 
257  inline DBSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; }
258 
259 
263  inline const Aws::Vector<IPRange>& GetIPRanges() const{ return m_iPRanges; }
264 
268  inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; }
269 
273  inline void SetIPRanges(const Aws::Vector<IPRange>& value) { m_iPRangesHasBeenSet = true; m_iPRanges = value; }
274 
278  inline void SetIPRanges(Aws::Vector<IPRange>&& value) { m_iPRangesHasBeenSet = true; m_iPRanges = std::move(value); }
279 
283  inline DBSecurityGroup& WithIPRanges(const Aws::Vector<IPRange>& value) { SetIPRanges(value); return *this;}
284 
288  inline DBSecurityGroup& WithIPRanges(Aws::Vector<IPRange>&& value) { SetIPRanges(std::move(value)); return *this;}
289 
293  inline DBSecurityGroup& AddIPRanges(const IPRange& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(value); return *this; }
294 
298  inline DBSecurityGroup& AddIPRanges(IPRange&& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(std::move(value)); return *this; }
299 
300 
304  inline const Aws::String& GetDBSecurityGroupArn() const{ return m_dBSecurityGroupArn; }
305 
309  inline bool DBSecurityGroupArnHasBeenSet() const { return m_dBSecurityGroupArnHasBeenSet; }
310 
314  inline void SetDBSecurityGroupArn(const Aws::String& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = value; }
315 
319  inline void SetDBSecurityGroupArn(Aws::String&& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = std::move(value); }
320 
324  inline void SetDBSecurityGroupArn(const char* value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn.assign(value); }
325 
329  inline DBSecurityGroup& WithDBSecurityGroupArn(const Aws::String& value) { SetDBSecurityGroupArn(value); return *this;}
330 
334  inline DBSecurityGroup& WithDBSecurityGroupArn(Aws::String&& value) { SetDBSecurityGroupArn(std::move(value)); return *this;}
335 
339  inline DBSecurityGroup& WithDBSecurityGroupArn(const char* value) { SetDBSecurityGroupArn(value); return *this;}
340 
341  private:
342 
343  Aws::String m_ownerId;
344  bool m_ownerIdHasBeenSet;
345 
346  Aws::String m_dBSecurityGroupName;
347  bool m_dBSecurityGroupNameHasBeenSet;
348 
349  Aws::String m_dBSecurityGroupDescription;
350  bool m_dBSecurityGroupDescriptionHasBeenSet;
351 
352  Aws::String m_vpcId;
353  bool m_vpcIdHasBeenSet;
354 
355  Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
356  bool m_eC2SecurityGroupsHasBeenSet;
357 
358  Aws::Vector<IPRange> m_iPRanges;
359  bool m_iPRangesHasBeenSet;
360 
361  Aws::String m_dBSecurityGroupArn;
362  bool m_dBSecurityGroupArnHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace RDS
367 } // namespace Aws
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(const Aws::String &value)
Definition: DBSecurityGroup.h:165
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(const char *value)
Definition: DBSecurityGroup.h:119
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(const char *value)
Definition: DBSecurityGroup.h:75
Aws::RDS::Model::DBSecurityGroup::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: DBSecurityGroup.h:51
Aws::RDS::Model::DBSecurityGroup::WithEC2SecurityGroups
DBSecurityGroup & WithEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
Definition: DBSecurityGroup.h:247
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(const char *value)
Definition: DBSecurityGroup.h:339
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: DBSecurityGroup.h:191
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: DBSecurityGroup.h:69
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(Aws::String &&value)
Definition: DBSecurityGroup.h:334
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupName
DBSecurityGroup & WithDBSecurityGroupName(Aws::String &&value)
Definition: DBSecurityGroup.h:129
Aws::RDS::Model::DBSecurityGroup::WithEC2SecurityGroups
DBSecurityGroup & WithEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
Definition: DBSecurityGroup.h:242
Aws::RDS::Model::DBSecurityGroup::IPRangesHasBeenSet
bool IPRangesHasBeenSet() const
Definition: DBSecurityGroup.h:268
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBSecurityGroup::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: DBSecurityGroup.h:63
Aws::RDS::Model::DBSecurityGroup::GetDBSecurityGroupArn
const Aws::String & GetDBSecurityGroupArn() const
Definition: DBSecurityGroup.h:304
Aws::RDS::Model::DBSecurityGroup::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: DBSecurityGroup.h:57
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:99
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupName
DBSecurityGroup & WithDBSecurityGroupName(const char *value)
Definition: DBSecurityGroup.h:134
AWSVector.h
Aws::RDS::Model::DBSecurityGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: DBSecurityGroup.h:181
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: DBSecurityGroup.h:196
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(Aws::String &&value)
Definition: DBSecurityGroup.h:155
Aws::RDS::Model::IPRange
Definition: IPRange.h:33
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(Aws::String &&value)
Definition: DBSecurityGroup.h:319
Aws::RDS::Model::DBSecurityGroup::SetIPRanges
void SetIPRanges(Aws::Vector< IPRange > &&value)
Definition: DBSecurityGroup.h:278
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:232
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const char *value)
Definition: DBSecurityGroup.h:160
RDS_EXPORTS.h
Aws::RDS::Model::DBSecurityGroup::EC2SecurityGroupsHasBeenSet
bool EC2SecurityGroupsHasBeenSet() const
Definition: DBSecurityGroup.h:227
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(const Aws::String &value)
Definition: DBSecurityGroup.h:314
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:124
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(const char *value)
Definition: DBSecurityGroup.h:175
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupArn
DBSecurityGroup & WithDBSecurityGroupArn(const Aws::String &value)
Definition: DBSecurityGroup.h:329
Aws::RDS::Model::DBSecurityGroup::AddEC2SecurityGroups
DBSecurityGroup & AddEC2SecurityGroups(const EC2SecurityGroup &value)
Definition: DBSecurityGroup.h:252
Aws::RDS::Model::DBSecurityGroup::WithDBSecurityGroupDescription
DBSecurityGroup & WithDBSecurityGroupDescription(Aws::String &&value)
Definition: DBSecurityGroup.h:170
Aws::RDS::Model::DBSecurityGroup::SetIPRanges
void SetIPRanges(const Aws::Vector< IPRange > &value)
Definition: DBSecurityGroup.h:273
Aws::RDS::Model::DBSecurityGroup::SetEC2SecurityGroups
void SetEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
Definition: DBSecurityGroup.h:237
AWSString.h
Aws::RDS::Model::DBSecurityGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: DBSecurityGroup.h:186
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupNameHasBeenSet
bool DBSecurityGroupNameHasBeenSet() const
Definition: DBSecurityGroup.h:104
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupArn
void SetDBSecurityGroupArn(const char *value)
Definition: DBSecurityGroup.h:324
IPRange.h
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(Aws::String &&value)
Definition: DBSecurityGroup.h:211
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupArnHasBeenSet
bool DBSecurityGroupArnHasBeenSet() const
Definition: DBSecurityGroup.h:309
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const Aws::String &value)
Definition: DBSecurityGroup.h:150
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBSecurityGroup::DBSecurityGroupDescriptionHasBeenSet
bool DBSecurityGroupDescriptionHasBeenSet() const
Definition: DBSecurityGroup.h:145
Aws::RDS::Model::DBSecurityGroup::GetEC2SecurityGroups
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
Definition: DBSecurityGroup.h:222
Aws::RDS::Model::DBSecurityGroup::AddIPRanges
DBSecurityGroup & AddIPRanges(IPRange &&value)
Definition: DBSecurityGroup.h:298
Aws::RDS::Model::DBSecurityGroup::WithIPRanges
DBSecurityGroup & WithIPRanges(const Aws::Vector< IPRange > &value)
Definition: DBSecurityGroup.h:283
Aws::RDS::Model::DBSecurityGroup::GetIPRanges
const Aws::Vector< IPRange > & GetIPRanges() const
Definition: DBSecurityGroup.h:263
Aws::RDS::Model::DBSecurityGroup::AddIPRanges
DBSecurityGroup & AddIPRanges(const IPRange &value)
Definition: DBSecurityGroup.h:293
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:257
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(Aws::String &&value)
Definition: DBSecurityGroup.h:114
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(const Aws::String &value)
Definition: DBSecurityGroup.h:206
Aws::RDS::Model::DBSecurityGroup::SetVpcId
void SetVpcId(const char *value)
Definition: DBSecurityGroup.h:201
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:87
Aws::RDS::Model::DBSecurityGroup::GetDBSecurityGroupDescription
const Aws::String & GetDBSecurityGroupDescription() const
Definition: DBSecurityGroup.h:140
index
int index
Definition: cJSON.h:181
EC2SecurityGroup.h
Aws::RDS::Model::DBSecurityGroup::WithIPRanges
DBSecurityGroup & WithIPRanges(Aws::Vector< IPRange > &&value)
Definition: DBSecurityGroup.h:288
Aws::RDS::Model::DBSecurityGroup::WithOwnerId
DBSecurityGroup & WithOwnerId(const Aws::String &value)
Definition: DBSecurityGroup.h:81
Aws::RDS::Model::DBSecurityGroup::SetDBSecurityGroupName
void SetDBSecurityGroupName(const Aws::String &value)
Definition: DBSecurityGroup.h:109
Aws::RDS::Model::DBSecurityGroup::WithVpcId
DBSecurityGroup & WithVpcId(const char *value)
Definition: DBSecurityGroup.h:216
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:93