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

Describes a VPC with a security group that references your security * group.

See Also:

AWS * API Reference

*/ class SecurityGroupReference { public: AWS_EC2_API SecurityGroupReference(); AWS_EC2_API SecurityGroupReference(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API SecurityGroupReference& 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 ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of your security group.

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

The ID of the VPC with the referencing security group.

*/ inline const Aws::String& GetReferencingVpcId() const{ return m_referencingVpcId; } /** *

The ID of the VPC with the referencing security group.

*/ inline bool ReferencingVpcIdHasBeenSet() const { return m_referencingVpcIdHasBeenSet; } /** *

The ID of the VPC with the referencing security group.

*/ inline void SetReferencingVpcId(const Aws::String& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = value; } /** *

The ID of the VPC with the referencing security group.

*/ inline void SetReferencingVpcId(Aws::String&& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = std::move(value); } /** *

The ID of the VPC with the referencing security group.

*/ inline void SetReferencingVpcId(const char* value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId.assign(value); } /** *

The ID of the VPC with the referencing security group.

*/ inline SecurityGroupReference& WithReferencingVpcId(const Aws::String& value) { SetReferencingVpcId(value); return *this;} /** *

The ID of the VPC with the referencing security group.

*/ inline SecurityGroupReference& WithReferencingVpcId(Aws::String&& value) { SetReferencingVpcId(std::move(value)); return *this;} /** *

The ID of the VPC with the referencing security group.

*/ inline SecurityGroupReference& WithReferencingVpcId(const char* value) { SetReferencingVpcId(value); return *this;} /** *

The ID of the VPC peering connection.

*/ inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; } /** *

The ID of the VPC peering connection.

*/ inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; } /** *

The ID of the VPC peering connection.

*/ inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; } /** *

The ID of the VPC peering connection.

*/ inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); } /** *

The ID of the VPC peering connection.

*/ inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); } /** *

The ID of the VPC peering connection.

*/ inline SecurityGroupReference& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;} /** *

The ID of the VPC peering connection.

*/ inline SecurityGroupReference& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;} /** *

The ID of the VPC peering connection.

*/ inline SecurityGroupReference& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_referencingVpcId; bool m_referencingVpcIdHasBeenSet = false; Aws::String m_vpcPeeringConnectionId; bool m_vpcPeeringConnectionIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws