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 template <
typename DirectionT = Aws::String>
64 m_directionHasBeenSet =
true;
65 m_direction = std::forward<DirectionT>(value);
67 template <
typename DirectionT = Aws::String>
80 template <
typename SecurityGroupIdT = Aws::String>
82 m_securityGroupIdHasBeenSet =
true;
83 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
85 template <
typename SecurityGroupIdT = Aws::String>
98 template <
typename PortRangeT = PortRange>
100 m_portRangeHasBeenSet =
true;
101 m_portRange = std::forward<PortRangeT>(value);
103 template <
typename PortRangeT = PortRange>
116 template <
typename PrefixListIdT = Aws::String>
118 m_prefixListIdHasBeenSet =
true;
119 m_prefixListId = std::forward<PrefixListIdT>(value);
121 template <
typename PrefixListIdT = Aws::String>
134 template <
typename ProtocolT = Aws::String>
136 m_protocolHasBeenSet =
true;
137 m_protocol = std::forward<ProtocolT>(value);
139 template <
typename ProtocolT = Aws::String>
157 bool m_cidrHasBeenSet =
false;
158 bool m_directionHasBeenSet =
false;
159 bool m_securityGroupIdHasBeenSet =
false;
160 bool m_portRangeHasBeenSet =
false;
161 bool m_prefixListIdHasBeenSet =
false;
162 bool m_protocolHasBeenSet =
false;
AWS_EC2_API AnalysisSecurityGroupRule()=default
void SetProtocol(ProtocolT &&value)
void SetPortRange(PortRangeT &&value)
bool DirectionHasBeenSet() const
AnalysisSecurityGroupRule & WithPrefixListId(PrefixListIdT &&value)
const Aws::String & GetSecurityGroupId() const
AWS_EC2_API AnalysisSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CidrHasBeenSet() const
AnalysisSecurityGroupRule & WithProtocol(ProtocolT &&value)
AnalysisSecurityGroupRule & WithCidr(CidrT &&value)
void SetDirection(DirectionT &&value)
AWS_EC2_API AnalysisSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ProtocolHasBeenSet() const
bool PrefixListIdHasBeenSet() const
const PortRange & GetPortRange() const
AnalysisSecurityGroupRule & WithSecurityGroupId(SecurityGroupIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetPrefixListId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDirection() const
void SetCidr(CidrT &&value)
const Aws::String & GetProtocol() const
AnalysisSecurityGroupRule & WithPortRange(PortRangeT &&value)
void SetSecurityGroupId(SecurityGroupIdT &&value)
bool SecurityGroupIdHasBeenSet() const
const Aws::String & GetCidr() const
bool PortRangeHasBeenSet() const
AnalysisSecurityGroupRule & WithDirection(DirectionT &&value)
void SetPrefixListId(PrefixListIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream