/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EC2.Model
{
///
/// Describes a VPC.
///
public partial class Vpc
{
private string _cidrBlock;
private List _cidrBlockAssociationSet = new List();
private string _dhcpOptionsId;
private Tenancy _instanceTenancy;
private List _ipv6CidrBlockAssociationSet = new List();
private bool? _isDefault;
private string _ownerId;
private VpcState _state;
private List _tags = new List();
private string _vpcId;
///
/// Gets and sets the property CidrBlock.
///
/// The primary IPv4 CIDR block for the VPC.
///
///
public string CidrBlock
{
get { return this._cidrBlock; }
set { this._cidrBlock = value; }
}
// Check to see if CidrBlock property is set
internal bool IsSetCidrBlock()
{
return this._cidrBlock != null;
}
///
/// Gets and sets the property CidrBlockAssociationSet.
///
/// Information about the IPv4 CIDR blocks associated with the VPC.
///
///
public List CidrBlockAssociationSet
{
get { return this._cidrBlockAssociationSet; }
set { this._cidrBlockAssociationSet = value; }
}
// Check to see if CidrBlockAssociationSet property is set
internal bool IsSetCidrBlockAssociationSet()
{
return this._cidrBlockAssociationSet != null && this._cidrBlockAssociationSet.Count > 0;
}
///
/// Gets and sets the property DhcpOptionsId.
///
/// The ID of the set of DHCP options you've associated with the VPC.
///
///
public string DhcpOptionsId
{
get { return this._dhcpOptionsId; }
set { this._dhcpOptionsId = value; }
}
// Check to see if DhcpOptionsId property is set
internal bool IsSetDhcpOptionsId()
{
return this._dhcpOptionsId != null;
}
///
/// Gets and sets the property InstanceTenancy.
///
/// The allowed tenancy of instances launched into the VPC.
///
///
public Tenancy InstanceTenancy
{
get { return this._instanceTenancy; }
set { this._instanceTenancy = value; }
}
// Check to see if InstanceTenancy property is set
internal bool IsSetInstanceTenancy()
{
return this._instanceTenancy != null;
}
///
/// Gets and sets the property Ipv6CidrBlockAssociationSet.
///
/// Information about the IPv6 CIDR blocks associated with the VPC.
///
///
public List Ipv6CidrBlockAssociationSet
{
get { return this._ipv6CidrBlockAssociationSet; }
set { this._ipv6CidrBlockAssociationSet = value; }
}
// Check to see if Ipv6CidrBlockAssociationSet property is set
internal bool IsSetIpv6CidrBlockAssociationSet()
{
return this._ipv6CidrBlockAssociationSet != null && this._ipv6CidrBlockAssociationSet.Count > 0;
}
///
/// Gets and sets the property IsDefault.
///
/// Indicates whether the VPC is the default VPC.
///
///
public bool IsDefault
{
get { return this._isDefault.GetValueOrDefault(); }
set { this._isDefault = value; }
}
// Check to see if IsDefault property is set
internal bool IsSetIsDefault()
{
return this._isDefault.HasValue;
}
///
/// Gets and sets the property OwnerId.
///
/// The ID of the Amazon Web Services account that owns the VPC.
///
///
public string OwnerId
{
get { return this._ownerId; }
set { this._ownerId = value; }
}
// Check to see if OwnerId property is set
internal bool IsSetOwnerId()
{
return this._ownerId != null;
}
///
/// Gets and sets the property State.
///
/// The current state of the VPC.
///
///
public VpcState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property Tags.
///
/// Any tags assigned to the VPC.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property VpcId.
///
/// The ID of the VPC.
///
///
public string VpcId
{
get { return this._vpcId; }
set { this._vpcId = value; }
}
// Check to see if VpcId property is set
internal bool IsSetVpcId()
{
return this._vpcId != null;
}
}
}