/*
* 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
{
///
/// This is the response object from the CreateCapacityReservationFleet operation.
///
public partial class CreateCapacityReservationFleetResponse : AmazonWebServiceResponse
{
private string _allocationStrategy;
private string _capacityReservationFleetId;
private DateTime? _createTime;
private DateTime? _endDate;
private List _fleetCapacityReservations = new List();
private FleetInstanceMatchCriteria _instanceMatchCriteria;
private CapacityReservationFleetState _state;
private List _tags = new List();
private FleetCapacityReservationTenancy _tenancy;
private double? _totalFulfilledCapacity;
private int? _totalTargetCapacity;
///
/// Gets and sets the property AllocationStrategy.
///
/// The allocation strategy used by the Capacity Reservation Fleet.
///
///
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 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 FleetCapacityReservations.
///
/// Information about the individual Capacity Reservations in the Capacity Reservation
/// Fleet.
///
///
public List FleetCapacityReservations
{
get { return this._fleetCapacityReservations; }
set { this._fleetCapacityReservations = value; }
}
// Check to see if FleetCapacityReservations property is set
internal bool IsSetFleetCapacityReservations()
{
return this._fleetCapacityReservations != null && this._fleetCapacityReservations.Count > 0;
}
///
/// Gets and sets the property InstanceMatchCriteria.
///
/// The instance matching criteria for the Capacity Reservation Fleet.
///
///
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 State.
///
/// The status of the Capacity Reservation Fleet.
///
///
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.
///
/// Indicates the tenancy of Capacity Reservation Fleet.
///
///
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 requested capacity units that have been successfully reserved.
///
///
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.
///
///
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;
}
}
}