/* * 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 Scheduled Instance. /// public partial class ScheduledInstance { private string _availabilityZone; private DateTime? _createDate; private string _hourlyPrice; private int? _instanceCount; private string _instanceType; private string _networkPlatform; private DateTime? _nextSlotStartTime; private string _platform; private DateTime? _previousSlotEndTime; private ScheduledInstanceRecurrence _recurrence; private string _scheduledInstanceId; private int? _slotDurationInHours; private DateTime? _termEndDate; private DateTime? _termStartDate; private int? _totalScheduledInstanceHours; /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone. /// /// 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 CreateDate. /// /// The date when the Scheduled Instance was purchased. /// /// 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 HourlyPrice. /// /// The hourly price for a single instance. /// /// public string HourlyPrice { get { return this._hourlyPrice; } set { this._hourlyPrice = value; } } // Check to see if HourlyPrice property is set internal bool IsSetHourlyPrice() { return this._hourlyPrice != null; } /// /// Gets and sets the property InstanceCount. /// /// The number of instances. /// /// public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// /// Gets and sets the property InstanceType. /// /// The instance type. /// /// public string 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 NetworkPlatform. /// /// The network platform. /// /// public string NetworkPlatform { get { return this._networkPlatform; } set { this._networkPlatform = value; } } // Check to see if NetworkPlatform property is set internal bool IsSetNetworkPlatform() { return this._networkPlatform != null; } /// /// Gets and sets the property NextSlotStartTime. /// /// The time for the next schedule to start. /// /// public DateTime NextSlotStartTime { get { return this._nextSlotStartTime.GetValueOrDefault(); } set { this._nextSlotStartTime = value; } } // Check to see if NextSlotStartTime property is set internal bool IsSetNextSlotStartTime() { return this._nextSlotStartTime.HasValue; } /// /// Gets and sets the property Platform. /// /// The platform (Linux/UNIX or Windows). /// /// public string Platform { get { return this._platform; } set { this._platform = value; } } // Check to see if Platform property is set internal bool IsSetPlatform() { return this._platform != null; } /// /// Gets and sets the property PreviousSlotEndTime. /// /// The time that the previous schedule ended or will end. /// /// public DateTime PreviousSlotEndTime { get { return this._previousSlotEndTime.GetValueOrDefault(); } set { this._previousSlotEndTime = value; } } // Check to see if PreviousSlotEndTime property is set internal bool IsSetPreviousSlotEndTime() { return this._previousSlotEndTime.HasValue; } /// /// Gets and sets the property Recurrence. /// /// The schedule recurrence. /// /// public ScheduledInstanceRecurrence Recurrence { get { return this._recurrence; } set { this._recurrence = value; } } // Check to see if Recurrence property is set internal bool IsSetRecurrence() { return this._recurrence != null; } /// /// Gets and sets the property ScheduledInstanceId. /// /// The Scheduled Instance ID. /// /// public string ScheduledInstanceId { get { return this._scheduledInstanceId; } set { this._scheduledInstanceId = value; } } // Check to see if ScheduledInstanceId property is set internal bool IsSetScheduledInstanceId() { return this._scheduledInstanceId != null; } /// /// Gets and sets the property SlotDurationInHours. /// /// The number of hours in the schedule. /// /// public int SlotDurationInHours { get { return this._slotDurationInHours.GetValueOrDefault(); } set { this._slotDurationInHours = value; } } // Check to see if SlotDurationInHours property is set internal bool IsSetSlotDurationInHours() { return this._slotDurationInHours.HasValue; } /// /// Gets and sets the property TermEndDate. /// /// The end date for the Scheduled Instance. /// /// public DateTime TermEndDate { get { return this._termEndDate.GetValueOrDefault(); } set { this._termEndDate = value; } } // Check to see if TermEndDate property is set internal bool IsSetTermEndDate() { return this._termEndDate.HasValue; } /// /// Gets and sets the property TermStartDate. /// /// The start date for the Scheduled Instance. /// /// public DateTime TermStartDate { get { return this._termStartDate.GetValueOrDefault(); } set { this._termStartDate = value; } } // Check to see if TermStartDate property is set internal bool IsSetTermStartDate() { return this._termStartDate.HasValue; } /// /// Gets and sets the property TotalScheduledInstanceHours. /// /// The total number of hours for a single instance for the entire term. /// /// public int TotalScheduledInstanceHours { get { return this._totalScheduledInstanceHours.GetValueOrDefault(); } set { this._totalScheduledInstanceHours = value; } } // Check to see if TotalScheduledInstanceHours property is set internal bool IsSetTotalScheduledInstanceHours() { return this._totalScheduledInstanceHours.HasValue; } } }