Class CfnBudget.HistoricalOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudget.HistoricalOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudget.HistoricalOptionsProperty>
- Enclosing interface:
CfnBudget.HistoricalOptionsProperty
@Stability(Stable)
public static final class CfnBudget.HistoricalOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudget.HistoricalOptionsProperty>
A builder for
CfnBudget.HistoricalOptionsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbudgetAdjustmentPeriod
(Number budgetAdjustmentPeriod) Sets the value ofCfnBudget.HistoricalOptionsProperty.getBudgetAdjustmentPeriod()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
budgetAdjustmentPeriod
@Stability(Stable) public CfnBudget.HistoricalOptionsProperty.Builder budgetAdjustmentPeriod(Number budgetAdjustmentPeriod) Sets the value ofCfnBudget.HistoricalOptionsProperty.getBudgetAdjustmentPeriod()
- Parameters:
budgetAdjustmentPeriod
- The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount. This parameter is required. The maximum value depends on theTimeUnit
granularity of the budget:- For the
DAILY
granularity, the maximum value is60
. - For the
MONTHLY
granularity, the maximum value is12
. - For the
QUARTERLY
granularity, the maximum value is4
. - For the
ANNUALLY
granularity, the maximum value is1
.
- For the
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudget.HistoricalOptionsProperty>
- Returns:
- a new instance of
CfnBudget.HistoricalOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-