AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBSecurityGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/EC2SecurityGroup.h>
12#include <aws/rds/model/IPRange.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS {
23namespace Model {
24
33 public:
34 AWS_RDS_API DBSecurityGroup() = default;
35 AWS_RDS_API DBSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
47 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
48 template <typename OwnerIdT = Aws::String>
49 void SetOwnerId(OwnerIdT&& value) {
50 m_ownerIdHasBeenSet = true;
51 m_ownerId = std::forward<OwnerIdT>(value);
52 }
53 template <typename OwnerIdT = Aws::String>
54 DBSecurityGroup& WithOwnerId(OwnerIdT&& value) {
55 SetOwnerId(std::forward<OwnerIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDBSecurityGroupName() const { return m_dBSecurityGroupName; }
65 inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
66 template <typename DBSecurityGroupNameT = Aws::String>
67 void SetDBSecurityGroupName(DBSecurityGroupNameT&& value) {
68 m_dBSecurityGroupNameHasBeenSet = true;
69 m_dBSecurityGroupName = std::forward<DBSecurityGroupNameT>(value);
70 }
71 template <typename DBSecurityGroupNameT = Aws::String>
72 DBSecurityGroup& WithDBSecurityGroupName(DBSecurityGroupNameT&& value) {
73 SetDBSecurityGroupName(std::forward<DBSecurityGroupNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDBSecurityGroupDescription() const { return m_dBSecurityGroupDescription; }
83 inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
84 template <typename DBSecurityGroupDescriptionT = Aws::String>
85 void SetDBSecurityGroupDescription(DBSecurityGroupDescriptionT&& value) {
86 m_dBSecurityGroupDescriptionHasBeenSet = true;
87 m_dBSecurityGroupDescription = std::forward<DBSecurityGroupDescriptionT>(value);
88 }
89 template <typename DBSecurityGroupDescriptionT = Aws::String>
90 DBSecurityGroup& WithDBSecurityGroupDescription(DBSecurityGroupDescriptionT&& value) {
91 SetDBSecurityGroupDescription(std::forward<DBSecurityGroupDescriptionT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetVpcId() const { return m_vpcId; }
101 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
102 template <typename VpcIdT = Aws::String>
103 void SetVpcId(VpcIdT&& value) {
104 m_vpcIdHasBeenSet = true;
105 m_vpcId = std::forward<VpcIdT>(value);
106 }
107 template <typename VpcIdT = Aws::String>
108 DBSecurityGroup& WithVpcId(VpcIdT&& value) {
109 SetVpcId(std::forward<VpcIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const { return m_eC2SecurityGroups; }
119 inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
120 template <typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
121 void SetEC2SecurityGroups(EC2SecurityGroupsT&& value) {
122 m_eC2SecurityGroupsHasBeenSet = true;
123 m_eC2SecurityGroups = std::forward<EC2SecurityGroupsT>(value);
124 }
125 template <typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
126 DBSecurityGroup& WithEC2SecurityGroups(EC2SecurityGroupsT&& value) {
127 SetEC2SecurityGroups(std::forward<EC2SecurityGroupsT>(value));
128 return *this;
129 }
130 template <typename EC2SecurityGroupsT = EC2SecurityGroup>
131 DBSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroupsT&& value) {
132 m_eC2SecurityGroupsHasBeenSet = true;
133 m_eC2SecurityGroups.emplace_back(std::forward<EC2SecurityGroupsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<IPRange>& GetIPRanges() const { return m_iPRanges; }
143 inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; }
144 template <typename IPRangesT = Aws::Vector<IPRange>>
145 void SetIPRanges(IPRangesT&& value) {
146 m_iPRangesHasBeenSet = true;
147 m_iPRanges = std::forward<IPRangesT>(value);
148 }
149 template <typename IPRangesT = Aws::Vector<IPRange>>
150 DBSecurityGroup& WithIPRanges(IPRangesT&& value) {
151 SetIPRanges(std::forward<IPRangesT>(value));
152 return *this;
153 }
154 template <typename IPRangesT = IPRange>
155 DBSecurityGroup& AddIPRanges(IPRangesT&& value) {
156 m_iPRangesHasBeenSet = true;
157 m_iPRanges.emplace_back(std::forward<IPRangesT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetDBSecurityGroupArn() const { return m_dBSecurityGroupArn; }
167 inline bool DBSecurityGroupArnHasBeenSet() const { return m_dBSecurityGroupArnHasBeenSet; }
168 template <typename DBSecurityGroupArnT = Aws::String>
169 void SetDBSecurityGroupArn(DBSecurityGroupArnT&& value) {
170 m_dBSecurityGroupArnHasBeenSet = true;
171 m_dBSecurityGroupArn = std::forward<DBSecurityGroupArnT>(value);
172 }
173 template <typename DBSecurityGroupArnT = Aws::String>
174 DBSecurityGroup& WithDBSecurityGroupArn(DBSecurityGroupArnT&& value) {
175 SetDBSecurityGroupArn(std::forward<DBSecurityGroupArnT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_ownerId;
181
182 Aws::String m_dBSecurityGroupName;
183
184 Aws::String m_dBSecurityGroupDescription;
185
186 Aws::String m_vpcId;
187
188 Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
189
190 Aws::Vector<IPRange> m_iPRanges;
191
192 Aws::String m_dBSecurityGroupArn;
193 bool m_ownerIdHasBeenSet = false;
194 bool m_dBSecurityGroupNameHasBeenSet = false;
195 bool m_dBSecurityGroupDescriptionHasBeenSet = false;
196 bool m_vpcIdHasBeenSet = false;
197 bool m_eC2SecurityGroupsHasBeenSet = false;
198 bool m_iPRangesHasBeenSet = false;
199 bool m_dBSecurityGroupArnHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace RDS
204} // namespace Aws
void SetEC2SecurityGroups(EC2SecurityGroupsT &&value)
void SetDBSecurityGroupName(DBSecurityGroupNameT &&value)
void SetDBSecurityGroupArn(DBSecurityGroupArnT &&value)
const Aws::String & GetDBSecurityGroupArn() const
DBSecurityGroup & WithDBSecurityGroupArn(DBSecurityGroupArnT &&value)
void SetDBSecurityGroupDescription(DBSecurityGroupDescriptionT &&value)
const Aws::String & GetVpcId() const
AWS_RDS_API DBSecurityGroup()=default
const Aws::String & GetOwnerId() const
const Aws::Vector< IPRange > & GetIPRanges() const
DBSecurityGroup & WithEC2SecurityGroups(EC2SecurityGroupsT &&value)
void SetIPRanges(IPRangesT &&value)
AWS_RDS_API DBSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
DBSecurityGroup & WithIPRanges(IPRangesT &&value)
DBSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroupsT &&value)
AWS_RDS_API DBSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSecurityGroup & WithDBSecurityGroupDescription(DBSecurityGroupDescriptionT &&value)
DBSecurityGroup & WithVpcId(VpcIdT &&value)
DBSecurityGroup & WithOwnerId(OwnerIdT &&value)
void SetOwnerId(OwnerIdT &&value)
DBSecurityGroup & AddIPRanges(IPRangesT &&value)
bool DBSecurityGroupDescriptionHasBeenSet() const
DBSecurityGroup & WithDBSecurityGroupName(DBSecurityGroupNameT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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