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/ReferencedSecurityGroup.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
53 inline void SetSecurityGroupRuleId(
const char* value) { m_securityGroupRuleIdHasBeenSet =
true; m_securityGroupRuleId.assign(value); }
67 inline void SetGroupId(
const char* value) { m_groupIdHasBeenSet =
true; m_groupId.assign(value); }
81 inline void SetGroupOwnerId(
const char* value) { m_groupOwnerIdHasBeenSet =
true; m_groupOwnerId.assign(value); }
93 inline void SetIsEgress(
bool value) { m_isEgressHasBeenSet =
true; m_isEgress = value; }
108 inline void SetIpProtocol(
const char* value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol.assign(value); }
121 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
134 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
146 inline void SetCidrIpv4(
const char* value) { m_cidrIpv4HasBeenSet =
true; m_cidrIpv4.assign(value); }
160 inline void SetCidrIpv6(
const char* value) { m_cidrIpv6HasBeenSet =
true; m_cidrIpv6.assign(value); }
174 inline void SetPrefixListId(
const char* value) { m_prefixListIdHasBeenSet =
true; m_prefixListId.assign(value); }
200 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
228 inline void SetSecurityGroupRuleArn(
const char* value) { m_securityGroupRuleArnHasBeenSet =
true; m_securityGroupRuleArn.assign(value); }
236 bool m_securityGroupRuleIdHasBeenSet =
false;
239 bool m_groupIdHasBeenSet =
false;
242 bool m_groupOwnerIdHasBeenSet =
false;
245 bool m_isEgressHasBeenSet =
false;
248 bool m_ipProtocolHasBeenSet =
false;
251 bool m_fromPortHasBeenSet =
false;
254 bool m_toPortHasBeenSet =
false;
257 bool m_cidrIpv4HasBeenSet =
false;
260 bool m_cidrIpv6HasBeenSet =
false;
263 bool m_prefixListIdHasBeenSet =
false;
266 bool m_referencedGroupInfoHasBeenSet =
false;
269 bool m_descriptionHasBeenSet =
false;
272 bool m_tagsHasBeenSet =
false;
275 bool m_securityGroupRuleArnHasBeenSet =
false;
const Aws::String & GetGroupOwnerId() const
SecurityGroupRule & AddTags(const Tag &value)
void SetGroupOwnerId(const char *value)
SecurityGroupRule & WithSecurityGroupRuleId(const Aws::String &value)
bool ReferencedGroupInfoHasBeenSet() const
SecurityGroupRule & WithDescription(const char *value)
void SetDescription(Aws::String &&value)
SecurityGroupRule & WithGroupOwnerId(Aws::String &&value)
SecurityGroupRule & WithFromPort(int value)
bool SecurityGroupRuleArnHasBeenSet() const
void SetSecurityGroupRuleArn(const Aws::String &value)
SecurityGroupRule & WithPrefixListId(Aws::String &&value)
void SetCidrIpv6(const Aws::String &value)
SecurityGroupRule & WithGroupId(Aws::String &&value)
void SetPrefixListId(Aws::String &&value)
bool CidrIpv4HasBeenSet() const
void SetPrefixListId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetIpProtocol(Aws::String &&value)
const Aws::String & GetDescription() const
SecurityGroupRule & WithToPort(int value)
void SetFromPort(int value)
SecurityGroupRule & WithReferencedGroupInfo(const ReferencedSecurityGroup &value)
const Aws::String & GetCidrIpv6() const
const Aws::String & GetPrefixListId() const
SecurityGroupRule & WithCidrIpv6(const Aws::String &value)
bool IpProtocolHasBeenSet() const
const ReferencedSecurityGroup & GetReferencedGroupInfo() const
SecurityGroupRule & WithPrefixListId(const Aws::String &value)
void SetCidrIpv4(const char *value)
bool CidrIpv6HasBeenSet() const
SecurityGroupRule & WithTags(Aws::Vector< Tag > &&value)
SecurityGroupRule & WithIpProtocol(const Aws::String &value)
SecurityGroupRule & WithIpProtocol(Aws::String &&value)
SecurityGroupRule & WithCidrIpv4(Aws::String &&value)
void SetGroupOwnerId(const Aws::String &value)
SecurityGroupRule & AddTags(Tag &&value)
AWS_EC2_API SecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSecurityGroupRuleArn(const char *value)
AWS_EC2_API SecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupRule & WithTags(const Aws::Vector< Tag > &value)
void SetCidrIpv6(Aws::String &&value)
bool DescriptionHasBeenSet() const
bool FromPortHasBeenSet() const
void SetDescription(const char *value)
SecurityGroupRule & WithSecurityGroupRuleArn(const Aws::String &value)
void SetSecurityGroupRuleId(const Aws::String &value)
bool SecurityGroupRuleIdHasBeenSet() const
bool PrefixListIdHasBeenSet() const
SecurityGroupRule & WithIpProtocol(const char *value)
SecurityGroupRule & WithCidrIpv6(const char *value)
const Aws::String & GetSecurityGroupRuleId() const
void SetTags(const Aws::Vector< Tag > &value)
SecurityGroupRule & WithCidrIpv4(const Aws::String &value)
SecurityGroupRule & WithReferencedGroupInfo(ReferencedSecurityGroup &&value)
SecurityGroupRule & WithSecurityGroupRuleArn(Aws::String &&value)
SecurityGroupRule & WithDescription(const Aws::String &value)
void SetCidrIpv4(Aws::String &&value)
SecurityGroupRule & WithCidrIpv4(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCidrIpv4() const
void SetIpProtocol(const Aws::String &value)
bool ToPortHasBeenSet() const
void SetGroupId(const char *value)
SecurityGroupRule & WithSecurityGroupRuleId(const char *value)
void SetReferencedGroupInfo(const ReferencedSecurityGroup &value)
void SetCidrIpv4(const Aws::String &value)
SecurityGroupRule & WithIsEgress(bool value)
SecurityGroupRule & WithSecurityGroupRuleArn(const char *value)
void SetGroupId(const Aws::String &value)
SecurityGroupRule & WithGroupId(const Aws::String &value)
bool IsEgressHasBeenSet() const
bool TagsHasBeenSet() const
AWS_EC2_API SecurityGroupRule()
bool GroupOwnerIdHasBeenSet() const
void SetGroupOwnerId(Aws::String &&value)
const Aws::String & GetGroupId() const
SecurityGroupRule & WithCidrIpv6(Aws::String &&value)
const Aws::String & GetSecurityGroupRuleArn() const
void SetIsEgress(bool value)
void SetSecurityGroupRuleId(const char *value)
void SetReferencedGroupInfo(ReferencedSecurityGroup &&value)
SecurityGroupRule & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
SecurityGroupRule & WithGroupOwnerId(const Aws::String &value)
void SetIpProtocol(const char *value)
SecurityGroupRule & WithGroupId(const char *value)
SecurityGroupRule & WithGroupOwnerId(const char *value)
void SetPrefixListId(const char *value)
void SetCidrIpv6(const char *value)
void SetGroupId(Aws::String &&value)
SecurityGroupRule & WithSecurityGroupRuleId(Aws::String &&value)
bool GroupIdHasBeenSet() const
void SetToPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SecurityGroupRule & WithPrefixListId(const char *value)
void SetSecurityGroupRuleArn(Aws::String &&value)
const Aws::String & GetIpProtocol() const
void SetTags(Aws::Vector< Tag > &&value)
void SetSecurityGroupRuleId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream