Class BillingBudgetThresholdRules.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.billing_budget.BillingBudgetThresholdRules.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BillingBudgetThresholdRules>
- Enclosing interface:
- BillingBudgetThresholdRules
@Stability(Stable) public static final class BillingBudgetThresholdRules.Builder extends Object implements software.amazon.jsii.Builder<BillingBudgetThresholdRules>
A builder forBillingBudgetThresholdRules
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingBudgetThresholdRulesbuild()Builds the configured instance.BillingBudgetThresholdRules.BuilderspendBasis(String spendBasis)Sets the value ofBillingBudgetThresholdRules.getSpendBasis()BillingBudgetThresholdRules.BuilderthresholdPercent(Number thresholdPercent)Sets the value ofBillingBudgetThresholdRules.getThresholdPercent()
-
-
-
Method Detail
-
thresholdPercent
@Stability(Stable) public BillingBudgetThresholdRules.Builder thresholdPercent(Number thresholdPercent)
Sets the value ofBillingBudgetThresholdRules.getThresholdPercent()- Parameters:
thresholdPercent- Send an alert when this threshold is exceeded. This parameter is required. This is a 1.0-based percentage, so 0.5 = 50%. Must be >= 0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#threshold_percent BillingBudget#threshold_percent}- Returns:
this
-
spendBasis
@Stability(Stable) public BillingBudgetThresholdRules.Builder spendBasis(String spendBasis)
Sets the value ofBillingBudgetThresholdRules.getSpendBasis()- Parameters:
spendBasis- The type of basis used to determine if spend has passed the threshold. Default value: "CURRENT_SPEND" Possible values: ["CURRENT_SPEND", "FORECASTED_SPEND"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/billing_budget#spend_basis BillingBudget#spend_basis}- Returns:
this
-
build
@Stability(Stable) public BillingBudgetThresholdRules build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BillingBudgetThresholdRules>- Returns:
- a new instance of
BillingBudgetThresholdRules - Throws:
NullPointerException- if any required attribute was not provided
-
-