/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an attachment between a virtual private gateway and a
* VPC.See Also:
AWS
* API Reference
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