AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokedSecurityGroupRule.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_EC2_API RevokedSecurityGroupRule() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetSecurityGroupRuleId() const { return m_securityGroupRuleId; }
51 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
52 template<typename SecurityGroupRuleIdT = Aws::String>
53 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value); }
54 template<typename SecurityGroupRuleIdT = Aws::String>
55 RevokedSecurityGroupRule& WithSecurityGroupRuleId(SecurityGroupRuleIdT&& value) { SetSecurityGroupRuleId(std::forward<SecurityGroupRuleIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetGroupId() const { return m_groupId; }
63 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
64 template<typename GroupIdT = Aws::String>
65 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
66 template<typename GroupIdT = Aws::String>
67 RevokedSecurityGroupRule& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
69
71
74 inline bool GetIsEgress() const { return m_isEgress; }
75 inline bool IsEgressHasBeenSet() const { return m_isEgressHasBeenSet; }
76 inline void SetIsEgress(bool value) { m_isEgressHasBeenSet = true; m_isEgress = value; }
77 inline RevokedSecurityGroupRule& WithIsEgress(bool value) { SetIsEgress(value); return *this;}
79
81
84 inline const Aws::String& GetIpProtocol() const { return m_ipProtocol; }
85 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
86 template<typename IpProtocolT = Aws::String>
87 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::forward<IpProtocolT>(value); }
88 template<typename IpProtocolT = Aws::String>
89 RevokedSecurityGroupRule& WithIpProtocol(IpProtocolT&& value) { SetIpProtocol(std::forward<IpProtocolT>(value)); return *this;}
91
93
96 inline int GetFromPort() const { return m_fromPort; }
97 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
98 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
99 inline RevokedSecurityGroupRule& WithFromPort(int value) { SetFromPort(value); return *this;}
101
103
106 inline int GetToPort() const { return m_toPort; }
107 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
108 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
109 inline RevokedSecurityGroupRule& WithToPort(int value) { SetToPort(value); return *this;}
111
113
116 inline const Aws::String& GetCidrIpv4() const { return m_cidrIpv4; }
117 inline bool CidrIpv4HasBeenSet() const { return m_cidrIpv4HasBeenSet; }
118 template<typename CidrIpv4T = Aws::String>
119 void SetCidrIpv4(CidrIpv4T&& value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4 = std::forward<CidrIpv4T>(value); }
120 template<typename CidrIpv4T = Aws::String>
121 RevokedSecurityGroupRule& WithCidrIpv4(CidrIpv4T&& value) { SetCidrIpv4(std::forward<CidrIpv4T>(value)); return *this;}
123
125
128 inline const Aws::String& GetCidrIpv6() const { return m_cidrIpv6; }
129 inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; }
130 template<typename CidrIpv6T = Aws::String>
131 void SetCidrIpv6(CidrIpv6T&& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = std::forward<CidrIpv6T>(value); }
132 template<typename CidrIpv6T = Aws::String>
133 RevokedSecurityGroupRule& WithCidrIpv6(CidrIpv6T&& value) { SetCidrIpv6(std::forward<CidrIpv6T>(value)); return *this;}
135
137
140 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
141 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
142 template<typename PrefixListIdT = Aws::String>
143 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::forward<PrefixListIdT>(value); }
144 template<typename PrefixListIdT = Aws::String>
145 RevokedSecurityGroupRule& WithPrefixListId(PrefixListIdT&& value) { SetPrefixListId(std::forward<PrefixListIdT>(value)); return *this;}
147
149
152 inline const Aws::String& GetReferencedGroupId() const { return m_referencedGroupId; }
153 inline bool ReferencedGroupIdHasBeenSet() const { return m_referencedGroupIdHasBeenSet; }
154 template<typename ReferencedGroupIdT = Aws::String>
155 void SetReferencedGroupId(ReferencedGroupIdT&& value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId = std::forward<ReferencedGroupIdT>(value); }
156 template<typename ReferencedGroupIdT = Aws::String>
157 RevokedSecurityGroupRule& WithReferencedGroupId(ReferencedGroupIdT&& value) { SetReferencedGroupId(std::forward<ReferencedGroupIdT>(value)); return *this;}
159
161
164 inline const Aws::String& GetDescription() const { return m_description; }
165 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
166 template<typename DescriptionT = Aws::String>
167 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
168 template<typename DescriptionT = Aws::String>
169 RevokedSecurityGroupRule& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
171 private:
172
173 Aws::String m_securityGroupRuleId;
174 bool m_securityGroupRuleIdHasBeenSet = false;
175
176 Aws::String m_groupId;
177 bool m_groupIdHasBeenSet = false;
178
179 bool m_isEgress{false};
180 bool m_isEgressHasBeenSet = false;
181
182 Aws::String m_ipProtocol;
183 bool m_ipProtocolHasBeenSet = false;
184
185 int m_fromPort{0};
186 bool m_fromPortHasBeenSet = false;
187
188 int m_toPort{0};
189 bool m_toPortHasBeenSet = false;
190
191 Aws::String m_cidrIpv4;
192 bool m_cidrIpv4HasBeenSet = false;
193
194 Aws::String m_cidrIpv6;
195 bool m_cidrIpv6HasBeenSet = false;
196
197 Aws::String m_prefixListId;
198 bool m_prefixListIdHasBeenSet = false;
199
200 Aws::String m_referencedGroupId;
201 bool m_referencedGroupIdHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
void SetReferencedGroupId(ReferencedGroupIdT &&value)
RevokedSecurityGroupRule & WithCidrIpv4(CidrIpv4T &&value)
RevokedSecurityGroupRule & WithSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
AWS_EC2_API RevokedSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
RevokedSecurityGroupRule & WithGroupId(GroupIdT &&value)
RevokedSecurityGroupRule & WithDescription(DescriptionT &&value)
RevokedSecurityGroupRule & WithCidrIpv6(CidrIpv6T &&value)
RevokedSecurityGroupRule & WithFromPort(int value)
RevokedSecurityGroupRule & WithReferencedGroupId(ReferencedGroupIdT &&value)
AWS_EC2_API RevokedSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RevokedSecurityGroupRule & WithPrefixListId(PrefixListIdT &&value)
RevokedSecurityGroupRule & WithIpProtocol(IpProtocolT &&value)
RevokedSecurityGroupRule & WithIsEgress(bool value)
AWS_EC2_API RevokedSecurityGroupRule()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RevokedSecurityGroupRule & WithToPort(int value)
void SetSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream