AWS SDK for C++  1.9.71
AWS SDK for C++
StaleSecurityGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.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 EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDescription() const{ return m_description; }
49 
53  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 
58  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 
63  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 
68  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 
73  inline StaleSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
74 
78  inline StaleSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 
83  inline StaleSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
84 
85 
89  inline const Aws::String& GetGroupId() const{ return m_groupId; }
90 
94  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
95 
99  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
100 
104  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
105 
109  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
110 
114  inline StaleSecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
115 
119  inline StaleSecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
120 
124  inline StaleSecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
125 
126 
130  inline const Aws::String& GetGroupName() const{ return m_groupName; }
131 
135  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
136 
140  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
141 
145  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
146 
150  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
151 
155  inline StaleSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
156 
160  inline StaleSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
161 
165  inline StaleSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
166 
167 
171  inline const Aws::Vector<StaleIpPermission>& GetStaleIpPermissions() const{ return m_staleIpPermissions; }
172 
176  inline bool StaleIpPermissionsHasBeenSet() const { return m_staleIpPermissionsHasBeenSet; }
177 
181  inline void SetStaleIpPermissions(const Aws::Vector<StaleIpPermission>& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = value; }
182 
186  inline void SetStaleIpPermissions(Aws::Vector<StaleIpPermission>&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = std::move(value); }
187 
191  inline StaleSecurityGroup& WithStaleIpPermissions(const Aws::Vector<StaleIpPermission>& value) { SetStaleIpPermissions(value); return *this;}
192 
196  inline StaleSecurityGroup& WithStaleIpPermissions(Aws::Vector<StaleIpPermission>&& value) { SetStaleIpPermissions(std::move(value)); return *this;}
197 
201  inline StaleSecurityGroup& AddStaleIpPermissions(const StaleIpPermission& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(value); return *this; }
202 
206  inline StaleSecurityGroup& AddStaleIpPermissions(StaleIpPermission&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(std::move(value)); return *this; }
207 
208 
212  inline const Aws::Vector<StaleIpPermission>& GetStaleIpPermissionsEgress() const{ return m_staleIpPermissionsEgress; }
213 
217  inline bool StaleIpPermissionsEgressHasBeenSet() const { return m_staleIpPermissionsEgressHasBeenSet; }
218 
222  inline void SetStaleIpPermissionsEgress(const Aws::Vector<StaleIpPermission>& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = value; }
223 
227  inline void SetStaleIpPermissionsEgress(Aws::Vector<StaleIpPermission>&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = std::move(value); }
228 
232  inline StaleSecurityGroup& WithStaleIpPermissionsEgress(const Aws::Vector<StaleIpPermission>& value) { SetStaleIpPermissionsEgress(value); return *this;}
233 
237  inline StaleSecurityGroup& WithStaleIpPermissionsEgress(Aws::Vector<StaleIpPermission>&& value) { SetStaleIpPermissionsEgress(std::move(value)); return *this;}
238 
242  inline StaleSecurityGroup& AddStaleIpPermissionsEgress(const StaleIpPermission& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(value); return *this; }
243 
247  inline StaleSecurityGroup& AddStaleIpPermissionsEgress(StaleIpPermission&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(std::move(value)); return *this; }
248 
249 
253  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
254 
258  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
259 
263  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
264 
268  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
269 
273  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
274 
278  inline StaleSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
279 
283  inline StaleSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
284 
288  inline StaleSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
289 
290  private:
291 
292  Aws::String m_description;
293  bool m_descriptionHasBeenSet;
294 
295  Aws::String m_groupId;
296  bool m_groupIdHasBeenSet;
297 
298  Aws::String m_groupName;
299  bool m_groupNameHasBeenSet;
300 
301  Aws::Vector<StaleIpPermission> m_staleIpPermissions;
302  bool m_staleIpPermissionsHasBeenSet;
303 
304  Aws::Vector<StaleIpPermission> m_staleIpPermissionsEgress;
305  bool m_staleIpPermissionsEgressHasBeenSet;
306 
307  Aws::String m_vpcId;
308  bool m_vpcIdHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace EC2
313 } // namespace Aws
Aws::EC2::Model::StaleSecurityGroup::WithVpcId
StaleSecurityGroup & WithVpcId(const Aws::String &value)
Definition: StaleSecurityGroup.h:278
Aws::EC2::Model::StaleSecurityGroup::WithDescription
StaleSecurityGroup & WithDescription(const char *value)
Definition: StaleSecurityGroup.h:83
Aws::EC2::Model::StaleSecurityGroup::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: StaleSecurityGroup.h:99
Aws::EC2::Model::StaleSecurityGroup::StaleIpPermissionsEgressHasBeenSet
bool StaleIpPermissionsEgressHasBeenSet() const
Definition: StaleSecurityGroup.h:217
Aws::EC2::Model::StaleSecurityGroup::GetDescription
const Aws::String & GetDescription() const
Definition: StaleSecurityGroup.h:48
Aws::EC2::Model::StaleSecurityGroup::WithStaleIpPermissions
StaleSecurityGroup & WithStaleIpPermissions(Aws::Vector< StaleIpPermission > &&value)
Definition: StaleSecurityGroup.h:196
Aws::EC2::Model::StaleSecurityGroup::SetGroupId
void SetGroupId(const char *value)
Definition: StaleSecurityGroup.h:109
Aws::EC2::Model::StaleSecurityGroup::StaleSecurityGroup
StaleSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StaleSecurityGroup::SetVpcId
void SetVpcId(const char *value)
Definition: StaleSecurityGroup.h:273
Aws::EC2::Model::StaleSecurityGroup::WithVpcId
StaleSecurityGroup & WithVpcId(Aws::String &&value)
Definition: StaleSecurityGroup.h:283
Aws::EC2::Model::StaleSecurityGroup::StaleIpPermissionsHasBeenSet
bool StaleIpPermissionsHasBeenSet() const
Definition: StaleSecurityGroup.h:176
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::StaleSecurityGroup::AddStaleIpPermissionsEgress
StaleSecurityGroup & AddStaleIpPermissionsEgress(const StaleIpPermission &value)
Definition: StaleSecurityGroup.h:242
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::StaleSecurityGroup
Definition: StaleSecurityGroup.h:35
Aws::EC2::Model::StaleSecurityGroup::SetStaleIpPermissionsEgress
void SetStaleIpPermissionsEgress(const Aws::Vector< StaleIpPermission > &value)
Definition: StaleSecurityGroup.h:222
Aws::EC2::Model::StaleSecurityGroup::GetStaleIpPermissionsEgress
const Aws::Vector< StaleIpPermission > & GetStaleIpPermissionsEgress() const
Definition: StaleSecurityGroup.h:212
Aws::EC2::Model::StaleSecurityGroup::WithGroupId
StaleSecurityGroup & WithGroupId(const char *value)
Definition: StaleSecurityGroup.h:124
Aws::EC2::Model::StaleSecurityGroup::WithStaleIpPermissionsEgress
StaleSecurityGroup & WithStaleIpPermissionsEgress(const Aws::Vector< StaleIpPermission > &value)
Definition: StaleSecurityGroup.h:232
Aws::EC2::Model::StaleSecurityGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: StaleSecurityGroup.h:253
Aws::EC2::Model::StaleSecurityGroup::AddStaleIpPermissions
StaleSecurityGroup & AddStaleIpPermissions(StaleIpPermission &&value)
Definition: StaleSecurityGroup.h:206
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::StaleSecurityGroup::SetStaleIpPermissions
void SetStaleIpPermissions(const Aws::Vector< StaleIpPermission > &value)
Definition: StaleSecurityGroup.h:181
Aws::EC2::Model::StaleSecurityGroup::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: StaleSecurityGroup.h:53
Aws::EC2::Model::StaleSecurityGroup::SetDescription
void SetDescription(const Aws::String &value)
Definition: StaleSecurityGroup.h:58
Aws::EC2::Model::StaleSecurityGroup::SetGroupName
void SetGroupName(const char *value)
Definition: StaleSecurityGroup.h:150
Aws::EC2::Model::StaleSecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::StaleSecurityGroup::AddStaleIpPermissionsEgress
StaleSecurityGroup & AddStaleIpPermissionsEgress(StaleIpPermission &&value)
Definition: StaleSecurityGroup.h:247
Aws::EC2::Model::StaleSecurityGroup::GetGroupId
const Aws::String & GetGroupId() const
Definition: StaleSecurityGroup.h:89
Aws::EC2::Model::StaleSecurityGroup::WithGroupName
StaleSecurityGroup & WithGroupName(Aws::String &&value)
Definition: StaleSecurityGroup.h:160
Aws::EC2::Model::StaleSecurityGroup::operator=
StaleSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StaleIpPermission.h
Aws::EC2::Model::StaleSecurityGroup::WithGroupId
StaleSecurityGroup & WithGroupId(Aws::String &&value)
Definition: StaleSecurityGroup.h:119
Aws::EC2::Model::StaleIpPermission
Definition: StaleIpPermission.h:34
Aws::EC2::Model::StaleSecurityGroup::WithStaleIpPermissions
StaleSecurityGroup & WithStaleIpPermissions(const Aws::Vector< StaleIpPermission > &value)
Definition: StaleSecurityGroup.h:191
Aws::EC2::Model::StaleSecurityGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: StaleSecurityGroup.h:263
Aws::EC2::Model::StaleSecurityGroup::WithGroupName
StaleSecurityGroup & WithGroupName(const Aws::String &value)
Definition: StaleSecurityGroup.h:155
AWSString.h
Aws::EC2::Model::StaleSecurityGroup::SetDescription
void SetDescription(Aws::String &&value)
Definition: StaleSecurityGroup.h:63
Aws::EC2::Model::StaleSecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::StaleSecurityGroup::GetStaleIpPermissions
const Aws::Vector< StaleIpPermission > & GetStaleIpPermissions() const
Definition: StaleSecurityGroup.h:171
Aws::EC2::Model::StaleSecurityGroup::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: StaleSecurityGroup.h:145
Aws::EC2::Model::StaleSecurityGroup::GetGroupName
const Aws::String & GetGroupName() const
Definition: StaleSecurityGroup.h:130
Aws::EC2::Model::StaleSecurityGroup::SetDescription
void SetDescription(const char *value)
Definition: StaleSecurityGroup.h:68
Aws::EC2::Model::StaleSecurityGroup::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: StaleSecurityGroup.h:140
Aws::EC2::Model::StaleSecurityGroup::SetStaleIpPermissionsEgress
void SetStaleIpPermissionsEgress(Aws::Vector< StaleIpPermission > &&value)
Definition: StaleSecurityGroup.h:227
Aws::EC2::Model::StaleSecurityGroup::WithVpcId
StaleSecurityGroup & WithVpcId(const char *value)
Definition: StaleSecurityGroup.h:288
Aws::EC2::Model::StaleSecurityGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: StaleSecurityGroup.h:258
Aws::EC2::Model::StaleSecurityGroup::StaleSecurityGroup
StaleSecurityGroup()
Aws::EC2::Model::StaleSecurityGroup::WithGroupId
StaleSecurityGroup & WithGroupId(const Aws::String &value)
Definition: StaleSecurityGroup.h:114
Aws::EC2::Model::StaleSecurityGroup::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: StaleSecurityGroup.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StaleSecurityGroup::SetStaleIpPermissions
void SetStaleIpPermissions(Aws::Vector< StaleIpPermission > &&value)
Definition: StaleSecurityGroup.h:186
Aws::EC2::Model::StaleSecurityGroup::WithDescription
StaleSecurityGroup & WithDescription(Aws::String &&value)
Definition: StaleSecurityGroup.h:78
Aws::EC2::Model::StaleSecurityGroup::WithGroupName
StaleSecurityGroup & WithGroupName(const char *value)
Definition: StaleSecurityGroup.h:165
Aws::EC2::Model::StaleSecurityGroup::WithStaleIpPermissionsEgress
StaleSecurityGroup & WithStaleIpPermissionsEgress(Aws::Vector< StaleIpPermission > &&value)
Definition: StaleSecurityGroup.h:237
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::StaleSecurityGroup::WithDescription
StaleSecurityGroup & WithDescription(const Aws::String &value)
Definition: StaleSecurityGroup.h:73
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::StaleSecurityGroup::AddStaleIpPermissions
StaleSecurityGroup & AddStaleIpPermissions(const StaleIpPermission &value)
Definition: StaleSecurityGroup.h:201
Aws::EC2::Model::StaleSecurityGroup::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: StaleSecurityGroup.h:94
EC2_EXPORTS.h
Aws::EC2::Model::StaleSecurityGroup::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: StaleSecurityGroup.h:135
Aws::EC2::Model::StaleSecurityGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: StaleSecurityGroup.h:268