/*
* 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
{
///
/// In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool
/// or to a resource.
///
public partial class IpamPoolAllocation
{
private string _cidr;
private string _description;
private string _ipamPoolAllocationId;
private string _resourceId;
private string _resourceOwner;
private string _resourceRegion;
private IpamPoolAllocationResourceType _resourceType;
///
/// Gets and sets the property Cidr.
///
/// The CIDR for the allocation. A CIDR is a representation of an IP address and its associated
/// network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example
/// is 10.24.34.0/23
. An IPv6 CIDR example is 2001:DB8::/32
.
///
///
public string Cidr
{
get { return this._cidr; }
set { this._cidr = value; }
}
// Check to see if Cidr property is set
internal bool IsSetCidr()
{
return this._cidr != null;
}
///
/// Gets and sets the property Description.
///
/// A description of the pool allocation.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property IpamPoolAllocationId.
///
/// The ID of an allocation.
///
///
public string IpamPoolAllocationId
{
get { return this._ipamPoolAllocationId; }
set { this._ipamPoolAllocationId = value; }
}
// Check to see if IpamPoolAllocationId property is set
internal bool IsSetIpamPoolAllocationId()
{
return this._ipamPoolAllocationId != null;
}
///
/// Gets and sets the property ResourceId.
///
/// The ID of the resource.
///
///
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 ResourceOwner.
///
/// The owner of the resource.
///
///
public string ResourceOwner
{
get { return this._resourceOwner; }
set { this._resourceOwner = value; }
}
// Check to see if ResourceOwner property is set
internal bool IsSetResourceOwner()
{
return this._resourceOwner != null;
}
///
/// Gets and sets the property ResourceRegion.
///
/// The Amazon Web Services Region of the resource.
///
///
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 ResourceType.
///
/// The type of the resource.
///
///
public IpamPoolAllocationResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
}