/* * 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 budgets-2016-10-20.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.Budgets.Model { /// /// The parameters that define or describe the historical data that your auto-adjusting /// budget is based on. /// public partial class HistoricalOptions { private int? _budgetAdjustmentPeriod; private int? _lookBackAvailablePeriods; /// /// Gets and sets the property BudgetAdjustmentPeriod. /// /// The number of budget periods included in the moving-average calculation that determines /// your auto-adjusted budget amount. The maximum value depends on the TimeUnit /// granularity of the budget: /// /// /// [AWSProperty(Required=true, Min=1, Max=60)] public int BudgetAdjustmentPeriod { get { return this._budgetAdjustmentPeriod.GetValueOrDefault(); } set { this._budgetAdjustmentPeriod = value; } } // Check to see if BudgetAdjustmentPeriod property is set internal bool IsSetBudgetAdjustmentPeriod() { return this._budgetAdjustmentPeriod.HasValue; } /// /// Gets and sets the property LookBackAvailablePeriods. /// /// The integer that describes how many budget periods in your BudgetAdjustmentPeriod /// are included in the calculation of your current BudgetLimit. If the first /// budget period in your BudgetAdjustmentPeriod has no cost data, then that /// budget period isn’t included in the average that determines your budget limit. /// /// /// /// For example, if you set BudgetAdjustmentPeriod as 4 quarters, /// but your account had no cost data in the first quarter, then only the last three quarters /// are included in the calculation. In this scenario, LookBackAvailablePeriods /// returns 3. /// /// /// /// You can’t set your own LookBackAvailablePeriods. The value is automatically /// calculated from the BudgetAdjustmentPeriod and your historical cost data. /// /// [AWSProperty(Min=1, Max=60)] public int LookBackAvailablePeriods { get { return this._lookBackAvailablePeriods.GetValueOrDefault(); } set { this._lookBackAvailablePeriods = value; } } // Check to see if LookBackAvailablePeriods property is set internal bool IsSetLookBackAvailablePeriods() { return this._lookBackAvailablePeriods.HasValue; } } }