/* * 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 the result of the purchase. /// public partial class Purchase { private CurrencyCodeValues _currencyCode; private int? _duration; private List _hostIdSet = new List(); private string _hostReservationId; private string _hourlyPrice; private string _instanceFamily; private PaymentOption _paymentOption; private string _upfrontPrice; /// /// Gets and sets the property CurrencyCode. /// /// The currency in which the UpfrontPrice and HourlyPrice amounts /// are specified. At this time, the only supported currency is USD. /// /// public CurrencyCodeValues CurrencyCode { get { return this._currencyCode; } set { this._currencyCode = value; } } // Check to see if CurrencyCode property is set internal bool IsSetCurrencyCode() { return this._currencyCode != null; } /// /// Gets and sets the property Duration. /// /// The duration of the reservation's term in seconds. /// /// public int Duration { get { return this._duration.GetValueOrDefault(); } set { this._duration = value; } } // Check to see if Duration property is set internal bool IsSetDuration() { return this._duration.HasValue; } /// /// Gets and sets the property HostIdSet. /// /// The IDs of the Dedicated Hosts associated with the reservation. /// /// public List HostIdSet { get { return this._hostIdSet; } set { this._hostIdSet = value; } } // Check to see if HostIdSet property is set internal bool IsSetHostIdSet() { return this._hostIdSet != null && this._hostIdSet.Count > 0; } /// /// Gets and sets the property HostReservationId. /// /// The ID of the reservation. /// /// public string HostReservationId { get { return this._hostReservationId; } set { this._hostReservationId = value; } } // Check to see if HostReservationId property is set internal bool IsSetHostReservationId() { return this._hostReservationId != null; } /// /// Gets and sets the property HourlyPrice. /// /// The hourly price of the reservation per hour. /// /// 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 InstanceFamily. /// /// The instance family on the Dedicated Host that the reservation can be associated with. /// /// public string InstanceFamily { get { return this._instanceFamily; } set { this._instanceFamily = value; } } // Check to see if InstanceFamily property is set internal bool IsSetInstanceFamily() { return this._instanceFamily != null; } /// /// Gets and sets the property PaymentOption. /// /// The payment option for the reservation. /// /// public PaymentOption PaymentOption { get { return this._paymentOption; } set { this._paymentOption = value; } } // Check to see if PaymentOption property is set internal bool IsSetPaymentOption() { return this._paymentOption != null; } /// /// Gets and sets the property UpfrontPrice. /// /// The upfront price of the reservation. /// /// public string UpfrontPrice { get { return this._upfrontPrice; } set { this._upfrontPrice = value; } } // Check to see if UpfrontPrice property is set internal bool IsSetUpfrontPrice() { return this._upfrontPrice != null; } } }