@Stability(value=Stable)
public static interface CfnBudget.SpendProperty
extends software.amazon.jsii.JsiiSerializable
For example, a Spend for 3 GB of S3 usage has the following parameters:
Amount of 3unit of GBExample:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.budgets.*;
SpendProperty spendProperty = SpendProperty.builder()
.amount(123)
.unit("unit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBudget.SpendProperty.Builder
A builder for
CfnBudget.SpendProperty |
static class |
CfnBudget.SpendProperty.Jsii$Proxy
An implementation for
CfnBudget.SpendProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBudget.SpendProperty.Builder |
builder() |
Number |
getAmount()
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
|
String |
getUnit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.
|
@Stability(value=Stable) @NotNull Number getAmount()
@Stability(value=Stable) @NotNull String getUnit()
@Stability(value=Stable) static CfnBudget.SpendProperty.Builder builder()
CfnBudget.SpendProperty.Builder of CfnBudget.SpendPropertyCopyright © 2022. All rights reserved.