AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StaleSecurityGroup.h
1
6#pragma once
7#include <aws/ec2/EC2_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/ec2/model/StaleIpPermission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API StaleSecurityGroup();
38 AWS_EC2_API StaleSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline StaleSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline StaleSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline StaleSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::String& GetGroupId() const{ return m_groupId; }
64 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
65 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
66 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
67 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
68 inline StaleSecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
69 inline StaleSecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
70 inline StaleSecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
72
74
77 inline const Aws::String& GetGroupName() const{ return m_groupName; }
78 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
79 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
80 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
81 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
82 inline StaleSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
83 inline StaleSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
84 inline StaleSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
86
88
91 inline const Aws::Vector<StaleIpPermission>& GetStaleIpPermissions() const{ return m_staleIpPermissions; }
92 inline bool StaleIpPermissionsHasBeenSet() const { return m_staleIpPermissionsHasBeenSet; }
93 inline void SetStaleIpPermissions(const Aws::Vector<StaleIpPermission>& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = value; }
94 inline void SetStaleIpPermissions(Aws::Vector<StaleIpPermission>&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = std::move(value); }
97 inline StaleSecurityGroup& AddStaleIpPermissions(const StaleIpPermission& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(value); return *this; }
98 inline StaleSecurityGroup& AddStaleIpPermissions(StaleIpPermission&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(std::move(value)); return *this; }
100
102
105 inline const Aws::Vector<StaleIpPermission>& GetStaleIpPermissionsEgress() const{ return m_staleIpPermissionsEgress; }
106 inline bool StaleIpPermissionsEgressHasBeenSet() const { return m_staleIpPermissionsEgressHasBeenSet; }
107 inline void SetStaleIpPermissionsEgress(const Aws::Vector<StaleIpPermission>& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = value; }
108 inline void SetStaleIpPermissionsEgress(Aws::Vector<StaleIpPermission>&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = std::move(value); }
111 inline StaleSecurityGroup& AddStaleIpPermissionsEgress(const StaleIpPermission& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(value); return *this; }
112 inline StaleSecurityGroup& AddStaleIpPermissionsEgress(StaleIpPermission&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(std::move(value)); return *this; }
114
116
119 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
120 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
121 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
122 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
123 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
124 inline StaleSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
125 inline StaleSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
126 inline StaleSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
128 private:
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_groupId;
134 bool m_groupIdHasBeenSet = false;
135
136 Aws::String m_groupName;
137 bool m_groupNameHasBeenSet = false;
138
139 Aws::Vector<StaleIpPermission> m_staleIpPermissions;
140 bool m_staleIpPermissionsHasBeenSet = false;
141
142 Aws::Vector<StaleIpPermission> m_staleIpPermissionsEgress;
143 bool m_staleIpPermissionsEgressHasBeenSet = false;
144
145 Aws::String m_vpcId;
146 bool m_vpcIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
StaleSecurityGroup & WithStaleIpPermissions(const Aws::Vector< StaleIpPermission > &value)
StaleSecurityGroup & WithGroupName(const Aws::String &value)
StaleSecurityGroup & WithVpcId(const char *value)
void SetStaleIpPermissionsEgress(const Aws::Vector< StaleIpPermission > &value)
StaleSecurityGroup & WithGroupId(const char *value)
StaleSecurityGroup & AddStaleIpPermissions(StaleIpPermission &&value)
const Aws::String & GetGroupName() const
StaleSecurityGroup & WithStaleIpPermissions(Aws::Vector< StaleIpPermission > &&value)
StaleSecurityGroup & WithDescription(const Aws::String &value)
StaleSecurityGroup & WithGroupName(Aws::String &&value)
void SetGroupName(Aws::String &&value)
void SetGroupName(const Aws::String &value)
StaleSecurityGroup & WithGroupName(const char *value)
StaleSecurityGroup & WithVpcId(const Aws::String &value)
void SetVpcId(const Aws::String &value)
StaleSecurityGroup & WithDescription(Aws::String &&value)
StaleSecurityGroup & WithStaleIpPermissionsEgress(const Aws::Vector< StaleIpPermission > &value)
void SetStaleIpPermissions(const Aws::Vector< StaleIpPermission > &value)
const Aws::String & GetDescription() const
StaleSecurityGroup & WithDescription(const char *value)
StaleSecurityGroup & WithGroupId(const Aws::String &value)
void SetStaleIpPermissionsEgress(Aws::Vector< StaleIpPermission > &&value)
AWS_EC2_API StaleSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StaleSecurityGroup & WithStaleIpPermissionsEgress(Aws::Vector< StaleIpPermission > &&value)
void SetDescription(Aws::String &&value)
const Aws::Vector< StaleIpPermission > & GetStaleIpPermissionsEgress() const
const Aws::String & GetVpcId() const
StaleSecurityGroup & WithGroupId(Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetGroupId(Aws::String &&value)
StaleSecurityGroup & AddStaleIpPermissions(const StaleIpPermission &value)
StaleSecurityGroup & WithVpcId(Aws::String &&value)
StaleSecurityGroup & AddStaleIpPermissionsEgress(const StaleIpPermission &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API StaleSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< StaleIpPermission > & GetStaleIpPermissions() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStaleIpPermissions(Aws::Vector< StaleIpPermission > &&value)
void SetGroupId(const Aws::String &value)
StaleSecurityGroup & AddStaleIpPermissionsEgress(StaleIpPermission &&value)
const Aws::String & GetGroupId() 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