/*
* 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
{
///
/// Information about a Capacity Reservation in a Capacity Reservation Fleet.
///
public partial class FleetCapacityReservation
{
private string _availabilityZone;
private string _availabilityZoneId;
private string _capacityReservationId;
private DateTime? _createDate;
private bool? _ebsOptimized;
private double? _fulfilledCapacity;
private CapacityReservationInstancePlatform _instancePlatform;
private InstanceType _instanceType;
private int? _priority;
private int? _totalInstanceCount;
private double? _weight;
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone in which the Capacity Reservation reserves capacity.
///
///
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 ID of the Availability Zone in which the Capacity Reservation reserves capacity.
///
///
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 CapacityReservationId.
///
/// The ID of the Capacity Reservation.
///
///
public string CapacityReservationId
{
get { return this._capacityReservationId; }
set { this._capacityReservationId = value; }
}
// Check to see if CapacityReservationId property is set
internal bool IsSetCapacityReservationId()
{
return this._capacityReservationId != null;
}
///
/// Gets and sets the property CreateDate.
///
/// The date and time at which the Capacity Reservation was created.
///
///
public DateTime CreateDate
{
get { return this._createDate.GetValueOrDefault(); }
set { this._createDate = value; }
}
// Check to see if CreateDate property is set
internal bool IsSetCreateDate()
{
return this._createDate.HasValue;
}
///
/// Gets and sets the property EbsOptimized.
///
/// Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance
/// types.
///
///
public bool EbsOptimized
{
get { return this._ebsOptimized.GetValueOrDefault(); }
set { this._ebsOptimized = value; }
}
// Check to see if EbsOptimized property is set
internal bool IsSetEbsOptimized()
{
return this._ebsOptimized.HasValue;
}
///
/// Gets and sets the property FulfilledCapacity.
///
/// The number of capacity units fulfilled by the Capacity Reservation. For more information,
/// see
/// Total target capacity in the Amazon EC2 User Guide.
///
///
public double FulfilledCapacity
{
get { return this._fulfilledCapacity.GetValueOrDefault(); }
set { this._fulfilledCapacity = value; }
}
// Check to see if FulfilledCapacity property is set
internal bool IsSetFulfilledCapacity()
{
return this._fulfilledCapacity.HasValue;
}
///
/// Gets and sets the property InstancePlatform.
///
/// The type of operating system for which the Capacity Reservation reserves capacity.
///
///
public CapacityReservationInstancePlatform InstancePlatform
{
get { return this._instancePlatform; }
set { this._instancePlatform = value; }
}
// Check to see if InstancePlatform property is set
internal bool IsSetInstancePlatform()
{
return this._instancePlatform != null;
}
///
/// Gets and sets the property InstanceType.
///
/// The instance type for which the Capacity Reservation reserves capacity.
///
///
public InstanceType InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
///
/// Gets and sets the property Priority.
///
/// The priority of the instance type in the Capacity Reservation Fleet. For more information,
/// see
/// Instance type priority in the Amazon EC2 User Guide.
///
///
[AWSProperty(Min=0)]
public int Priority
{
get { return this._priority.GetValueOrDefault(); }
set { this._priority = value; }
}
// Check to see if Priority property is set
internal bool IsSetPriority()
{
return this._priority.HasValue;
}
///
/// Gets and sets the property TotalInstanceCount.
///
/// The total number of instances for which the Capacity Reservation reserves capacity.
///
///
public int TotalInstanceCount
{
get { return this._totalInstanceCount.GetValueOrDefault(); }
set { this._totalInstanceCount = value; }
}
// Check to see if TotalInstanceCount property is set
internal bool IsSetTotalInstanceCount()
{
return this._totalInstanceCount.HasValue;
}
///
/// Gets and sets the property Weight.
///
/// The weight of the instance type in the Capacity Reservation Fleet. For more information,
/// see
/// Instance type weight in the Amazon EC2 User Guide.
///
///
public double Weight
{
get { return this._weight.GetValueOrDefault(); }
set { this._weight = value; }
}
// Check to see if Weight property is set
internal bool IsSetWeight()
{
return this._weight.HasValue;
}
}
}