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>
62 template<
typename DirectionT = Aws::String>
63 void SetDirection(DirectionT&& value) { m_directionHasBeenSet =
true; m_direction = std::forward<DirectionT>(value); }
64 template<
typename DirectionT = Aws::String>
74 template<
typename SecurityGroupIdT = Aws::String>
75 void SetSecurityGroupId(SecurityGroupIdT&& value) { m_securityGroupIdHasBeenSet =
true; m_securityGroupId = std::forward<SecurityGroupIdT>(value); }
76 template<
typename SecurityGroupIdT = Aws::String>
86 template<
typename PortRangeT = PortRange>
87 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet =
true; m_portRange = std::forward<PortRangeT>(value); }
88 template<
typename PortRangeT = PortRange>
98 template<
typename PrefixListIdT = Aws::String>
99 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet =
true; m_prefixListId = std::forward<PrefixListIdT>(value); }
100 template<
typename PrefixListIdT = Aws::String>
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>
118 bool m_cidrHasBeenSet =
false;
121 bool m_directionHasBeenSet =
false;
124 bool m_securityGroupIdHasBeenSet =
false;
127 bool m_portRangeHasBeenSet =
false;
130 bool m_prefixListIdHasBeenSet =
false;
133 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