Class CfnBudget.SpendProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudget.SpendProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudget.SpendProperty>
- Enclosing interface:
CfnBudget.SpendProperty
@Stability(Stable)
public static final class CfnBudget.SpendProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudget.SpendProperty>
A builder for
CfnBudget.SpendProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBudget.SpendProperty.getAmount()build()Builds the configured instance.Sets the value ofCfnBudget.SpendProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amount
Sets the value ofCfnBudget.SpendProperty.getAmount()- Parameters:
amount- The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold. This parameter is required.- Returns:
this
-
unit
Sets the value ofCfnBudget.SpendProperty.getUnit()- Parameters:
unit- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBudget.SpendProperty>- Returns:
- a new instance of
CfnBudget.SpendProperty - Throws:
NullPointerException- if any required attribute was not provided
-