/* * 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 { /// /// Container for the parameters to the PurchaseHostReservation operation. /// Purchase a reservation with configurations that match those of your Dedicated Host. /// You must have active Dedicated Hosts in your account before you purchase a reservation. /// This action results in the specified reservation being purchased and charged to your /// account. /// public partial class PurchaseHostReservationRequest : AmazonEC2Request { private string _clientToken; private CurrencyCodeValues _currencyCode; private List _hostIdSet = new List(); private string _limitPrice; private string _offeringId; private List _tagSpecifications = new List(); /// /// Gets and sets the property ClientToken. /// /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the /// request. For more information, see Ensuring /// Idempotency. /// /// public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// Gets and sets the property CurrencyCode. /// /// The currency in which the totalUpfrontPrice, LimitPrice, /// and totalHourlyPrice 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 HostIdSet. /// /// The IDs of the Dedicated Hosts with which the reservation will be associated. /// /// [AWSProperty(Required=true)] 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 LimitPrice. /// /// The specified limit is checked against the total upfront cost of the reservation (calculated /// as the offering's upfront cost multiplied by the host count). If the total upfront /// cost is greater than the specified price limit, the request fails. This is used to /// ensure that the purchase does not exceed the expected upfront cost of the purchase. /// At this time, the only supported currency is USD. For example, to indicate /// a limit price of USD 100, specify 100.00. /// /// public string LimitPrice { get { return this._limitPrice; } set { this._limitPrice = value; } } // Check to see if LimitPrice property is set internal bool IsSetLimitPrice() { return this._limitPrice != null; } /// /// Gets and sets the property OfferingId. /// /// The ID of the offering. /// /// [AWSProperty(Required=true)] public string OfferingId { get { return this._offeringId; } set { this._offeringId = value; } } // Check to see if OfferingId property is set internal bool IsSetOfferingId() { return this._offeringId != null; } /// /// Gets and sets the property TagSpecifications. /// /// The tags to apply to the Dedicated Host Reservation during purchase. /// /// public List TagSpecifications { get { return this._tagSpecifications; } set { this._tagSpecifications = value; } } // Check to see if TagSpecifications property is set internal bool IsSetTagSpecifications() { return this._tagSpecifications != null && this._tagSpecifications.Count > 0; } } }