/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a VPC.See Also:
AWS API
* Reference
The primary IPv4 CIDR block for the VPC.
*/ inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; } /** *The primary IPv4 CIDR block for the VPC.
*/ inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; } /** *The primary IPv4 CIDR block for the VPC.
*/ inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; } /** *The primary IPv4 CIDR block for the VPC.
*/ inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); } /** *The primary IPv4 CIDR block for the VPC.
*/ inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); } /** *The primary IPv4 CIDR block for the VPC.
*/ inline Vpc& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;} /** *The primary IPv4 CIDR block for the VPC.
*/ inline Vpc& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;} /** *The primary IPv4 CIDR block for the VPC.
*/ inline Vpc& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;} /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; } /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; } /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; } /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); } /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); } /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline Vpc& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;} /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline Vpc& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;} /** *The ID of the set of DHCP options you've associated with the VPC.
*/ inline Vpc& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;} /** *The current state of the VPC.
*/ inline const VpcState& GetState() const{ return m_state; } /** *The current state of the VPC.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The current state of the VPC.
*/ inline void SetState(const VpcState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The current state of the VPC.
*/ inline void SetState(VpcState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The current state of the VPC.
*/ inline Vpc& WithState(const VpcState& value) { SetState(value); return *this;} /** *The current state of the VPC.
*/ inline Vpc& WithState(VpcState&& 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 Vpc& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC.
*/ inline Vpc& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC.
*/ inline Vpc& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline Vpc& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline Vpc& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the VPC.
*/ inline Vpc& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The allowed tenancy of instances launched into the VPC.
*/ inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; } /** *The allowed tenancy of instances launched into the VPC.
*/ inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; } /** *The allowed tenancy of instances launched into the VPC.
*/ inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; } /** *The allowed tenancy of instances launched into the VPC.
*/ inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); } /** *The allowed tenancy of instances launched into the VPC.
*/ inline Vpc& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); return *this;} /** *The allowed tenancy of instances launched into the VPC.
*/ inline Vpc& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(std::move(value)); return *this;} /** *Information about the IPv6 CIDR blocks associated with the VPC.
*/ inline const Aws::VectorInformation about the IPv6 CIDR blocks associated with the VPC.
*/ inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; } /** *Information about the IPv6 CIDR blocks associated with the VPC.
*/ inline void SetIpv6CidrBlockAssociationSet(const Aws::VectorInformation about the IPv6 CIDR blocks associated with the VPC.
*/ inline void SetIpv6CidrBlockAssociationSet(Aws::VectorInformation about the IPv6 CIDR blocks associated with the VPC.
*/ inline Vpc& WithIpv6CidrBlockAssociationSet(const Aws::VectorInformation about the IPv6 CIDR blocks associated with the VPC.
*/ inline Vpc& WithIpv6CidrBlockAssociationSet(Aws::VectorInformation about the IPv6 CIDR blocks associated with the VPC.
*/ inline Vpc& AddIpv6CidrBlockAssociationSet(const VpcIpv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; } /** *Information about the IPv6 CIDR blocks associated with the VPC.
*/ inline Vpc& AddIpv6CidrBlockAssociationSet(VpcIpv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; } /** *Information about the IPv4 CIDR blocks associated with the VPC.
*/ inline const Aws::VectorInformation about the IPv4 CIDR blocks associated with the VPC.
*/ inline bool CidrBlockAssociationSetHasBeenSet() const { return m_cidrBlockAssociationSetHasBeenSet; } /** *Information about the IPv4 CIDR blocks associated with the VPC.
*/ inline void SetCidrBlockAssociationSet(const Aws::VectorInformation about the IPv4 CIDR blocks associated with the VPC.
*/ inline void SetCidrBlockAssociationSet(Aws::VectorInformation about the IPv4 CIDR blocks associated with the VPC.
*/ inline Vpc& WithCidrBlockAssociationSet(const Aws::VectorInformation about the IPv4 CIDR blocks associated with the VPC.
*/ inline Vpc& WithCidrBlockAssociationSet(Aws::VectorInformation about the IPv4 CIDR blocks associated with the VPC.
*/ inline Vpc& AddCidrBlockAssociationSet(const VpcCidrBlockAssociation& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(value); return *this; } /** *Information about the IPv4 CIDR blocks associated with the VPC.
*/ inline Vpc& AddCidrBlockAssociationSet(VpcCidrBlockAssociation&& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(std::move(value)); return *this; } /** *Indicates whether the VPC is the default VPC.
*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *Indicates whether the VPC is the default VPC.
*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *Indicates whether the VPC is the default VPC.
*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *Indicates whether the VPC is the default VPC.
*/ inline Vpc& WithIsDefault(bool value) { SetIsDefault(value); return *this;} /** *Any tags assigned to the VPC.
*/ inline const Aws::VectorAny tags assigned to the VPC.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the VPC.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the VPC.
*/ inline void SetTags(Aws::VectorAny tags assigned to the VPC.
*/ inline Vpc& WithTags(const Aws::VectorAny tags assigned to the VPC.
*/ inline Vpc& WithTags(Aws::VectorAny tags assigned to the VPC.
*/ inline Vpc& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the VPC.
*/ inline Vpc& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_cidrBlock; bool m_cidrBlockHasBeenSet = false; Aws::String m_dhcpOptionsId; bool m_dhcpOptionsIdHasBeenSet = false; VpcState m_state; bool m_stateHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Tenancy m_instanceTenancy; bool m_instanceTenancyHasBeenSet = false; Aws::Vector