/* * 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 vCPU configurations for the instance type. /// public partial class VCpuInfo { private int? _defaultCores; private int? _defaultThreadsPerCore; private int? _defaultVCpus; private List _validCores = new List(); private List _validThreadsPerCore = new List(); /// /// Gets and sets the property DefaultCores. /// /// The default number of cores for the instance type. /// /// public int DefaultCores { get { return this._defaultCores.GetValueOrDefault(); } set { this._defaultCores = value; } } // Check to see if DefaultCores property is set internal bool IsSetDefaultCores() { return this._defaultCores.HasValue; } /// /// Gets and sets the property DefaultThreadsPerCore. /// /// The default number of threads per core for the instance type. /// /// public int DefaultThreadsPerCore { get { return this._defaultThreadsPerCore.GetValueOrDefault(); } set { this._defaultThreadsPerCore = value; } } // Check to see if DefaultThreadsPerCore property is set internal bool IsSetDefaultThreadsPerCore() { return this._defaultThreadsPerCore.HasValue; } /// /// Gets and sets the property DefaultVCpus. /// /// The default number of vCPUs for the instance type. /// /// public int DefaultVCpus { get { return this._defaultVCpus.GetValueOrDefault(); } set { this._defaultVCpus = value; } } // Check to see if DefaultVCpus property is set internal bool IsSetDefaultVCpus() { return this._defaultVCpus.HasValue; } /// /// Gets and sets the property ValidCores. /// /// The valid number of cores that can be configured for the instance type. /// /// public List ValidCores { get { return this._validCores; } set { this._validCores = value; } } // Check to see if ValidCores property is set internal bool IsSetValidCores() { return this._validCores != null && this._validCores.Count > 0; } /// /// Gets and sets the property ValidThreadsPerCore. /// /// The valid number of threads per core that can be configured for the instance type. /// /// public List ValidThreadsPerCore { get { return this._validThreadsPerCore; } set { this._validThreadsPerCore = value; } } // Check to see if ValidThreadsPerCore property is set internal bool IsSetValidThreadsPerCore() { return this._validThreadsPerCore != null && this._validThreadsPerCore.Count > 0; } } }