/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Strategy item for the capacity provider strategy that the service uses. /// public partial class AwsEcsServiceCapacityProviderStrategyDetails { private int? _base; private string _capacityProvider; private int? _weight; /// /// Gets and sets the property Base. /// /// The minimum number of tasks to run on the capacity provider. Only one strategy item /// can specify a value for Base. /// /// /// /// The value must be between 0 and 100000. /// /// public int Base { get { return this._base.GetValueOrDefault(); } set { this._base = value; } } // Check to see if Base property is set internal bool IsSetBase() { return this._base.HasValue; } /// /// Gets and sets the property CapacityProvider. /// /// The short name of the capacity provider. /// /// public string CapacityProvider { get { return this._capacityProvider; } set { this._capacityProvider = value; } } // Check to see if CapacityProvider property is set internal bool IsSetCapacityProvider() { return this._capacityProvider != null; } /// /// Gets and sets the property Weight. /// /// The relative percentage of the total number of tasks that should use the capacity /// provider. /// /// /// /// If no weight is specified, the default value is 0. At least one capacity provider /// must have a weight greater than 0. /// /// /// /// The value can be between 0 and 1000. /// /// public int Weight { get { return this._weight.GetValueOrDefault(); } set { this._weight = value; } } // Check to see if Weight property is set internal bool IsSetWeight() { return this._weight.HasValue; } } }