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

Describes an attachment between a virtual private gateway and a * VPC.

See Also:

AWS * API Reference

*/ class VpcAttachment { public: AWS_EC2_API VpcAttachment(); AWS_EC2_API VpcAttachment(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpcAttachment& 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 current state of the attachment.

*/ inline const AttachmentStatus& GetState() const{ return m_state; } /** *

The current state of the attachment.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the attachment.

*/ inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the attachment.

*/ inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the attachment.

*/ inline VpcAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;} /** *

The current state of the attachment.

*/ inline VpcAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;} /** *

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

*/ inline VpcAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: AttachmentStatus m_state; bool m_stateHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws