/*
* 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 subnet.
///
public partial class Subnet
{
private bool? _assignIpv6AddressOnCreation;
private string _availabilityZone;
private string _availabilityZoneId;
private int? _availableIpAddressCount;
private string _cidrBlock;
private string _customerOwnedIpv4Pool;
private bool? _defaultForAz;
private bool? _enableDns64;
private int? _enableLniAtDeviceIndex;
private List _ipv6CidrBlockAssociationSet = new List();
private bool? _ipv6Native;
private bool? _mapCustomerOwnedIpOnLaunch;
private bool? _mapPublicIpOnLaunch;
private string _outpostArn;
private string _ownerId;
private PrivateDnsNameOptionsOnLaunch _privateDnsNameOptionsOnLaunch;
private SubnetState _state;
private string _subnetArn;
private string _subnetId;
private List _tags = new List();
private string _vpcId;
///
/// Gets and sets the property AssignIpv6AddressOnCreation.
///
/// Indicates whether a network interface created in this subnet (including a network
/// interface created by RunInstances) receives an IPv6 address.
///
///
public bool AssignIpv6AddressOnCreation
{
get { return this._assignIpv6AddressOnCreation.GetValueOrDefault(); }
set { this._assignIpv6AddressOnCreation = value; }
}
// Check to see if AssignIpv6AddressOnCreation property is set
internal bool IsSetAssignIpv6AddressOnCreation()
{
return this._assignIpv6AddressOnCreation.HasValue;
}
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone of the subnet.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property AvailabilityZoneId.
///
/// The AZ ID of the subnet.
///
///
public string AvailabilityZoneId
{
get { return this._availabilityZoneId; }
set { this._availabilityZoneId = value; }
}
// Check to see if AvailabilityZoneId property is set
internal bool IsSetAvailabilityZoneId()
{
return this._availabilityZoneId != null;
}
///
/// Gets and sets the property AvailableIpAddressCount.
///
/// The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for
/// any stopped instances are considered unavailable.
///
///
public int AvailableIpAddressCount
{
get { return this._availableIpAddressCount.GetValueOrDefault(); }
set { this._availableIpAddressCount = value; }
}
// Check to see if AvailableIpAddressCount property is set
internal bool IsSetAvailableIpAddressCount()
{
return this._availableIpAddressCount.HasValue;
}
///
/// Gets and sets the property CidrBlock.
///
/// The IPv4 CIDR block assigned to the subnet.
///
///
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 CustomerOwnedIpv4Pool.
///
/// The customer-owned IPv4 address pool associated with the subnet.
///
///
public string CustomerOwnedIpv4Pool
{
get { return this._customerOwnedIpv4Pool; }
set { this._customerOwnedIpv4Pool = value; }
}
// Check to see if CustomerOwnedIpv4Pool property is set
internal bool IsSetCustomerOwnedIpv4Pool()
{
return this._customerOwnedIpv4Pool != null;
}
///
/// Gets and sets the property DefaultForAz.
///
/// Indicates whether this is the default subnet for the Availability Zone.
///
///
public bool DefaultForAz
{
get { return this._defaultForAz.GetValueOrDefault(); }
set { this._defaultForAz = value; }
}
// Check to see if DefaultForAz property is set
internal bool IsSetDefaultForAz()
{
return this._defaultForAz.HasValue;
}
///
/// Gets and sets the property EnableDns64.
///
/// Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet
/// should return synthetic IPv6 addresses for IPv4-only destinations.
///
///
public bool EnableDns64
{
get { return this._enableDns64.GetValueOrDefault(); }
set { this._enableDns64 = value; }
}
// Check to see if EnableDns64 property is set
internal bool IsSetEnableDns64()
{
return this._enableDns64.HasValue;
}
///
/// Gets and sets the property EnableLniAtDeviceIndex.
///
/// Indicates the device position for local network interfaces in this subnet. For example,
/// 1
indicates local network interfaces in this subnet are the secondary
/// network interface (eth1).
///
///
public int EnableLniAtDeviceIndex
{
get { return this._enableLniAtDeviceIndex.GetValueOrDefault(); }
set { this._enableLniAtDeviceIndex = value; }
}
// Check to see if EnableLniAtDeviceIndex property is set
internal bool IsSetEnableLniAtDeviceIndex()
{
return this._enableLniAtDeviceIndex.HasValue;
}
///
/// Gets and sets the property Ipv6CidrBlockAssociationSet.
///
/// Information about the IPv6 CIDR blocks associated with the subnet.
///
///
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 Ipv6Native.
///
/// Indicates whether this is an IPv6 only subnet.
///
///
public bool Ipv6Native
{
get { return this._ipv6Native.GetValueOrDefault(); }
set { this._ipv6Native = value; }
}
// Check to see if Ipv6Native property is set
internal bool IsSetIpv6Native()
{
return this._ipv6Native.HasValue;
}
///
/// Gets and sets the property MapCustomerOwnedIpOnLaunch.
///
/// Indicates whether a network interface created in this subnet (including a network
/// interface created by RunInstances) receives a customer-owned IPv4 address.
///
///
public bool MapCustomerOwnedIpOnLaunch
{
get { return this._mapCustomerOwnedIpOnLaunch.GetValueOrDefault(); }
set { this._mapCustomerOwnedIpOnLaunch = value; }
}
// Check to see if MapCustomerOwnedIpOnLaunch property is set
internal bool IsSetMapCustomerOwnedIpOnLaunch()
{
return this._mapCustomerOwnedIpOnLaunch.HasValue;
}
///
/// Gets and sets the property MapPublicIpOnLaunch.
///
/// Indicates whether instances launched in this subnet receive a public IPv4 address.
///
///
public bool MapPublicIpOnLaunch
{
get { return this._mapPublicIpOnLaunch.GetValueOrDefault(); }
set { this._mapPublicIpOnLaunch = value; }
}
// Check to see if MapPublicIpOnLaunch property is set
internal bool IsSetMapPublicIpOnLaunch()
{
return this._mapPublicIpOnLaunch.HasValue;
}
///
/// Gets and sets the property OutpostArn.
///
/// The Amazon Resource Name (ARN) of the Outpost.
///
///
public string OutpostArn
{
get { return this._outpostArn; }
set { this._outpostArn = value; }
}
// Check to see if OutpostArn property is set
internal bool IsSetOutpostArn()
{
return this._outpostArn != null;
}
///
/// Gets and sets the property OwnerId.
///
/// The ID of the Amazon Web Services account that owns the subnet.
///
///
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 PrivateDnsNameOptionsOnLaunch.
///
/// The type of hostnames to assign to instances in the subnet at launch. An instance
/// hostname is based on the IPv4 address or ID of the instance.
///
///
public PrivateDnsNameOptionsOnLaunch PrivateDnsNameOptionsOnLaunch
{
get { return this._privateDnsNameOptionsOnLaunch; }
set { this._privateDnsNameOptionsOnLaunch = value; }
}
// Check to see if PrivateDnsNameOptionsOnLaunch property is set
internal bool IsSetPrivateDnsNameOptionsOnLaunch()
{
return this._privateDnsNameOptionsOnLaunch != null;
}
///
/// Gets and sets the property State.
///
/// The current state of the subnet.
///
///
public SubnetState 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 SubnetArn.
///
/// The Amazon Resource Name (ARN) of the subnet.
///
///
public string SubnetArn
{
get { return this._subnetArn; }
set { this._subnetArn = value; }
}
// Check to see if SubnetArn property is set
internal bool IsSetSubnetArn()
{
return this._subnetArn != null;
}
///
/// Gets and sets the property SubnetId.
///
/// The ID of the subnet.
///
///
public string SubnetId
{
get { return this._subnetId; }
set { this._subnetId = value; }
}
// Check to see if SubnetId property is set
internal bool IsSetSubnetId()
{
return this._subnetId != null;
}
///
/// Gets and sets the property Tags.
///
/// Any tags assigned to the subnet.
///
///
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 the subnet is in.
///
///
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;
}
}
}