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/PortRange.h>
43 template <
typename C
idrT = Aws::String>
45 m_cidrHasBeenSet =
true;
46 m_cidr = std::forward<CidrT>(value);
48 template <
typename C
idrT = Aws::String>
50 SetCidr(std::forward<CidrT>(value));
62 m_egressHasBeenSet =
true;
77 template <
typename PortRangeT = PortRange>
79 m_portRangeHasBeenSet =
true;
80 m_portRange = std::forward<PortRangeT>(value);
82 template <
typename PortRangeT = PortRange>
95 template <
typename ProtocolT = Aws::String>
97 m_protocolHasBeenSet =
true;
98 m_protocol = std::forward<ProtocolT>(value);
100 template <
typename ProtocolT = Aws::String>
113 template <
typename RuleActionT = Aws::String>
115 m_ruleActionHasBeenSet =
true;
116 m_ruleAction = std::forward<RuleActionT>(value);
118 template <
typename RuleActionT = Aws::String>
132 m_ruleNumberHasBeenSet =
true;
133 m_ruleNumber = value;
143 bool m_egress{
false};
145 PortRange m_portRange;
152 bool m_cidrHasBeenSet =
false;
153 bool m_egressHasBeenSet =
false;
154 bool m_portRangeHasBeenSet =
false;
155 bool m_protocolHasBeenSet =
false;
156 bool m_ruleActionHasBeenSet =
false;
157 bool m_ruleNumberHasBeenSet =
false;
const PortRange & GetPortRange() const
const Aws::String & GetCidr() const
void SetRuleNumber(int value)
AnalysisAclRule & WithPortRange(PortRangeT &&value)
AnalysisAclRule & WithEgress(bool value)
AnalysisAclRule & WithRuleNumber(int value)
bool RuleActionHasBeenSet() const
AnalysisAclRule & WithRuleAction(RuleActionT &&value)
void SetPortRange(PortRangeT &&value)
bool ProtocolHasBeenSet() const
bool PortRangeHasBeenSet() const
AnalysisAclRule & WithCidr(CidrT &&value)
void SetProtocol(ProtocolT &&value)
int GetRuleNumber() const
void SetCidr(CidrT &&value)
AWS_EC2_API AnalysisAclRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API AnalysisAclRule()=default
void SetRuleAction(RuleActionT &&value)
bool EgressHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetRuleAction() const
AWS_EC2_API AnalysisAclRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetProtocol() const
bool CidrHasBeenSet() const
AnalysisAclRule & WithProtocol(ProtocolT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool RuleNumberHasBeenSet() const
void SetEgress(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream