/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a VPC attachment.See Also:
AWS
* API Reference
The ID of the attachment.
*/ inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; } /** *The ID of the attachment.
*/ inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; } /** *The ID of the attachment.
*/ inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; } /** *The ID of the attachment.
*/ inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); } /** *The ID of the attachment.
*/ inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); } /** *The ID of the attachment.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;} /** *The ID of the attachment.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;} /** *The ID of the attachment.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;} /** *The ID of the transit gateway.
*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *The ID of the transit gateway.
*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *The ID of the transit gateway.
*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *The ID of the transit gateway.
*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *The ID of the transit gateway.
*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *The ID of the transit gateway.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *The ID of the transit gateway.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *The ID of the transit gateway.
*/ inline TransitGatewayVpcAttachment& WithTransitGatewayId(const char* value) { SetTransitGatewayId(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 TransitGatewayVpcAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC.
*/ inline TransitGatewayVpcAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC.
*/ inline TransitGatewayVpcAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline const Aws::String& GetVpcOwnerId() const{ return m_vpcOwnerId; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline bool VpcOwnerIdHasBeenSet() const { return m_vpcOwnerIdHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetVpcOwnerId(const Aws::String& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = value; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetVpcOwnerId(Aws::String&& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = std::move(value); } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetVpcOwnerId(const char* value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId.assign(value); } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline TransitGatewayVpcAttachment& WithVpcOwnerId(const Aws::String& value) { SetVpcOwnerId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline TransitGatewayVpcAttachment& WithVpcOwnerId(Aws::String&& value) { SetVpcOwnerId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline TransitGatewayVpcAttachment& WithVpcOwnerId(const char* value) { SetVpcOwnerId(value); return *this;} /** *The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The state of the VPC attachment. Note that the initiating
state
* has been deprecated.
The IDs of the subnets.
*/ inline const Aws::VectorThe IDs of the subnets.
*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *The IDs of the subnets.
*/ inline void SetSubnetIds(const Aws::VectorThe IDs of the subnets.
*/ inline void SetSubnetIds(Aws::VectorThe IDs of the subnets.
*/ inline TransitGatewayVpcAttachment& WithSubnetIds(const Aws::VectorThe IDs of the subnets.
*/ inline TransitGatewayVpcAttachment& WithSubnetIds(Aws::VectorThe IDs of the subnets.
*/ inline TransitGatewayVpcAttachment& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *The IDs of the subnets.
*/ inline TransitGatewayVpcAttachment& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *The IDs of the subnets.
*/ inline TransitGatewayVpcAttachment& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *The creation time.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The creation time.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The creation time.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The creation time.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The creation time.
*/ inline TransitGatewayVpcAttachment& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The creation time.
*/ inline TransitGatewayVpcAttachment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The VPC attachment options.
*/ inline const TransitGatewayVpcAttachmentOptions& GetOptions() const{ return m_options; } /** *The VPC attachment options.
*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *The VPC attachment options.
*/ inline void SetOptions(const TransitGatewayVpcAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *The VPC attachment options.
*/ inline void SetOptions(TransitGatewayVpcAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *The VPC attachment options.
*/ inline TransitGatewayVpcAttachment& WithOptions(const TransitGatewayVpcAttachmentOptions& value) { SetOptions(value); return *this;} /** *The VPC attachment options.
*/ inline TransitGatewayVpcAttachment& WithOptions(TransitGatewayVpcAttachmentOptions&& value) { SetOptions(std::move(value)); return *this;} /** *The tags for the VPC attachment.
*/ inline const Aws::VectorThe tags for the VPC attachment.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags for the VPC attachment.
*/ inline void SetTags(const Aws::VectorThe tags for the VPC attachment.
*/ inline void SetTags(Aws::VectorThe tags for the VPC attachment.
*/ inline TransitGatewayVpcAttachment& WithTags(const Aws::VectorThe tags for the VPC attachment.
*/ inline TransitGatewayVpcAttachment& WithTags(Aws::VectorThe tags for the VPC attachment.
*/ inline TransitGatewayVpcAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags for the VPC attachment.
*/ inline TransitGatewayVpcAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_transitGatewayAttachmentId; bool m_transitGatewayAttachmentIdHasBeenSet = false; Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_vpcOwnerId; bool m_vpcOwnerIdHasBeenSet = false; TransitGatewayAttachmentState m_state; bool m_stateHasBeenSet = false; Aws::Vector