7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/IcmpTypeCode.h>
10#include <aws/securityhub/model/PortRangeFromTo.h>
49 template<
typename C
idrBlockT = Aws::String>
50 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet =
true; m_cidrBlock = std::forward<CidrBlockT>(value); }
51 template<
typename C
idrBlockT = Aws::String>
62 inline void SetEgress(
bool value) { m_egressHasBeenSet =
true; m_egress = value; }
73 template<
typename IcmpTypeCodeT = IcmpTypeCode>
74 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet =
true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
75 template<
typename IcmpTypeCodeT = IcmpTypeCode>
85 template<
typename Ipv6C
idrBlockT = Aws::String>
86 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet =
true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
87 template<
typename Ipv6C
idrBlockT = Aws::String>
97 template<
typename PortRangeT = PortRangeFromTo>
98 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet =
true; m_portRange = std::forward<PortRangeT>(value); }
99 template<
typename PortRangeT = PortRangeFromTo>
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>
122 template<
typename RuleActionT = Aws::String>
123 void SetRuleAction(RuleActionT&& value) { m_ruleActionHasBeenSet =
true; m_ruleAction = std::forward<RuleActionT>(value); }
124 template<
typename RuleActionT = Aws::String>
134 inline void SetRuleNumber(
int value) { m_ruleNumberHasBeenSet =
true; m_ruleNumber = value; }
140 bool m_cidrBlockHasBeenSet =
false;
142 bool m_egress{
false};
143 bool m_egressHasBeenSet =
false;
145 IcmpTypeCode m_icmpTypeCode;
146 bool m_icmpTypeCodeHasBeenSet =
false;
149 bool m_ipv6CidrBlockHasBeenSet =
false;
151 PortRangeFromTo m_portRange;
152 bool m_portRangeHasBeenSet =
false;
155 bool m_protocolHasBeenSet =
false;
158 bool m_ruleActionHasBeenSet =
false;
161 bool m_ruleNumberHasBeenSet =
false;
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCidrBlock(CidrBlockT &&value)
bool CidrBlockHasBeenSet() const
bool PortRangeHasBeenSet() const
AwsEc2NetworkAclEntry & WithRuleNumber(int value)
bool EgressHasBeenSet() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool Ipv6CidrBlockHasBeenSet() const
const Aws::String & GetProtocol() const
const PortRangeFromTo & GetPortRange() const
bool RuleActionHasBeenSet() const
AwsEc2NetworkAclEntry & WithRuleAction(RuleActionT &&value)
AwsEc2NetworkAclEntry & WithCidrBlock(CidrBlockT &&value)
AwsEc2NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCodeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry(Aws::Utils::Json::JsonView jsonValue)
void SetEgress(bool value)
bool IcmpTypeCodeHasBeenSet() const
const IcmpTypeCode & GetIcmpTypeCode() const
AwsEc2NetworkAclEntry & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
bool ProtocolHasBeenSet() const
void SetPortRange(PortRangeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry()=default
const Aws::String & GetCidrBlock() const
void SetIpv6CidrBlock(Ipv6CidrBlockT &&value)
void SetProtocol(ProtocolT &&value)
bool RuleNumberHasBeenSet() const
AwsEc2NetworkAclEntry & WithEgress(bool value)
void SetRuleNumber(int value)
const Aws::String & GetRuleAction() const
const Aws::String & GetIpv6CidrBlock() const
AwsEc2NetworkAclEntry & WithPortRange(PortRangeT &&value)
void SetRuleAction(RuleActionT &&value)
int GetRuleNumber() const
AwsEc2NetworkAclEntry & WithProtocol(ProtocolT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue