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