AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RevokedSecurityGroupRule.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
32 public:
33 AWS_EC2_API RevokedSecurityGroupRule() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetSecurityGroupRuleId() const { return m_securityGroupRuleId; }
45 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
46 template <typename SecurityGroupRuleIdT = Aws::String>
47 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) {
48 m_securityGroupRuleIdHasBeenSet = true;
49 m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value);
50 }
51 template <typename SecurityGroupRuleIdT = Aws::String>
52 RevokedSecurityGroupRule& WithSecurityGroupRuleId(SecurityGroupRuleIdT&& value) {
53 SetSecurityGroupRuleId(std::forward<SecurityGroupRuleIdT>(value));
54 return *this;
55 }
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) {
66 m_groupIdHasBeenSet = true;
67 m_groupId = std::forward<GroupIdT>(value);
68 }
69 template <typename GroupIdT = Aws::String>
71 SetGroupId(std::forward<GroupIdT>(value));
72 return *this;
73 }
75
77
80 inline bool GetIsEgress() const { return m_isEgress; }
81 inline bool IsEgressHasBeenSet() const { return m_isEgressHasBeenSet; }
82 inline void SetIsEgress(bool value) {
83 m_isEgressHasBeenSet = true;
84 m_isEgress = value;
85 }
87 SetIsEgress(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetIpProtocol() const { return m_ipProtocol; }
97 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
98 template <typename IpProtocolT = Aws::String>
99 void SetIpProtocol(IpProtocolT&& value) {
100 m_ipProtocolHasBeenSet = true;
101 m_ipProtocol = std::forward<IpProtocolT>(value);
102 }
103 template <typename IpProtocolT = Aws::String>
105 SetIpProtocol(std::forward<IpProtocolT>(value));
106 return *this;
107 }
109
111
114 inline int GetFromPort() const { return m_fromPort; }
115 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
116 inline void SetFromPort(int value) {
117 m_fromPortHasBeenSet = true;
118 m_fromPort = value;
119 }
121 SetFromPort(value);
122 return *this;
123 }
125
127
130 inline int GetToPort() const { return m_toPort; }
131 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
132 inline void SetToPort(int value) {
133 m_toPortHasBeenSet = true;
134 m_toPort = value;
135 }
137 SetToPort(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetCidrIpv4() const { return m_cidrIpv4; }
147 inline bool CidrIpv4HasBeenSet() const { return m_cidrIpv4HasBeenSet; }
148 template <typename CidrIpv4T = Aws::String>
149 void SetCidrIpv4(CidrIpv4T&& value) {
150 m_cidrIpv4HasBeenSet = true;
151 m_cidrIpv4 = std::forward<CidrIpv4T>(value);
152 }
153 template <typename CidrIpv4T = Aws::String>
155 SetCidrIpv4(std::forward<CidrIpv4T>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetCidrIpv6() const { return m_cidrIpv6; }
165 inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; }
166 template <typename CidrIpv6T = Aws::String>
167 void SetCidrIpv6(CidrIpv6T&& value) {
168 m_cidrIpv6HasBeenSet = true;
169 m_cidrIpv6 = std::forward<CidrIpv6T>(value);
170 }
171 template <typename CidrIpv6T = Aws::String>
173 SetCidrIpv6(std::forward<CidrIpv6T>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
183 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
184 template <typename PrefixListIdT = Aws::String>
185 void SetPrefixListId(PrefixListIdT&& value) {
186 m_prefixListIdHasBeenSet = true;
187 m_prefixListId = std::forward<PrefixListIdT>(value);
188 }
189 template <typename PrefixListIdT = Aws::String>
191 SetPrefixListId(std::forward<PrefixListIdT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetReferencedGroupId() const { return m_referencedGroupId; }
201 inline bool ReferencedGroupIdHasBeenSet() const { return m_referencedGroupIdHasBeenSet; }
202 template <typename ReferencedGroupIdT = Aws::String>
203 void SetReferencedGroupId(ReferencedGroupIdT&& value) {
204 m_referencedGroupIdHasBeenSet = true;
205 m_referencedGroupId = std::forward<ReferencedGroupIdT>(value);
206 }
207 template <typename ReferencedGroupIdT = Aws::String>
208 RevokedSecurityGroupRule& WithReferencedGroupId(ReferencedGroupIdT&& value) {
209 SetReferencedGroupId(std::forward<ReferencedGroupIdT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetDescription() const { return m_description; }
219 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
220 template <typename DescriptionT = Aws::String>
221 void SetDescription(DescriptionT&& value) {
222 m_descriptionHasBeenSet = true;
223 m_description = std::forward<DescriptionT>(value);
224 }
225 template <typename DescriptionT = Aws::String>
227 SetDescription(std::forward<DescriptionT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_securityGroupRuleId;
233
234 Aws::String m_groupId;
235
236 bool m_isEgress{false};
237
238 Aws::String m_ipProtocol;
239
240 int m_fromPort{0};
241
242 int m_toPort{0};
243
244 Aws::String m_cidrIpv4;
245
246 Aws::String m_cidrIpv6;
247
248 Aws::String m_prefixListId;
249
250 Aws::String m_referencedGroupId;
251
252 Aws::String m_description;
253 bool m_securityGroupRuleIdHasBeenSet = false;
254 bool m_groupIdHasBeenSet = false;
255 bool m_isEgressHasBeenSet = false;
256 bool m_ipProtocolHasBeenSet = false;
257 bool m_fromPortHasBeenSet = false;
258 bool m_toPortHasBeenSet = false;
259 bool m_cidrIpv4HasBeenSet = false;
260 bool m_cidrIpv6HasBeenSet = false;
261 bool m_prefixListIdHasBeenSet = false;
262 bool m_referencedGroupIdHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace EC2
268} // 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