/* * 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 ce-2017-10-25.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.CostExplorer.Model { /// /// Details about the Amazon EC2 instances that Amazon Web Services recommends that you /// purchase. /// public partial class EC2InstanceDetails { private string _availabilityZone; private bool? _currentGeneration; private string _family; private string _instanceType; private string _platform; private string _region; private bool? _sizeFlexEligible; private string _tenancy; /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone of the recommended reservation. /// /// [AWSProperty(Min=0, Max=1024)] 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 CurrentGeneration. /// /// Determines whether the recommendation is for a current-generation instance. /// /// public bool CurrentGeneration { get { return this._currentGeneration.GetValueOrDefault(); } set { this._currentGeneration = value; } } // Check to see if CurrentGeneration property is set internal bool IsSetCurrentGeneration() { return this._currentGeneration.HasValue; } /// /// Gets and sets the property Family. /// /// The instance family of the recommended reservation. /// /// [AWSProperty(Min=0, Max=1024)] public string Family { get { return this._family; } set { this._family = value; } } // Check to see if Family property is set internal bool IsSetFamily() { return this._family != null; } /// /// Gets and sets the property InstanceType. /// /// The type of instance that Amazon Web Services recommends. /// /// [AWSProperty(Min=0, Max=1024)] 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 Platform. /// /// The platform of the recommended reservation. The platform is the specific combination /// of operating system, license model, and software on an instance. /// /// [AWSProperty(Min=0, Max=1024)] 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 Region. /// /// The Amazon Web Services Region of the recommended reservation. /// /// [AWSProperty(Min=0, Max=1024)] public string Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// /// Gets and sets the property SizeFlexEligible. /// /// Determines whether the recommended reservation is size flexible. /// /// public bool SizeFlexEligible { get { return this._sizeFlexEligible.GetValueOrDefault(); } set { this._sizeFlexEligible = value; } } // Check to see if SizeFlexEligible property is set internal bool IsSetSizeFlexEligible() { return this._sizeFlexEligible.HasValue; } /// /// Gets and sets the property Tenancy. /// /// Determines whether the recommended reservation is dedicated or shared. /// /// [AWSProperty(Min=0, Max=1024)] public string Tenancy { get { return this._tenancy; } set { this._tenancy = value; } } // Check to see if Tenancy property is set internal bool IsSetTenancy() { return this._tenancy != null; } } }