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>
59 inline void SetIpProtocol(
const char* value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol.assign(value); }
72 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
85 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
98 inline void SetCidrIpv4(
const char* value) { m_cidrIpv4HasBeenSet =
true; m_cidrIpv4.assign(value); }
113 inline void SetCidrIpv6(
const char* value) { m_cidrIpv6HasBeenSet =
true; m_cidrIpv6.assign(value); }
127 inline void SetPrefixListId(
const char* value) { m_prefixListIdHasBeenSet =
true; m_prefixListId.assign(value); }
142 inline void SetReferencedGroupId(
const char* value) { m_referencedGroupIdHasBeenSet =
true; m_referencedGroupId.assign(value); }
156 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
164 bool m_ipProtocolHasBeenSet =
false;
167 bool m_fromPortHasBeenSet =
false;
170 bool m_toPortHasBeenSet =
false;
173 bool m_cidrIpv4HasBeenSet =
false;
176 bool m_cidrIpv6HasBeenSet =
false;
179 bool m_prefixListIdHasBeenSet =
false;
182 bool m_referencedGroupIdHasBeenSet =
false;
185 bool m_descriptionHasBeenSet =
false;
void SetReferencedGroupId(Aws::String &&value)
void SetIpProtocol(Aws::String &&value)
const Aws::String & GetPrefixListId() const
void SetReferencedGroupId(const Aws::String &value)
void SetFromPort(int value)
SecurityGroupRuleRequest & WithIpProtocol(const Aws::String &value)
AWS_EC2_API SecurityGroupRuleRequest()
SecurityGroupRuleRequest & WithPrefixListId(const char *value)
void SetToPort(int value)
void SetDescription(Aws::String &&value)
AWS_EC2_API SecurityGroupRuleRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupRuleRequest & WithReferencedGroupId(Aws::String &&value)
SecurityGroupRuleRequest & WithCidrIpv6(Aws::String &&value)
void SetCidrIpv6(const Aws::String &value)
void SetReferencedGroupId(const char *value)
bool CidrIpv6HasBeenSet() const
SecurityGroupRuleRequest & WithFromPort(int value)
SecurityGroupRuleRequest & WithReferencedGroupId(const char *value)
SecurityGroupRuleRequest & WithReferencedGroupId(const Aws::String &value)
void SetCidrIpv4(const Aws::String &value)
bool ReferencedGroupIdHasBeenSet() const
SecurityGroupRuleRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
SecurityGroupRuleRequest & WithCidrIpv6(const Aws::String &value)
bool IpProtocolHasBeenSet() const
SecurityGroupRuleRequest & WithDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupRuleRequest & WithToPort(int value)
SecurityGroupRuleRequest & WithPrefixListId(const Aws::String &value)
void SetCidrIpv6(const char *value)
bool DescriptionHasBeenSet() const
void SetCidrIpv4(const char *value)
void SetDescription(const char *value)
void SetPrefixListId(const char *value)
void SetIpProtocol(const Aws::String &value)
const Aws::String & GetReferencedGroupId() const
const Aws::String & GetIpProtocol() const
SecurityGroupRuleRequest & WithIpProtocol(Aws::String &&value)
const Aws::String & GetCidrIpv6() const
void SetIpProtocol(const char *value)
SecurityGroupRuleRequest & WithPrefixListId(Aws::String &&value)
const Aws::String & GetDescription() const
void SetPrefixListId(Aws::String &&value)
void SetCidrIpv6(Aws::String &&value)
const Aws::String & GetCidrIpv4() const
void SetCidrIpv4(Aws::String &&value)
void SetPrefixListId(const Aws::String &value)
bool ToPortHasBeenSet() const
AWS_EC2_API SecurityGroupRuleRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupRuleRequest & WithCidrIpv4(Aws::String &&value)
bool PrefixListIdHasBeenSet() const
SecurityGroupRuleRequest & WithCidrIpv4(const Aws::String &value)
SecurityGroupRuleRequest & WithCidrIpv4(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool FromPortHasBeenSet() const
SecurityGroupRuleRequest & WithDescription(Aws::String &&value)
bool CidrIpv4HasBeenSet() const
SecurityGroupRuleRequest & WithCidrIpv6(const char *value)
SecurityGroupRuleRequest & WithIpProtocol(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream