public static final class CfnBudget.SpendProperty.Builder
extends java.lang.Object
CfnBudget.SpendProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBudget.SpendProperty.Builder |
amount(java.lang.Number amount)
Sets the value of
CfnBudget.SpendProperty.getAmount() |
CfnBudget.SpendProperty |
build()
Builds the configured instance.
|
CfnBudget.SpendProperty.Builder |
unit(java.lang.String unit)
Sets the value of
CfnBudget.SpendProperty.getUnit() |
public CfnBudget.SpendProperty.Builder amount(java.lang.Number amount)
CfnBudget.SpendProperty.getAmount()
amount
- The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold. This parameter is required.this
public CfnBudget.SpendProperty.Builder unit(java.lang.String unit)
CfnBudget.SpendProperty.getUnit()
unit
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP. This parameter is required.this
public CfnBudget.SpendProperty build()
CfnBudget.SpendProperty
java.lang.NullPointerException
- if any required attribute was not provided