/* * 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 Fleet. /// public partial class CapacityReservationFleet { private string _allocationStrategy; private string _capacityReservationFleetArn; private string _capacityReservationFleetId; private DateTime? _createTime; private DateTime? _endDate; private FleetInstanceMatchCriteria _instanceMatchCriteria; private List _instanceTypeSpecifications = new List(); private CapacityReservationFleetState _state; private List _tags = new List(); private FleetCapacityReservationTenancy _tenancy; private double? _totalFulfilledCapacity; private int? _totalTargetCapacity; /// /// Gets and sets the property AllocationStrategy. /// /// The strategy used by the Capacity Reservation Fleet to determine which of the specified /// instance types to use. For more information, see For more information, see /// Allocation strategy in the Amazon EC2 User Guide. /// /// public string AllocationStrategy { get { return this._allocationStrategy; } set { this._allocationStrategy = value; } } // Check to see if AllocationStrategy property is set internal bool IsSetAllocationStrategy() { return this._allocationStrategy != null; } /// /// Gets and sets the property CapacityReservationFleetArn. /// /// The ARN of the Capacity Reservation Fleet. /// /// public string CapacityReservationFleetArn { get { return this._capacityReservationFleetArn; } set { this._capacityReservationFleetArn = value; } } // Check to see if CapacityReservationFleetArn property is set internal bool IsSetCapacityReservationFleetArn() { return this._capacityReservationFleetArn != null; } /// /// Gets and sets the property CapacityReservationFleetId. /// /// The ID of the Capacity Reservation Fleet. /// /// public string CapacityReservationFleetId { get { return this._capacityReservationFleetId; } set { this._capacityReservationFleetId = value; } } // Check to see if CapacityReservationFleetId property is set internal bool IsSetCapacityReservationFleetId() { return this._capacityReservationFleetId != null; } /// /// Gets and sets the property CreateTime. /// /// The date and time at which the Capacity Reservation Fleet was created. /// /// public DateTime CreateTime { get { return this._createTime.GetValueOrDefault(); } set { this._createTime = value; } } // Check to see if CreateTime property is set internal bool IsSetCreateTime() { return this._createTime.HasValue; } /// /// Gets and sets the property EndDate. /// /// The date and time at which the Capacity Reservation Fleet expires. /// /// public DateTime EndDate { get { return this._endDate.GetValueOrDefault(); } set { this._endDate = value; } } // Check to see if EndDate property is set internal bool IsSetEndDate() { return this._endDate.HasValue; } /// /// Gets and sets the property InstanceMatchCriteria. /// /// Indicates the type of instance launches that the Capacity Reservation Fleet accepts. /// All Capacity Reservations in the Fleet inherit this instance matching criteria. /// /// /// /// Currently, Capacity Reservation Fleets support open instance matching /// criteria only. This means that instances that have matching attributes (instance type, /// platform, and Availability Zone) run in the Capacity Reservations automatically. Instances /// do not need to explicitly target a Capacity Reservation Fleet to use its reserved /// capacity. /// /// public FleetInstanceMatchCriteria InstanceMatchCriteria { get { return this._instanceMatchCriteria; } set { this._instanceMatchCriteria = value; } } // Check to see if InstanceMatchCriteria property is set internal bool IsSetInstanceMatchCriteria() { return this._instanceMatchCriteria != null; } /// /// Gets and sets the property InstanceTypeSpecifications. /// /// Information about the instance types for which to reserve the capacity. /// /// public List InstanceTypeSpecifications { get { return this._instanceTypeSpecifications; } set { this._instanceTypeSpecifications = value; } } // Check to see if InstanceTypeSpecifications property is set internal bool IsSetInstanceTypeSpecifications() { return this._instanceTypeSpecifications != null && this._instanceTypeSpecifications.Count > 0; } /// /// Gets and sets the property State. /// /// The state of the Capacity Reservation Fleet. Possible states include: /// ///
  • /// /// submitted - The Capacity Reservation Fleet request has been submitted /// and Amazon Elastic Compute Cloud is preparing to create the Capacity Reservations. /// ///
  • /// /// modifying - The Capacity Reservation Fleet is being modified. The Fleet /// remains in this state until the modification is complete. /// ///
  • /// /// active - The Capacity Reservation Fleet has fulfilled its total target /// capacity and it is attempting to maintain this capacity. The Fleet remains in this /// state until it is modified or deleted. /// ///
  • /// /// partially_fulfilled - The Capacity Reservation Fleet has partially fulfilled /// its total target capacity. There is insufficient Amazon EC2 to fulfill the total target /// capacity. The Fleet is attempting to asynchronously fulfill its total target capacity. /// ///
  • /// /// expiring - The Capacity Reservation Fleet has reach its end date and /// it is in the process of expiring. One or more of its Capacity reservations might still /// be active. /// ///
  • /// /// expired - The Capacity Reservation Fleet has reach its end date. The /// Fleet and its Capacity Reservations are expired. The Fleet can't create new Capacity /// Reservations. /// ///
  • /// /// cancelling - The Capacity Reservation Fleet is in the process of being /// cancelled. One or more of its Capacity reservations might still be active. /// ///
  • /// /// cancelled - The Capacity Reservation Fleet has been manually cancelled. /// The Fleet and its Capacity Reservations are cancelled and the Fleet can't create new /// Capacity Reservations. /// ///
  • /// /// failed - The Capacity Reservation Fleet failed to reserve capacity for /// the specified instance types. /// ///
///
public CapacityReservationFleetState 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 Tags. /// /// The tags assigned to the Capacity Reservation Fleet. /// /// 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 Tenancy. /// /// The tenancy of the Capacity Reservation Fleet. Tenancies include: /// ///
  • /// /// default - The Capacity Reservation Fleet is created on hardware that /// is shared with other Amazon Web Services accounts. /// ///
  • /// /// dedicated - The Capacity Reservation Fleet is created on single-tenant /// hardware that is dedicated to a single Amazon Web Services account. /// ///
///
public FleetCapacityReservationTenancy Tenancy { get { return this._tenancy; } set { this._tenancy = value; } } // Check to see if Tenancy property is set internal bool IsSetTenancy() { return this._tenancy != null; } /// /// Gets and sets the property TotalFulfilledCapacity. /// /// The capacity units that have been fulfilled. /// /// public double TotalFulfilledCapacity { get { return this._totalFulfilledCapacity.GetValueOrDefault(); } set { this._totalFulfilledCapacity = value; } } // Check to see if TotalFulfilledCapacity property is set internal bool IsSetTotalFulfilledCapacity() { return this._totalFulfilledCapacity.HasValue; } /// /// Gets and sets the property TotalTargetCapacity. /// /// The total number of capacity units for which the Capacity Reservation Fleet reserves /// capacity. For more information, see Total /// target capacity in the Amazon EC2 User Guide. /// /// public int TotalTargetCapacity { get { return this._totalTargetCapacity.GetValueOrDefault(); } set { this._totalTargetCapacity = value; } } // Check to see if TotalTargetCapacity property is set internal bool IsSetTotalTargetCapacity() { return this._totalTargetCapacity.HasValue; } } }