/* * 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 DescribeHostReservationOfferings operation. /// Describes the Dedicated Host reservations that are available to purchase. /// /// /// /// The results describe all of the Dedicated Host reservation offerings, including offerings /// that might not match the instance family and Region of your Dedicated Hosts. When /// purchasing an offering, ensure that the instance family and Region of the offering /// matches that of the Dedicated Hosts with which it is to be associated. For more information /// about supported instance types, see Dedicated /// Hosts in the Amazon EC2 User Guide. /// /// public partial class DescribeHostReservationOfferingsRequest : AmazonEC2Request { private List _filter = new List(); private int? _maxDuration; private int? _maxResults; private int? _minDuration; private string _nextToken; private string _offeringId; /// /// Gets and sets the property Filter. /// /// The filters. /// ///
  • /// /// instance-family - The instance family of the offering (for example, /// m4). /// ///
  • /// /// payment-option - The payment option (NoUpfront | PartialUpfront /// | AllUpfront). /// ///
///
public List Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null && this._filter.Count > 0; } /// /// Gets and sets the property MaxDuration. /// /// This is the maximum duration of the reservation to purchase, specified in seconds. /// Reservations are available in one-year and three-year terms. The number of seconds /// specified must be the number of seconds in a year (365x24x60x60) times one of the /// supported durations (1 or 3). For example, specify 94608000 for three years. /// /// public int MaxDuration { get { return this._maxDuration.GetValueOrDefault(); } set { this._maxDuration = value; } } // Check to see if MaxDuration property is set internal bool IsSetMaxDuration() { return this._maxDuration.HasValue; } /// /// Gets and sets the property MaxResults. /// /// The maximum number of results to return for the request in a single page. The remaining /// results can be seen by sending another request with the returned nextToken /// value. This value can be between 5 and 500. If maxResults is given a /// larger value than 500, you receive an error. /// /// [AWSProperty(Min=5, Max=500)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property MinDuration. /// /// This is the minimum duration of the reservation you'd like to purchase, specified /// in seconds. Reservations are available in one-year and three-year terms. The number /// of seconds specified must be the number of seconds in a year (365x24x60x60) times /// one of the supported durations (1 or 3). For example, specify 31536000 for one year. /// /// public int MinDuration { get { return this._minDuration.GetValueOrDefault(); } set { this._minDuration = value; } } // Check to see if MinDuration property is set internal bool IsSetMinDuration() { return this._minDuration.HasValue; } /// /// Gets and sets the property NextToken. /// /// The token to use to retrieve the next page of results. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property OfferingId. /// /// The ID of the reservation offering. /// /// 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; } } }