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>
52 template<
typename SecurityGroupRuleIdT = Aws::String>
53 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) { m_securityGroupRuleIdHasBeenSet =
true; m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value); }
54 template<
typename SecurityGroupRuleIdT = Aws::String>
64 template<
typename GroupIdT = Aws::String>
65 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
66 template<
typename GroupIdT = Aws::String>
76 inline void SetIsEgress(
bool value) { m_isEgressHasBeenSet =
true; m_isEgress = value; }
86 template<
typename IpProtocolT = Aws::String>
87 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
88 template<
typename IpProtocolT = Aws::String>
98 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
108 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
118 template<
typename C
idrIpv4T = Aws::String>
119 void SetCidrIpv4(CidrIpv4T&& value) { m_cidrIpv4HasBeenSet =
true; m_cidrIpv4 = std::forward<CidrIpv4T>(value); }
120 template<
typename C
idrIpv4T = Aws::String>
130 template<
typename C
idrIpv6T = Aws::String>
131 void SetCidrIpv6(CidrIpv6T&& value) { m_cidrIpv6HasBeenSet =
true; m_cidrIpv6 = std::forward<CidrIpv6T>(value); }
132 template<
typename C
idrIpv6T = Aws::String>
142 template<
typename PrefixListIdT = Aws::String>
143 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet =
true; m_prefixListId = std::forward<PrefixListIdT>(value); }
144 template<
typename PrefixListIdT = Aws::String>
154 template<
typename ReferencedGroupIdT = Aws::String>
155 void SetReferencedGroupId(ReferencedGroupIdT&& value) { m_referencedGroupIdHasBeenSet =
true; m_referencedGroupId = std::forward<ReferencedGroupIdT>(value); }
156 template<
typename ReferencedGroupIdT = Aws::String>
166 template<
typename DescriptionT = Aws::String>
167 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
168 template<
typename DescriptionT = Aws::String>
174 bool m_securityGroupRuleIdHasBeenSet =
false;
177 bool m_groupIdHasBeenSet =
false;
179 bool m_isEgress{
false};
180 bool m_isEgressHasBeenSet =
false;
183 bool m_ipProtocolHasBeenSet =
false;
186 bool m_fromPortHasBeenSet =
false;
189 bool m_toPortHasBeenSet =
false;
192 bool m_cidrIpv4HasBeenSet =
false;
195 bool m_cidrIpv6HasBeenSet =
false;
198 bool m_prefixListIdHasBeenSet =
false;
201 bool m_referencedGroupIdHasBeenSet =
false;
204 bool m_descriptionHasBeenSet =
false;
bool CidrIpv4HasBeenSet() const
void SetReferencedGroupId(ReferencedGroupIdT &&value)
RevokedSecurityGroupRule & WithCidrIpv4(CidrIpv4T &&value)
RevokedSecurityGroupRule & WithSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
bool ReferencedGroupIdHasBeenSet() const
AWS_EC2_API RevokedSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetIpProtocol() const
RevokedSecurityGroupRule & WithGroupId(GroupIdT &&value)
bool IsEgressHasBeenSet() const
const Aws::String & GetCidrIpv4() const
RevokedSecurityGroupRule & WithDescription(DescriptionT &&value)
const Aws::String & GetGroupId() const
const Aws::String & GetDescription() const
RevokedSecurityGroupRule & WithCidrIpv6(CidrIpv6T &&value)
RevokedSecurityGroupRule & WithFromPort(int value)
RevokedSecurityGroupRule & WithReferencedGroupId(ReferencedGroupIdT &&value)
bool GroupIdHasBeenSet() const
const Aws::String & GetPrefixListId() const
AWS_EC2_API RevokedSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ToPortHasBeenSet() const
void SetPrefixListId(PrefixListIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RevokedSecurityGroupRule & WithPrefixListId(PrefixListIdT &&value)
void SetIpProtocol(IpProtocolT &&value)
RevokedSecurityGroupRule & WithIpProtocol(IpProtocolT &&value)
bool DescriptionHasBeenSet() const
void SetIsEgress(bool value)
void SetCidrIpv4(CidrIpv4T &&value)
RevokedSecurityGroupRule & WithIsEgress(bool value)
const Aws::String & GetReferencedGroupId() const
bool CidrIpv6HasBeenSet() const
void SetFromPort(int value)
AWS_EC2_API RevokedSecurityGroupRule()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGroupId(GroupIdT &&value)
void SetDescription(DescriptionT &&value)
void SetToPort(int value)
bool SecurityGroupRuleIdHasBeenSet() const
const Aws::String & GetSecurityGroupRuleId() const
void SetCidrIpv6(CidrIpv6T &&value)
bool IpProtocolHasBeenSet() const
RevokedSecurityGroupRule & WithToPort(int value)
bool PrefixListIdHasBeenSet() const
const Aws::String & GetCidrIpv6() const
bool FromPortHasBeenSet() const
void SetSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream