/*
* 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 CIDR reservation.
///
public partial class SubnetCidrReservation
{
private string _cidr;
private string _description;
private string _ownerId;
private SubnetCidrReservationType _reservationType;
private string _subnetCidrReservationId;
private string _subnetId;
private List _tags = new List();
///
/// Gets and sets the property Cidr.
///
/// The CIDR that has been reserved.
///
///
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.
///
/// The description assigned to the subnet CIDR reservation.
///
///
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 OwnerId.
///
/// The ID of the account that owns the subnet CIDR reservation.
///
///
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 ReservationType.
///
/// The type of reservation.
///
///
public SubnetCidrReservationType ReservationType
{
get { return this._reservationType; }
set { this._reservationType = value; }
}
// Check to see if ReservationType property is set
internal bool IsSetReservationType()
{
return this._reservationType != null;
}
///
/// Gets and sets the property SubnetCidrReservationId.
///
/// The ID of the subnet CIDR reservation.
///
///
public string SubnetCidrReservationId
{
get { return this._subnetCidrReservationId; }
set { this._subnetCidrReservationId = value; }
}
// Check to see if SubnetCidrReservationId property is set
internal bool IsSetSubnetCidrReservationId()
{
return this._subnetCidrReservationId != 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.
///
/// The tags assigned to the subnet CIDR reservation.
///
///
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;
}
}
}