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/ec2/model/IcmpTypeCode.h>
11#include <aws/ec2/model/PortRange.h>
12#include <aws/ec2/model/RuleAction.h>
51 template<
typename C
idrBlockT = Aws::String>
52 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet =
true; m_cidrBlock = std::forward<CidrBlockT>(value); }
53 template<
typename C
idrBlockT = Aws::String>
64 inline void SetEgress(
bool value) { m_egressHasBeenSet =
true; m_egress = value; }
74 template<
typename IcmpTypeCodeT = IcmpTypeCode>
75 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet =
true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
76 template<
typename IcmpTypeCodeT = IcmpTypeCode>
86 template<
typename Ipv6C
idrBlockT = Aws::String>
87 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet =
true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
88 template<
typename Ipv6C
idrBlockT = Aws::String>
98 template<
typename PortRangeT = PortRange>
99 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet =
true; m_portRange = std::forward<PortRangeT>(value); }
100 template<
typename PortRangeT = PortRange>
110 template<
typename ProtocolT = Aws::String>
111 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
112 template<
typename ProtocolT = Aws::String>
133 inline void SetRuleNumber(
int value) { m_ruleNumberHasBeenSet =
true; m_ruleNumber = value; }
139 bool m_cidrBlockHasBeenSet =
false;
141 bool m_egress{
false};
142 bool m_egressHasBeenSet =
false;
144 IcmpTypeCode m_icmpTypeCode;
145 bool m_icmpTypeCodeHasBeenSet =
false;
148 bool m_ipv6CidrBlockHasBeenSet =
false;
150 PortRange m_portRange;
151 bool m_portRangeHasBeenSet =
false;
154 bool m_protocolHasBeenSet =
false;
157 bool m_ruleActionHasBeenSet =
false;
160 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