AWS SDK for C++  1.9.71
AWS SDK for C++
NetworkAclEntry.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
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& GetCidrBlock() const{ return m_cidrBlock; }
49 
53  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
54 
58  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
59 
63  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
64 
68  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
69 
73  inline NetworkAclEntry& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
74 
78  inline NetworkAclEntry& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
79 
83  inline NetworkAclEntry& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
84 
85 
90  inline bool GetEgress() const{ return m_egress; }
91 
96  inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
97 
102  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
103 
108  inline NetworkAclEntry& WithEgress(bool value) { SetEgress(value); return *this;}
109 
110 
114  inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
115 
119  inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
120 
124  inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
125 
129  inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
130 
134  inline NetworkAclEntry& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
135 
139  inline NetworkAclEntry& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
140 
141 
145  inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
146 
150  inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
151 
155  inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
156 
160  inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
161 
165  inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
166 
170  inline NetworkAclEntry& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
171 
175  inline NetworkAclEntry& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
176 
180  inline NetworkAclEntry& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
181 
182 
186  inline const PortRange& GetPortRange() const{ return m_portRange; }
187 
191  inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
192 
196  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
197 
201  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
202 
206  inline NetworkAclEntry& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
207 
211  inline NetworkAclEntry& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
212 
213 
217  inline const Aws::String& GetProtocol() const{ return m_protocol; }
218 
222  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
223 
227  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
228 
232  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
233 
237  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
238 
242  inline NetworkAclEntry& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
243 
247  inline NetworkAclEntry& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
248 
252  inline NetworkAclEntry& WithProtocol(const char* value) { SetProtocol(value); return *this;}
253 
254 
258  inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
259 
263  inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
264 
268  inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
269 
273  inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
274 
278  inline NetworkAclEntry& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
279 
283  inline NetworkAclEntry& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
284 
285 
290  inline int GetRuleNumber() const{ return m_ruleNumber; }
291 
296  inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
297 
302  inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
303 
308  inline NetworkAclEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
309 
310  private:
311 
312  Aws::String m_cidrBlock;
313  bool m_cidrBlockHasBeenSet;
314 
315  bool m_egress;
316  bool m_egressHasBeenSet;
317 
318  IcmpTypeCode m_icmpTypeCode;
319  bool m_icmpTypeCodeHasBeenSet;
320 
321  Aws::String m_ipv6CidrBlock;
322  bool m_ipv6CidrBlockHasBeenSet;
323 
324  PortRange m_portRange;
325  bool m_portRangeHasBeenSet;
326 
327  Aws::String m_protocol;
328  bool m_protocolHasBeenSet;
329 
330  RuleAction m_ruleAction;
331  bool m_ruleActionHasBeenSet;
332 
333  int m_ruleNumber;
334  bool m_ruleNumberHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace EC2
339 } // namespace Aws
Aws::EC2::Model::NetworkAclEntry::WithIpv6CidrBlock
NetworkAclEntry & WithIpv6CidrBlock(Aws::String &&value)
Definition: NetworkAclEntry.h:175
Aws::EC2::Model::NetworkAclEntry::RuleNumberHasBeenSet
bool RuleNumberHasBeenSet() const
Definition: NetworkAclEntry.h:296
Aws::EC2::Model::NetworkAclEntry::WithProtocol
NetworkAclEntry & WithProtocol(Aws::String &&value)
Definition: NetworkAclEntry.h:247
Aws::EC2::Model::NetworkAclEntry::PortRangeHasBeenSet
bool PortRangeHasBeenSet() const
Definition: NetworkAclEntry.h:191
Aws::EC2::Model::NetworkAclEntry
Definition: NetworkAclEntry.h:35
Aws::EC2::Model::NetworkAclEntry::WithProtocol
NetworkAclEntry & WithProtocol(const Aws::String &value)
Definition: NetworkAclEntry.h:242
Aws::EC2::Model::NetworkAclEntry::SetIpv6CidrBlock
void SetIpv6CidrBlock(Aws::String &&value)
Definition: NetworkAclEntry.h:160
Aws::EC2::Model::NetworkAclEntry::operator=
NetworkAclEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkAclEntry::SetIpv6CidrBlock
void SetIpv6CidrBlock(const Aws::String &value)
Definition: NetworkAclEntry.h:155
Aws::EC2::Model::NetworkAclEntry::CidrBlockHasBeenSet
bool CidrBlockHasBeenSet() const
Definition: NetworkAclEntry.h:53
Aws::EC2::Model::RuleAction
RuleAction
Definition: RuleAction.h:17
Aws::EC2::Model::NetworkAclEntry::WithIcmpTypeCode
NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCode &&value)
Definition: NetworkAclEntry.h:139
Aws::EC2::Model::NetworkAclEntry::WithIpv6CidrBlock
NetworkAclEntry & WithIpv6CidrBlock(const Aws::String &value)
Definition: NetworkAclEntry.h:170
Aws::EC2::Model::IcmpTypeCode
Definition: IcmpTypeCode.h:30
Aws::EC2::Model::NetworkAclEntry::SetIcmpTypeCode
void SetIcmpTypeCode(IcmpTypeCode &&value)
Definition: NetworkAclEntry.h:129
Aws::EC2::Model::NetworkAclEntry::NetworkAclEntry
NetworkAclEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkAclEntry::Ipv6CidrBlockHasBeenSet
bool Ipv6CidrBlockHasBeenSet() const
Definition: NetworkAclEntry.h:150
Aws::EC2::Model::NetworkAclEntry::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: NetworkAclEntry.h:222
Aws::EC2::Model::NetworkAclEntry::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkAclEntry::WithEgress
NetworkAclEntry & WithEgress(bool value)
Definition: NetworkAclEntry.h:108
IcmpTypeCode.h
AWSStreamFwd.h
Aws::EC2::Model::NetworkAclEntry::WithCidrBlock
NetworkAclEntry & WithCidrBlock(const Aws::String &value)
Definition: NetworkAclEntry.h:73
Aws::EC2::Model::NetworkAclEntry::WithPortRange
NetworkAclEntry & WithPortRange(const PortRange &value)
Definition: NetworkAclEntry.h:206
Aws::EC2::Model::NetworkAclEntry::NetworkAclEntry
NetworkAclEntry()
Aws::EC2::Model::NetworkAclEntry::GetCidrBlock
const Aws::String & GetCidrBlock() const
Definition: NetworkAclEntry.h:48
Aws::EC2::Model::NetworkAclEntry::WithIpv6CidrBlock
NetworkAclEntry & WithIpv6CidrBlock(const char *value)
Definition: NetworkAclEntry.h:180
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkAclEntry::SetProtocol
void SetProtocol(const char *value)
Definition: NetworkAclEntry.h:237
Aws::EC2::Model::NetworkAclEntry::SetRuleAction
void SetRuleAction(RuleAction &&value)
Definition: NetworkAclEntry.h:273
Aws::EC2::Model::NetworkAclEntry::WithRuleNumber
NetworkAclEntry & WithRuleNumber(int value)
Definition: NetworkAclEntry.h:308
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkAclEntry::WithPortRange
NetworkAclEntry & WithPortRange(PortRange &&value)
Definition: NetworkAclEntry.h:211
Aws::EC2::Model::NetworkAclEntry::GetProtocol
const Aws::String & GetProtocol() const
Definition: NetworkAclEntry.h:217
Aws::EC2::Model::NetworkAclEntry::SetRuleAction
void SetRuleAction(const RuleAction &value)
Definition: NetworkAclEntry.h:268
Aws::EC2::Model::NetworkAclEntry::WithCidrBlock
NetworkAclEntry & WithCidrBlock(const char *value)
Definition: NetworkAclEntry.h:83
Aws::EC2::Model::NetworkAclEntry::SetPortRange
void SetPortRange(const PortRange &value)
Definition: NetworkAclEntry.h:196
PortRange.h
Aws::EC2::Model::NetworkAclEntry::EgressHasBeenSet
bool EgressHasBeenSet() const
Definition: NetworkAclEntry.h:96
Aws::EC2::Model::NetworkAclEntry::SetEgress
void SetEgress(bool value)
Definition: NetworkAclEntry.h:102
Aws::EC2::Model::NetworkAclEntry::GetEgress
bool GetEgress() const
Definition: NetworkAclEntry.h:90
Aws::EC2::Model::NetworkAclEntry::SetIcmpTypeCode
void SetIcmpTypeCode(const IcmpTypeCode &value)
Definition: NetworkAclEntry.h:124
Aws::EC2::Model::NetworkAclEntry::GetRuleNumber
int GetRuleNumber() const
Definition: NetworkAclEntry.h:290
Aws::EC2::Model::NetworkAclEntry::GetIpv6CidrBlock
const Aws::String & GetIpv6CidrBlock() const
Definition: NetworkAclEntry.h:145
AWSString.h
Aws::EC2::Model::NetworkAclEntry::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: NetworkAclEntry.h:227
Aws::EC2::Model::NetworkAclEntry::WithIcmpTypeCode
NetworkAclEntry & WithIcmpTypeCode(const IcmpTypeCode &value)
Definition: NetworkAclEntry.h:134
Aws::EC2::Model::NetworkAclEntry::GetPortRange
const PortRange & GetPortRange() const
Definition: NetworkAclEntry.h:186
Aws::EC2::Model::NetworkAclEntry::GetIcmpTypeCode
const IcmpTypeCode & GetIcmpTypeCode() const
Definition: NetworkAclEntry.h:114
Aws::EC2::Model::NetworkAclEntry::WithRuleAction
NetworkAclEntry & WithRuleAction(const RuleAction &value)
Definition: NetworkAclEntry.h:278
Aws::EC2::Model::NetworkAclEntry::SetRuleNumber
void SetRuleNumber(int value)
Definition: NetworkAclEntry.h:302
Aws::EC2::Model::NetworkAclEntry::SetPortRange
void SetPortRange(PortRange &&value)
Definition: NetworkAclEntry.h:201
Aws::EC2::Model::NetworkAclEntry::SetIpv6CidrBlock
void SetIpv6CidrBlock(const char *value)
Definition: NetworkAclEntry.h:165
Aws::EC2::Model::NetworkAclEntry::SetCidrBlock
void SetCidrBlock(Aws::String &&value)
Definition: NetworkAclEntry.h:63
Aws::EC2::Model::NetworkAclEntry::WithCidrBlock
NetworkAclEntry & WithCidrBlock(Aws::String &&value)
Definition: NetworkAclEntry.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkAclEntry::WithProtocol
NetworkAclEntry & WithProtocol(const char *value)
Definition: NetworkAclEntry.h:252
Aws::EC2::Model::NetworkAclEntry::SetCidrBlock
void SetCidrBlock(const char *value)
Definition: NetworkAclEntry.h:68
Aws::EC2::Model::NetworkAclEntry::RuleActionHasBeenSet
bool RuleActionHasBeenSet() const
Definition: NetworkAclEntry.h:263
Aws::EC2::Model::NetworkAclEntry::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkAclEntry::WithRuleAction
NetworkAclEntry & WithRuleAction(RuleAction &&value)
Definition: NetworkAclEntry.h:283
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkAclEntry::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: NetworkAclEntry.h:232
Aws::EC2::Model::NetworkAclEntry::GetRuleAction
const RuleAction & GetRuleAction() const
Definition: NetworkAclEntry.h:258
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
EC2_EXPORTS.h
RuleAction.h
Aws::EC2::Model::NetworkAclEntry::SetCidrBlock
void SetCidrBlock(const Aws::String &value)
Definition: NetworkAclEntry.h:58
Aws::EC2::Model::NetworkAclEntry::IcmpTypeCodeHasBeenSet
bool IcmpTypeCodeHasBeenSet() const
Definition: NetworkAclEntry.h:119