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>
65 template<
typename IpProtocolT = Aws::String>
66 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
67 template<
typename IpProtocolT = Aws::String>
78 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
91 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
102 template<
typename C
idrIpv4T = Aws::String>
103 void SetCidrIpv4(CidrIpv4T&& value) { m_cidrIpv4HasBeenSet =
true; m_cidrIpv4 = std::forward<CidrIpv4T>(value); }
104 template<
typename C
idrIpv4T = Aws::String>
115 template<
typename C
idrIpv6T = Aws::String>
116 void SetCidrIpv6(CidrIpv6T&& value) { m_cidrIpv6HasBeenSet =
true; m_cidrIpv6 = std::forward<CidrIpv6T>(value); }
117 template<
typename C
idrIpv6T = Aws::String>
127 template<
typename PrefixListIdT = Aws::String>
128 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet =
true; m_prefixListId = std::forward<PrefixListIdT>(value); }
129 template<
typename PrefixListIdT = Aws::String>
140 template<
typename ReferencedGroupIdT = Aws::String>
141 void SetReferencedGroupId(ReferencedGroupIdT&& value) { m_referencedGroupIdHasBeenSet =
true; m_referencedGroupId = std::forward<ReferencedGroupIdT>(value); }
142 template<
typename ReferencedGroupIdT = Aws::String>
152 template<
typename DescriptionT = Aws::String>
153 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
154 template<
typename DescriptionT = Aws::String>
160 bool m_ipProtocolHasBeenSet =
false;
163 bool m_fromPortHasBeenSet =
false;
166 bool m_toPortHasBeenSet =
false;
169 bool m_cidrIpv4HasBeenSet =
false;
172 bool m_cidrIpv6HasBeenSet =
false;
175 bool m_prefixListIdHasBeenSet =
false;
178 bool m_referencedGroupIdHasBeenSet =
false;
181 bool m_descriptionHasBeenSet =
false;
void SetPrefixListId(PrefixListIdT &&value)
SecurityGroupRuleRequest & WithCidrIpv6(CidrIpv6T &&value)
SecurityGroupRuleRequest & WithIpProtocol(IpProtocolT &&value)
const Aws::String & GetPrefixListId() const
void SetFromPort(int value)
void SetCidrIpv6(CidrIpv6T &&value)
SecurityGroupRuleRequest & WithReferencedGroupId(ReferencedGroupIdT &&value)
void SetToPort(int value)
void SetCidrIpv4(CidrIpv4T &&value)
void SetIpProtocol(IpProtocolT &&value)
AWS_EC2_API SecurityGroupRuleRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupRuleRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API SecurityGroupRuleRequest()=default
bool CidrIpv6HasBeenSet() const
SecurityGroupRuleRequest & WithFromPort(int value)
bool ReferencedGroupIdHasBeenSet() const
bool IpProtocolHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupRuleRequest & WithToPort(int value)
bool DescriptionHasBeenSet() const
const Aws::String & GetReferencedGroupId() const
const Aws::String & GetIpProtocol() const
SecurityGroupRuleRequest & WithCidrIpv4(CidrIpv4T &&value)
const Aws::String & GetCidrIpv6() const
const Aws::String & GetDescription() const
SecurityGroupRuleRequest & WithPrefixListId(PrefixListIdT &&value)
const Aws::String & GetCidrIpv4() const
bool ToPortHasBeenSet() const
AWS_EC2_API SecurityGroupRuleRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(DescriptionT &&value)
bool PrefixListIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool FromPortHasBeenSet() const
bool CidrIpv4HasBeenSet() const
void SetReferencedGroupId(ReferencedGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream