/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a stale security group (a security group that contains stale * rules).

See Also:

AWS * API Reference

*/ class StaleSecurityGroup { public: AWS_EC2_API StaleSecurityGroup(); AWS_EC2_API StaleSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API StaleSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The description of the security group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the security group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the security group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the security group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the security group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the security group.

*/ inline StaleSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the security group.

*/ inline StaleSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the security group.

*/ inline StaleSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the security group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The ID of the security group.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The ID of the security group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The ID of the security group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The ID of the security group.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The ID of the security group.

*/ inline StaleSecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The ID of the security group.

*/ inline StaleSecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The ID of the security group.

*/ inline StaleSecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The name of the security group.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the security group.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the security group.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the security group.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the security group.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the security group.

*/ inline StaleSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the security group.

*/ inline StaleSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the security group.

*/ inline StaleSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

Information about the stale inbound rules in the security group.

*/ inline const Aws::Vector& GetStaleIpPermissions() const{ return m_staleIpPermissions; } /** *

Information about the stale inbound rules in the security group.

*/ inline bool StaleIpPermissionsHasBeenSet() const { return m_staleIpPermissionsHasBeenSet; } /** *

Information about the stale inbound rules in the security group.

*/ inline void SetStaleIpPermissions(const Aws::Vector& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = value; } /** *

Information about the stale inbound rules in the security group.

*/ inline void SetStaleIpPermissions(Aws::Vector&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions = std::move(value); } /** *

Information about the stale inbound rules in the security group.

*/ inline StaleSecurityGroup& WithStaleIpPermissions(const Aws::Vector& value) { SetStaleIpPermissions(value); return *this;} /** *

Information about the stale inbound rules in the security group.

*/ inline StaleSecurityGroup& WithStaleIpPermissions(Aws::Vector&& value) { SetStaleIpPermissions(std::move(value)); return *this;} /** *

Information about the stale inbound rules in the security group.

*/ inline StaleSecurityGroup& AddStaleIpPermissions(const StaleIpPermission& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(value); return *this; } /** *

Information about the stale inbound rules in the security group.

*/ inline StaleSecurityGroup& AddStaleIpPermissions(StaleIpPermission&& value) { m_staleIpPermissionsHasBeenSet = true; m_staleIpPermissions.push_back(std::move(value)); return *this; } /** *

Information about the stale outbound rules in the security group.

*/ inline const Aws::Vector& GetStaleIpPermissionsEgress() const{ return m_staleIpPermissionsEgress; } /** *

Information about the stale outbound rules in the security group.

*/ inline bool StaleIpPermissionsEgressHasBeenSet() const { return m_staleIpPermissionsEgressHasBeenSet; } /** *

Information about the stale outbound rules in the security group.

*/ inline void SetStaleIpPermissionsEgress(const Aws::Vector& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = value; } /** *

Information about the stale outbound rules in the security group.

*/ inline void SetStaleIpPermissionsEgress(Aws::Vector&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress = std::move(value); } /** *

Information about the stale outbound rules in the security group.

*/ inline StaleSecurityGroup& WithStaleIpPermissionsEgress(const Aws::Vector& value) { SetStaleIpPermissionsEgress(value); return *this;} /** *

Information about the stale outbound rules in the security group.

*/ inline StaleSecurityGroup& WithStaleIpPermissionsEgress(Aws::Vector&& value) { SetStaleIpPermissionsEgress(std::move(value)); return *this;} /** *

Information about the stale outbound rules in the security group.

*/ inline StaleSecurityGroup& AddStaleIpPermissionsEgress(const StaleIpPermission& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(value); return *this; } /** *

Information about the stale outbound rules in the security group.

*/ inline StaleSecurityGroup& AddStaleIpPermissionsEgress(StaleIpPermission&& value) { m_staleIpPermissionsEgressHasBeenSet = true; m_staleIpPermissionsEgress.push_back(std::move(value)); return *this; } /** *

The ID of the VPC for the security group.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC for the security group.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC for the security group.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC for the security group.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC for the security group.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC for the security group.

*/ inline StaleSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC for the security group.

*/ inline StaleSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC for the security group.

*/ inline StaleSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Vector m_staleIpPermissions; bool m_staleIpPermissionsHasBeenSet = false; Aws::Vector m_staleIpPermissionsEgress; bool m_staleIpPermissionsEgressHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws