AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBSecurityGroup.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/EC2SecurityGroup.h>
12#include <aws/rds/model/IPRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_RDS_API DBSecurityGroup();
40 AWS_RDS_API DBSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
54 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
55 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
56 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
57 inline DBSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
58 inline DBSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
59 inline DBSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
61
63
66 inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
67 inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
68 inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
69 inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
70 inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
71 inline DBSecurityGroup& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
72 inline DBSecurityGroup& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
73 inline DBSecurityGroup& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
75
77
80 inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; }
81 inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
82 inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; }
83 inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); }
84 inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); }
87 inline DBSecurityGroup& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;}
89
91
94 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
95 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
96 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
97 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
98 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
99 inline DBSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
100 inline DBSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
101 inline DBSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
103
105
108 inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
109 inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
110 inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
111 inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); }
114 inline DBSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
115 inline DBSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; }
117
119
122 inline const Aws::Vector<IPRange>& GetIPRanges() const{ return m_iPRanges; }
123 inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; }
124 inline void SetIPRanges(const Aws::Vector<IPRange>& value) { m_iPRangesHasBeenSet = true; m_iPRanges = value; }
125 inline void SetIPRanges(Aws::Vector<IPRange>&& value) { m_iPRangesHasBeenSet = true; m_iPRanges = std::move(value); }
126 inline DBSecurityGroup& WithIPRanges(const Aws::Vector<IPRange>& value) { SetIPRanges(value); return *this;}
127 inline DBSecurityGroup& WithIPRanges(Aws::Vector<IPRange>&& value) { SetIPRanges(std::move(value)); return *this;}
128 inline DBSecurityGroup& AddIPRanges(const IPRange& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(value); return *this; }
129 inline DBSecurityGroup& AddIPRanges(IPRange&& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(std::move(value)); return *this; }
131
133
136 inline const Aws::String& GetDBSecurityGroupArn() const{ return m_dBSecurityGroupArn; }
137 inline bool DBSecurityGroupArnHasBeenSet() const { return m_dBSecurityGroupArnHasBeenSet; }
138 inline void SetDBSecurityGroupArn(const Aws::String& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = value; }
139 inline void SetDBSecurityGroupArn(Aws::String&& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = std::move(value); }
140 inline void SetDBSecurityGroupArn(const char* value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn.assign(value); }
141 inline DBSecurityGroup& WithDBSecurityGroupArn(const Aws::String& value) { SetDBSecurityGroupArn(value); return *this;}
142 inline DBSecurityGroup& WithDBSecurityGroupArn(Aws::String&& value) { SetDBSecurityGroupArn(std::move(value)); return *this;}
143 inline DBSecurityGroup& WithDBSecurityGroupArn(const char* value) { SetDBSecurityGroupArn(value); return *this;}
145 private:
146
147 Aws::String m_ownerId;
148 bool m_ownerIdHasBeenSet = false;
149
150 Aws::String m_dBSecurityGroupName;
151 bool m_dBSecurityGroupNameHasBeenSet = false;
152
153 Aws::String m_dBSecurityGroupDescription;
154 bool m_dBSecurityGroupDescriptionHasBeenSet = false;
155
156 Aws::String m_vpcId;
157 bool m_vpcIdHasBeenSet = false;
158
159 Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
160 bool m_eC2SecurityGroupsHasBeenSet = false;
161
162 Aws::Vector<IPRange> m_iPRanges;
163 bool m_iPRangesHasBeenSet = false;
164
165 Aws::String m_dBSecurityGroupArn;
166 bool m_dBSecurityGroupArnHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace RDS
171} // namespace Aws
DBSecurityGroup & WithVpcId(Aws::String &&value)
void SetDBSecurityGroupName(const Aws::String &value)
DBSecurityGroup & WithDBSecurityGroupName(const char *value)
void SetDBSecurityGroupArn(const char *value)
void SetIPRanges(Aws::Vector< IPRange > &&value)
const Aws::String & GetDBSecurityGroupArn() const
const Aws::String & GetVpcId() const
void SetEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
void SetDBSecurityGroupName(Aws::String &&value)
const Aws::String & GetOwnerId() const
const Aws::Vector< IPRange > & GetIPRanges() const
DBSecurityGroup & WithVpcId(const char *value)
void SetOwnerId(const Aws::String &value)
DBSecurityGroup & WithDBSecurityGroupDescription(const char *value)
DBSecurityGroup & WithDBSecurityGroupDescription(const Aws::String &value)
DBSecurityGroup & AddIPRanges(IPRange &&value)
DBSecurityGroup & AddIPRanges(const IPRange &value)
DBSecurityGroup & WithIPRanges(Aws::Vector< IPRange > &&value)
DBSecurityGroup & WithOwnerId(const Aws::String &value)
void SetVpcId(const Aws::String &value)
DBSecurityGroup & WithDBSecurityGroupArn(const Aws::String &value)
DBSecurityGroup & WithVpcId(const Aws::String &value)
AWS_RDS_API DBSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
DBSecurityGroup & WithEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
void SetDBSecurityGroupName(const char *value)
AWS_RDS_API DBSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSecurityGroup & AddEC2SecurityGroups(const EC2SecurityGroup &value)
void SetDBSecurityGroupDescription(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSecurityGroup & WithDBSecurityGroupArn(Aws::String &&value)
void SetIPRanges(const Aws::Vector< IPRange > &value)
void SetVpcId(const char *value)
DBSecurityGroup & WithOwnerId(const char *value)
DBSecurityGroup & WithIPRanges(const Aws::Vector< IPRange > &value)
DBSecurityGroup & WithDBSecurityGroupName(Aws::String &&value)
void SetOwnerId(Aws::String &&value)
DBSecurityGroup & WithDBSecurityGroupArn(const char *value)
bool DBSecurityGroupDescriptionHasBeenSet() const
void SetDBSecurityGroupDescription(Aws::String &&value)
void SetVpcId(Aws::String &&value)
void SetDBSecurityGroupDescription(const char *value)
DBSecurityGroup & WithOwnerId(Aws::String &&value)
DBSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroup &&value)
DBSecurityGroup & WithDBSecurityGroupName(const Aws::String &value)
void SetDBSecurityGroupArn(const Aws::String &value)
void SetOwnerId(const char *value)
DBSecurityGroup & WithDBSecurityGroupDescription(Aws::String &&value)
void SetDBSecurityGroupArn(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBSecurityGroup & WithEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
void SetEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
const Aws::String & GetDBSecurityGroupDescription() const
const Aws::String & GetDBSecurityGroupName() 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