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/PortRange.h>
49 template<
typename C
idrT = Aws::String>
50 void SetCidr(CidrT&& value) { m_cidrHasBeenSet =
true; m_cidr = std::forward<CidrT>(value); }
51 template<
typename C
idrT = Aws::String>
61 inline void SetEgress(
bool value) { m_egressHasBeenSet =
true; m_egress = value; }
71 template<
typename PortRangeT = PortRange>
72 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet =
true; m_portRange = std::forward<PortRangeT>(value); }
73 template<
typename PortRangeT = PortRange>
83 template<
typename ProtocolT = Aws::String>
84 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
85 template<
typename ProtocolT = Aws::String>
95 template<
typename RuleActionT = Aws::String>
96 void SetRuleAction(RuleActionT&& value) { m_ruleActionHasBeenSet =
true; m_ruleAction = std::forward<RuleActionT>(value); }
97 template<
typename RuleActionT = Aws::String>
107 inline void SetRuleNumber(
int value) { m_ruleNumberHasBeenSet =
true; m_ruleNumber = value; }
113 bool m_cidrHasBeenSet =
false;
115 bool m_egress{
false};
116 bool m_egressHasBeenSet =
false;
118 PortRange m_portRange;
119 bool m_portRangeHasBeenSet =
false;
122 bool m_protocolHasBeenSet =
false;
125 bool m_ruleActionHasBeenSet =
false;
128 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