/** * 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 Neptune { namespace Model { /** *

This data type is used as a response element for queries on VPC security * group membership.

See Also:

AWS * API Reference

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

The name of the VPC security group.

*/ inline const Aws::String& GetVpcSecurityGroupId() const{ return m_vpcSecurityGroupId; } /** *

The name of the VPC security group.

*/ inline bool VpcSecurityGroupIdHasBeenSet() const { return m_vpcSecurityGroupIdHasBeenSet; } /** *

The name of the VPC security group.

*/ inline void SetVpcSecurityGroupId(const Aws::String& value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId = value; } /** *

The name of the VPC security group.

*/ inline void SetVpcSecurityGroupId(Aws::String&& value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId = std::move(value); } /** *

The name of the VPC security group.

*/ inline void SetVpcSecurityGroupId(const char* value) { m_vpcSecurityGroupIdHasBeenSet = true; m_vpcSecurityGroupId.assign(value); } /** *

The name of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(const Aws::String& value) { SetVpcSecurityGroupId(value); return *this;} /** *

The name of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(Aws::String&& value) { SetVpcSecurityGroupId(std::move(value)); return *this;} /** *

The name of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithVpcSecurityGroupId(const char* value) { SetVpcSecurityGroupId(value); return *this;} /** *

The status of the VPC security group.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the VPC security group.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the VPC security group.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the VPC security group.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the VPC security group.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the VPC security group.

*/ inline VpcSecurityGroupMembership& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_vpcSecurityGroupId; bool m_vpcSecurityGroupIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws