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#include <aws/ec2/model/IcmpTypeCode.h>
11#include <aws/ec2/model/PortRange.h>
12#include <aws/ec2/model/RuleAction.h>
45 template <
typename C
idrBlockT = Aws::String>
47 m_cidrBlockHasBeenSet =
true;
48 m_cidrBlock = std::forward<CidrBlockT>(value);
50 template <
typename C
idrBlockT = Aws::String>
65 m_egressHasBeenSet =
true;
80 template <
typename IcmpTypeCodeT = IcmpTypeCode>
82 m_icmpTypeCodeHasBeenSet =
true;
83 m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value);
85 template <
typename IcmpTypeCodeT = IcmpTypeCode>
98 template <
typename Ipv6C
idrBlockT = Aws::String>
100 m_ipv6CidrBlockHasBeenSet =
true;
101 m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value);
103 template <
typename Ipv6C
idrBlockT = Aws::String>
116 template <
typename PortRangeT = PortRange>
118 m_portRangeHasBeenSet =
true;
119 m_portRange = std::forward<PortRangeT>(value);
121 template <
typename PortRangeT = PortRange>
134 template <
typename ProtocolT = Aws::String>
136 m_protocolHasBeenSet =
true;
137 m_protocol = std::forward<ProtocolT>(value);
139 template <
typename ProtocolT = Aws::String>
153 m_ruleActionHasBeenSet =
true;
154 m_ruleAction = value;
170 m_ruleNumberHasBeenSet =
true;
171 m_ruleNumber = value;
181 bool m_egress{
false};
183 IcmpTypeCode m_icmpTypeCode;
187 PortRange m_portRange;
194 bool m_cidrBlockHasBeenSet =
false;
195 bool m_egressHasBeenSet =
false;
196 bool m_icmpTypeCodeHasBeenSet =
false;
197 bool m_ipv6CidrBlockHasBeenSet =
false;
198 bool m_portRangeHasBeenSet =
false;
199 bool m_protocolHasBeenSet =
false;
200 bool m_ruleActionHasBeenSet =
false;
201 bool m_ruleNumberHasBeenSet =
false;
bool Ipv6CidrBlockHasBeenSet() const
int GetRuleNumber() const
bool IcmpTypeCodeHasBeenSet() const
RuleAction GetRuleAction() const
bool EgressHasBeenSet() const
void SetCidrBlock(CidrBlockT &&value)
void SetRuleNumber(int value)
void SetEgress(bool value)
void SetRuleAction(RuleAction value)
NetworkAclEntry & WithRuleAction(RuleAction value)
const Aws::String & GetIpv6CidrBlock() const
AWS_EC2_API NetworkAclEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetProtocol(ProtocolT &&value)
AWS_EC2_API NetworkAclEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
const IcmpTypeCode & GetIcmpTypeCode() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPortRange(PortRangeT &&value)
const Aws::String & GetProtocol() const
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
bool PortRangeHasBeenSet() const
NetworkAclEntry & WithCidrBlock(CidrBlockT &&value)
bool RuleNumberHasBeenSet() const
NetworkAclEntry & WithEgress(bool value)
void SetIpv6CidrBlock(Ipv6CidrBlockT &&value)
const Aws::String & GetCidrBlock() const
NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCodeT &&value)
NetworkAclEntry & WithPortRange(PortRangeT &&value)
bool ProtocolHasBeenSet() const
NetworkAclEntry & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
NetworkAclEntry & WithProtocol(ProtocolT &&value)
bool CidrBlockHasBeenSet() const
const PortRange & GetPortRange() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkAclEntry & WithRuleNumber(int value)
AWS_EC2_API NetworkAclEntry()=default
bool RuleActionHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream