7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpPermission.h>
12#include <aws/ec2/model/Tag.h>
45 template <
typename GroupIdT = Aws::String>
47 m_groupIdHasBeenSet =
true;
48 m_groupId = std::forward<GroupIdT>(value);
50 template <
typename GroupIdT = Aws::String>
63 template <
typename IpPermissionsEgressT = Aws::Vector<IpPermission>>
65 m_ipPermissionsEgressHasBeenSet =
true;
66 m_ipPermissionsEgress = std::forward<IpPermissionsEgressT>(value);
68 template <
typename IpPermissionsEgressT = Aws::Vector<IpPermission>>
73 template <
typename IpPermissionsEgressT = IpPermission>
75 m_ipPermissionsEgressHasBeenSet =
true;
76 m_ipPermissionsEgress.emplace_back(std::forward<IpPermissionsEgressT>(value));
87 template <
typename TagsT = Aws::Vector<Tag>>
89 m_tagsHasBeenSet =
true;
90 m_tags = std::forward<TagsT>(value);
92 template <
typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
97 template <
typename TagsT = Tag>
99 m_tagsHasBeenSet =
true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
111 template <
typename VpcIdT = Aws::String>
113 m_vpcIdHasBeenSet =
true;
114 m_vpcId = std::forward<VpcIdT>(value);
116 template <
typename VpcIdT = Aws::String>
118 SetVpcId(std::forward<VpcIdT>(value));
129 template <
typename SecurityGroupArnT = Aws::String>
131 m_securityGroupArnHasBeenSet =
true;
132 m_securityGroupArn = std::forward<SecurityGroupArnT>(value);
134 template <
typename SecurityGroupArnT = Aws::String>
147 template <
typename OwnerIdT = Aws::String>
149 m_ownerIdHasBeenSet =
true;
150 m_ownerId = std::forward<OwnerIdT>(value);
152 template <
typename OwnerIdT = Aws::String>
165 template <
typename GroupNameT = Aws::String>
167 m_groupNameHasBeenSet =
true;
168 m_groupName = std::forward<GroupNameT>(value);
170 template <
typename GroupNameT = Aws::String>
183 template <
typename DescriptionT = Aws::String>
185 m_descriptionHasBeenSet =
true;
186 m_description = std::forward<DescriptionT>(value);
188 template <
typename DescriptionT = Aws::String>
201 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
203 m_ipPermissionsHasBeenSet =
true;
204 m_ipPermissions = std::forward<IpPermissionsT>(value);
206 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
211 template <
typename IpPermissionsT = IpPermission>
213 m_ipPermissionsHasBeenSet =
true;
214 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
236 bool m_groupIdHasBeenSet =
false;
237 bool m_ipPermissionsEgressHasBeenSet =
false;
238 bool m_tagsHasBeenSet =
false;
239 bool m_vpcIdHasBeenSet =
false;
240 bool m_securityGroupArnHasBeenSet =
false;
241 bool m_ownerIdHasBeenSet =
false;
242 bool m_groupNameHasBeenSet =
false;
243 bool m_descriptionHasBeenSet =
false;
244 bool m_ipPermissionsHasBeenSet =
false;
const Aws::Vector< IpPermission > & GetIpPermissionsEgress() const
void SetTags(TagsT &&value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
AWS_EC2_API SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIpPermissions(IpPermissionsT &&value)
void SetIpPermissionsEgress(IpPermissionsEgressT &&value)
void SetVpcId(VpcIdT &&value)
bool OwnerIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool TagsHasBeenSet() const
const Aws::String & GetSecurityGroupArn() const
bool IpPermissionsHasBeenSet() const
void SetSecurityGroupArn(SecurityGroupArnT &&value)
SecurityGroup & WithSecurityGroupArn(SecurityGroupArnT &&value)
void SetGroupName(GroupNameT &&value)
bool SecurityGroupArnHasBeenSet() const
const Aws::String & GetGroupName() const
void SetOwnerId(OwnerIdT &&value)
SecurityGroup & WithIpPermissions(IpPermissionsT &&value)
bool GroupNameHasBeenSet() const
SecurityGroup & WithTags(TagsT &&value)
AWS_EC2_API SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDescription() const
SecurityGroup & WithGroupName(GroupNameT &&value)
const Aws::String & GetOwnerId() const
bool GroupIdHasBeenSet() const
SecurityGroup & AddTags(TagsT &&value)
SecurityGroup & WithDescription(DescriptionT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroup & AddIpPermissionsEgress(IpPermissionsEgressT &&value)
void SetGroupId(GroupIdT &&value)
SecurityGroup & AddIpPermissions(IpPermissionsT &&value)
const Aws::String & GetVpcId() const
const Aws::Vector< Tag > & GetTags() const
void SetDescription(DescriptionT &&value)
bool IpPermissionsEgressHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetGroupId() const
SecurityGroup & WithOwnerId(OwnerIdT &&value)
bool VpcIdHasBeenSet() const
SecurityGroup & WithIpPermissionsEgress(IpPermissionsEgressT &&value)
SecurityGroup & WithGroupId(GroupIdT &&value)
AWS_EC2_API SecurityGroup()=default
SecurityGroup & WithVpcId(VpcIdT &&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