/*
* 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
{
///
/// An IPAM discovered resource CIDR. A discovered resource is a resource CIDR monitored
/// under a resource discovery. The following resources can be discovered: VPCs, Public
/// IPv4 pools, VPC subnets, and Elastic IP addresses. The discovered resource CIDR is
/// the IP address range in CIDR notation that is associated with the resource.
///
public partial class IpamDiscoveredResourceCidr
{
private string _ipamResourceDiscoveryId;
private double? _ipUsage;
private string _resourceCidr;
private string _resourceId;
private string _resourceOwnerId;
private string _resourceRegion;
private List _resourceTags = new List();
private IpamResourceType _resourceType;
private DateTime? _sampleTime;
private string _vpcId;
///
/// Gets and sets the property IpamResourceDiscoveryId.
///
/// The resource discovery ID.
///
///
public string IpamResourceDiscoveryId
{
get { return this._ipamResourceDiscoveryId; }
set { this._ipamResourceDiscoveryId = value; }
}
// Check to see if IpamResourceDiscoveryId property is set
internal bool IsSetIpamResourceDiscoveryId()
{
return this._ipamResourceDiscoveryId != null;
}
///
/// Gets and sets the property IpUsage.
///
/// The percentage of IP address space in use. To convert the decimal to a percentage,
/// multiply the decimal by 100. Note the following:
///
/// -
///
/// For resources that are VPCs, this is the percentage of IP address space in the VPC
/// that's taken up by subnet CIDRs.
///
///
-
///
/// For resources that are subnets, if the subnet has an IPv4 CIDR provisioned to it,
/// this is the percentage of IPv4 address space in the subnet that's in use. If the subnet
/// has an IPv6 CIDR provisioned to it, the percentage of IPv6 address space in use is
/// not represented. The percentage of IPv6 address space in use cannot currently be calculated.
///
///
///
-
///
/// For resources that are public IPv4 pools, this is the percentage of IP address space
/// in the pool that's been allocated to Elastic IP addresses (EIPs).
///
///
///
public double IpUsage
{
get { return this._ipUsage.GetValueOrDefault(); }
set { this._ipUsage = value; }
}
// Check to see if IpUsage property is set
internal bool IsSetIpUsage()
{
return this._ipUsage.HasValue;
}
///
/// Gets and sets the property ResourceCidr.
///
/// The resource CIDR.
///
///
public string ResourceCidr
{
get { return this._resourceCidr; }
set { this._resourceCidr = value; }
}
// Check to see if ResourceCidr property is set
internal bool IsSetResourceCidr()
{
return this._resourceCidr != null;
}
///
/// Gets and sets the property ResourceId.
///
/// The resource ID.
///
///
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
///
/// Gets and sets the property ResourceOwnerId.
///
/// The resource owner ID.
///
///
public string ResourceOwnerId
{
get { return this._resourceOwnerId; }
set { this._resourceOwnerId = value; }
}
// Check to see if ResourceOwnerId property is set
internal bool IsSetResourceOwnerId()
{
return this._resourceOwnerId != null;
}
///
/// Gets and sets the property ResourceRegion.
///
/// The resource Region.
///
///
public string ResourceRegion
{
get { return this._resourceRegion; }
set { this._resourceRegion = value; }
}
// Check to see if ResourceRegion property is set
internal bool IsSetResourceRegion()
{
return this._resourceRegion != null;
}
///
/// Gets and sets the property ResourceTags.
///
/// The resource tags.
///
///
public List ResourceTags
{
get { return this._resourceTags; }
set { this._resourceTags = value; }
}
// Check to see if ResourceTags property is set
internal bool IsSetResourceTags()
{
return this._resourceTags != null && this._resourceTags.Count > 0;
}
///
/// Gets and sets the property ResourceType.
///
/// The resource type.
///
///
public IpamResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
///
/// Gets and sets the property SampleTime.
///
/// The last successful resource discovery time.
///
///
public DateTime SampleTime
{
get { return this._sampleTime.GetValueOrDefault(); }
set { this._sampleTime = value; }
}
// Check to see if SampleTime property is set
internal bool IsSetSampleTime()
{
return this._sampleTime.HasValue;
}
///
/// Gets and sets the property VpcId.
///
/// The VPC ID.
///
///
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;
}
}
}